|
Last change
on this file since 8080 was
7810,
checked in by bensch, 19 years ago
|
|
orxonox/trunk: merged the Weather effects back here
|
|
File size:
1.1 KB
|
| Rev | Line | |
|---|
| [7111] | 1 | /*! |
|---|
| [7113] | 2 | * @file lightning_bolt.h |
|---|
| [7111] | 3 | * @brief a LightningBolt Projectile |
|---|
| [7113] | 4 | */ |
|---|
| [7111] | 5 | |
|---|
| 6 | #ifndef _LIGHTNING_BOLT_H |
|---|
| 7 | #define _LIGHTNING_BOLT_H |
|---|
| 8 | |
|---|
| 9 | #include "world_entity.h" |
|---|
| 10 | |
|---|
| [7112] | 11 | #include "sound_buffer.h" |
|---|
| 12 | #include "sound_source.h" |
|---|
| 13 | |
|---|
| [7111] | 14 | class Material; |
|---|
| 15 | |
|---|
| 16 | class LightningBolt : public WorldEntity |
|---|
| 17 | { |
|---|
| 18 | public: |
|---|
| 19 | LightningBolt(const TiXmlElement* root = NULL); |
|---|
| 20 | virtual ~LightningBolt (); |
|---|
| 21 | |
|---|
| 22 | virtual void activate(); |
|---|
| 23 | virtual void deactivate(); |
|---|
| 24 | |
|---|
| 25 | virtual void tick(float time); |
|---|
| 26 | virtual void draw() const; |
|---|
| 27 | |
|---|
| 28 | private: |
|---|
| 29 | float flashFrequency; //!< frequency to activate itself |
|---|
| 30 | float flashRisingTime; //!< time to rise |
|---|
| 31 | float flashConstTime; //!< time to be drawn |
|---|
| 32 | float flashFallTime; //!< time to fall |
|---|
| 33 | |
|---|
| 34 | float time; //!< time |
|---|
| 35 | |
|---|
| 36 | bool bRender; |
|---|
| [7112] | 37 | bool bNewCoordinate; |
|---|
| [7111] | 38 | Material* material; |
|---|
| 39 | Vector offset; |
|---|
| 40 | float width; |
|---|
| 41 | float height; |
|---|
| [7112] | 42 | |
|---|
| 43 | float seedX; |
|---|
| 44 | float seedZ; |
|---|
| 45 | float seedTime; |
|---|
| 46 | |
|---|
| 47 | SoundSource soundSource; |
|---|
| 48 | SoundBuffer* thunderBuffer; |
|---|
| [7111] | 49 | }; |
|---|
| 50 | |
|---|
| 51 | #endif /* _LIGHTNING_BOLT_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.