Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10427 was 10427, checked in by stefalie, 17 years ago

blink: cleanup

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#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->position = Vector(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    Vector            position;
37    Color             color;
38    float             angle;
39    float             omega;
40    float             blinkStr;
41    float             size;             //! only one float caus' its quadratical
42};
43
44#endif /* _BLINK_H */
Note: See TracBrowser for help on using the repository browser.