Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10407 was 10407, checked in by stefalie, 18 years ago

some changes…

File size: 1.1 KB
Line 
1/*!
2 * @file blink.h
3 */
4
5#ifndef _BLINK_H
6#define _BLINK_H
7
8#include "world_entity.h"
9#include "effects/billboard.h"
10
11class Material;
12class TiXmlElement;
13//class Billboard;
14
15class Blink : public WorldEntity
16{
17  ObjectListDeclaration(Blink);
18  public:
19    Blink(const TiXmlElement* root = NULL);
20    virtual ~Blink();
21
22    void init();
23    void loadParams(const TiXmlElement* root);
24
25    void setPosition(float x, float y, float z) { this->position = Vector(x, y, z); }
26    void setSize(float s) { this->size = s; this->bBoard->setSize(this->size, this->size); }
27    void setOmega(float w) { this->omega = w; }
28    void setColor(float r, float g, float b) { this->color = Vector(r, g, b); }
29    //void setTexture(const std::string& textureFile);
30
31    virtual void tick(float dt);
32    virtual void draw() const;
33
34  private:
35    Material*         material;
36    Billboard*        bBoard;
37    Vector            position;
38    Vector            color;
39    float             angle;
40    float             omega;
41    float             blinkStr;
42    float             size;             //! only one float caus' its quadratical
43};
44
45#endif /* _BLINK_H */
Note: See TracBrowser for help on using the repository browser.