Line | |
---|
1 | /*! |
---|
2 | * @file explosion.h |
---|
3 | * @brief a LightningBolt Projectile |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _LIGHTNING_BOLT_H |
---|
7 | #define _LIGHTNING_BOLT_H |
---|
8 | |
---|
9 | #include "world_entity.h" |
---|
10 | |
---|
11 | class Material; |
---|
12 | |
---|
13 | class LightningBolt : public WorldEntity |
---|
14 | { |
---|
15 | public: |
---|
16 | LightningBolt(const TiXmlElement* root = NULL); |
---|
17 | virtual ~LightningBolt (); |
---|
18 | |
---|
19 | virtual void activate(); |
---|
20 | virtual void deactivate(); |
---|
21 | |
---|
22 | virtual void tick(float time); |
---|
23 | virtual void draw() const; |
---|
24 | |
---|
25 | private: |
---|
26 | float flashFrequency; //!< frequency to activate itself |
---|
27 | float flashRisingTime; //!< time to rise |
---|
28 | float flashConstTime; //!< time to be drawn |
---|
29 | float flashFallTime; //!< time to fall |
---|
30 | |
---|
31 | float time; //!< time |
---|
32 | |
---|
33 | bool bRender; |
---|
34 | Material* material; |
---|
35 | Vector offset; |
---|
36 | float width; |
---|
37 | float height; |
---|
38 | }; |
---|
39 | |
---|
40 | #endif /* _LIGHTNING_BOLT_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.