source:
orxonox.OLD/trunk/src/world_entities/effects/explosion.h
@
10666
Last change on this file since 10666 was 10665, checked in by snellen, 18 years ago | |
---|---|
File size: 851 bytes |
Rev | Line | |
---|---|---|
[4890] | 1 | /*! |
[7047] | 2 | * @file explosion.h |
3 | * @brief a Explosion Projectile | |
[3708] | 4 | */ |
5 | ||
[7047] | 6 | #ifndef _EXPLOSION_H |
7 | #define _EXPLOSION_H | |
[3708] | 8 | |
[7047] | 9 | #include "world_entity.h" |
[3708] | 10 | |
[6622] | 11 | class SpriteParticles; |
[7103] | 12 | class BoxEmitter; |
[5447] | 13 | class FastFactory; |
[3708] | 14 | |
[7047] | 15 | class Explosion : public WorldEntity |
[3708] | 16 | { |
[9869] | 17 | ObjectListDeclaration(Explosion); |
[5443] | 18 | public: |
[7103] | 19 | static void explode (PNode* position, const Vector& size); |
[10665] | 20 | void explode (float x, float y, float z); /// Explode at the current position with size (x,y,z) |
21 | ||
[7047] | 22 | Explosion (); |
23 | virtual ~Explosion (); | |
[3708] | 24 | |
[5443] | 25 | virtual void activate(); |
26 | virtual void deactivate(); | |
[4890] | 27 | |
[5443] | 28 | virtual void tick (float time); |
29 | ||
30 | private: | |
[7047] | 31 | static FastFactory* fastFactory; |
[5443] | 32 | |
[7047] | 33 | float lifeTime; |
34 | float lifeCycle; | |
[5447] | 35 | |
[7103] | 36 | static SpriteParticles* explosionParticles; |
[7125] | 37 | BoxEmitter* emitter; |
[3708] | 38 | }; |
39 | ||
[7047] | 40 | #endif /* _EXPLOSION_H */ |
Note: See TracBrowser
for help on using the repository browser.