Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/adm/src/world_entities/effects/explosion.h @ 10694

Last change on this file since 10694 was 10694, checked in by retolu, 17 years ago

adm working

File size: 819 bytes
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
11class SpriteParticles;
12class BoxEmitter;
13class FastFactory;
14
15class 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    void setLifeTime( float lifeTime ){ this->lifeTime = lifeTime; }
30
31  protected:
32    static FastFactory*        fastFactory;
33
34    float                      lifeTime;
35    float                      lifeCycle;
36
37    static SpriteParticles*    explosionParticles;
38    BoxEmitter*                emitter;
39};
40
41#endif /* _EXPLOSION_H */
Note: See TracBrowser for help on using the repository browser.