source:
orxonox.OLD/trunk/src/world_entities/weapons/bomb.h
@
5813
Last change on this file since 5813 was 5750, checked in by bensch, 19 years ago | |
---|---|
File size: 873 bytes |
Rev | Line | |
---|---|---|
[5590] | 1 | /*! |
[5593] | 2 | * @file bomb.h |
[5590] | 3 | * @brief description |
4 | */ | |
5 | ||
[5603] | 6 | #ifndef _BOMB_H |
7 | #define _BOMB_H | |
[5590] | 8 | |
[5603] | 9 | #include "projectile.h" |
10 | class FastFactory; | |
[5744] | 11 | class ParticleSystem; |
12 | class ParticleEmitter; | |
[5590] | 13 | |
14 | //! A Class to ... | |
[5593] | 15 | class Bomb : public Projectile |
[5590] | 16 | { |
17 | ||
18 | public: | |
[5593] | 19 | Bomb(const TiXmlElement* root = NULL); |
20 | virtual ~Bomb(); | |
[5590] | 21 | |
22 | void loadParams(const TiXmlElement* root); | |
23 | void init(); | |
24 | ||
[5603] | 25 | // virtual void postSpawn (); |
26 | // virtual void leftWorld (); | |
[5590] | 27 | |
28 | ||
29 | virtual void draw() const; | |
30 | virtual void tick(float time); | |
31 | virtual void collidesWith (WorldEntity* entity, const Vector& location); | |
[5603] | 32 | virtual void activate(); |
[5744] | 33 | virtual void detonate(); |
[5603] | 34 | virtual void deactivate(); |
[5590] | 35 | |
36 | private: | |
[5603] | 37 | static FastFactory* fastFactory; |
[5744] | 38 | static ParticleSystem* trailParticles; |
39 | static ParticleSystem* explosionParticles; | |
[5590] | 40 | |
[5744] | 41 | ParticleEmitter* emitter; |
42 | ||
[5590] | 43 | }; |
44 | ||
[5593] | 45 | #endif /* BOMB */ |
Note: See TracBrowser
for help on using the repository browser.