| 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 | ObjectListDeclaration(Explosion); |
|---|
| 18 | public: |
|---|
| 19 | static void explode (PNode* position, const Vector& size); |
|---|
| 20 | |
|---|
| 21 | Explosion (); |
|---|
| 22 | virtual ~Explosion (); |
|---|
| 23 | |
|---|
| 24 | virtual void activate(); |
|---|
| 25 | virtual void deactivate(); |
|---|
| 26 | |
|---|
| 27 | virtual void tick (float time); |
|---|
| 28 | |
|---|
| 29 | private: |
|---|
| 30 | static FastFactory* fastFactory; |
|---|
| 31 | |
|---|
| 32 | float lifeTime; |
|---|
| 33 | float lifeCycle; |
|---|
| 34 | |
|---|
| 35 | static SpriteParticles* explosionParticles; |
|---|
| 36 | BoxEmitter* emitter; |
|---|
| 37 | }; |
|---|
| 38 | |
|---|
| 39 | #endif /* _EXPLOSION_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.