Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/blink/src/world_entities/effects/blink.h @ 10262

Last change on this file since 10262 was 10253, checked in by stefalie, 18 years ago
File size: 769 bytes
Line 
1/*!
2 * @file blink.h
3 */
4
5#ifndef _BLINK_H
6#define _BLINK_H
7
8#include "world_entity.h"
9
10class Material;
11class TiXmlElement;
12
13class Blink : public WorldEntity
14{
15  ObjectListDeclaration(Blink);
16  public:
17    Blink(const TiXmlElement* root = NULL);
18    virtual ~Blink();
19
20    void init();
21    void loadParams(const TiXmlElement* root);
22
23    void setPosition(float x, float y, float z) { this->position = Vector(x, y, z); }
24    void setSize(float s) { this->size = s; }
25    //void setTexture(const std::string& textureFile);
26
27    virtual void tick(float dt);
28    virtual void draw() const;
29
30  private:
31    Material*         material;
32    Vector            position;
33    float             size;             //! only one float caus' its quadratical
34};
35
36#endif /* _BLINK_H */
Note: See TracBrowser for help on using the repository browser.