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