source:
orxonox.OLD/trunk/src/world_entities/effects/explosion.h
@
9371
| Last change on this file since 9371 was 7125, checked in by bensch, 20 years ago | |
|---|---|
| File size: 711 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 | { |
| [5443] | 17 | public: |
| [7103] | 18 | static void explode (PNode* position, const Vector& size); |
| 19 | ||
| [7047] | 20 | Explosion (); |
| 21 | virtual ~Explosion (); | |
| [3708] | 22 | |
| [5443] | 23 | virtual void activate(); |
| 24 | virtual void deactivate(); | |
| [4890] | 25 | |
| [5443] | 26 | virtual void tick (float time); |
| 27 | ||
| 28 | private: | |
| [7047] | 29 | static FastFactory* fastFactory; |
| [5443] | 30 | |
| [7047] | 31 | float lifeTime; |
| 32 | float lifeCycle; | |
| [5447] | 33 | |
| [7103] | 34 | static SpriteParticles* explosionParticles; |
| [7125] | 35 | BoxEmitter* emitter; |
| [3708] | 36 | }; |
| 37 | ||
| [7047] | 38 | #endif /* _EXPLOSION_H */ |
Note: See TracBrowser
for help on using the repository browser.










