| Line | |
|---|
| 1 | /*! |
|---|
| 2 | * @file explosion.h |
|---|
| 3 | * @brief a Explosion Projectile |
|---|
| 4 | */ |
|---|
| 5 | |
|---|
| 6 | #ifndef _EXPLOSION_H |
|---|
| 7 | #define _EXPLOSION_H |
|---|
| 8 | |
|---|
| 9 | #include "world_entity.h" |
|---|
| 10 | |
|---|
| 11 | class SpriteParticles; |
|---|
| 12 | class BoxEmitter; |
|---|
| 13 | class FastFactory; |
|---|
| 14 | |
|---|
| 15 | class Explosion : public WorldEntity |
|---|
| 16 | { |
|---|
| 17 | public: |
|---|
| 18 | static void explode (PNode* position, const Vector& size); |
|---|
| 19 | |
|---|
| 20 | Explosion (); |
|---|
| 21 | virtual ~Explosion (); |
|---|
| 22 | |
|---|
| 23 | virtual void activate(); |
|---|
| 24 | virtual void deactivate(); |
|---|
| 25 | |
|---|
| 26 | virtual void tick (float time); |
|---|
| 27 | |
|---|
| 28 | private: |
|---|
| 29 | static FastFactory* fastFactory; |
|---|
| 30 | |
|---|
| 31 | float lifeTime; |
|---|
| 32 | float lifeCycle; |
|---|
| 33 | |
|---|
| 34 | static SpriteParticles* explosionParticles; |
|---|
| 35 | BoxEmitter* emitter; |
|---|
| 36 | }; |
|---|
| 37 | |
|---|
| 38 | #endif /* _EXPLOSION_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.