Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10436 was 10433, checked in by patrick, 18 years ago

merged blinki into trunk

File size: 1.0 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#include "color.h"
11
12class Material;
13class TiXmlElement;
14//class Billboard;
15
16class Blink : public WorldEntity
17{
18  ObjectListDeclaration(Blink);
19  public:
20    Blink(const TiXmlElement* root = NULL);
21    virtual ~Blink();
22
23    void init();
24    void loadParams(const TiXmlElement* root);
25
26    void setPosition(float x, float y, float z) { this->bBoard->setAbsCoor(x, y, z); }
27    void setSize(float s) { this->size = s; this->bBoard->setSize(this->size, this->size); }
28    void setOmega(float w) { this->omega = w; }
29    void setColor(float r, float g, float b) { this->color = Color(r/255, g/255, b/255); }
30
31    virtual void tick(float dt);
32    virtual void draw() const;
33
34  private:
35    Billboard*        bBoard;
36    Color             color;
37    float             angle;
38    float             omega;
39    float             blinkStr;
40    float             size;             //! only one float caus' its quadratical
41};
42
43#endif /* _BLINK_H */
Note: See TracBrowser for help on using the repository browser.