Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

blink: 1 bug less

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    //void setTexture(const std::string& textureFile);
31
32    virtual void tick(float dt);
33    virtual void draw() const;
34
35  private:
36    //Material*         material;
37    Billboard*        bBoard;
38    Vector            position;
39    Color             color;
40    float             angle;
41    float             omega;
42    float             blinkStr;
43    float             size;             //! only one float caus' its quadratical
44};
45
46#endif /* _BLINK_H */
Note: See TracBrowser for help on using the repository browser.