source:
orxonox.OLD/trunk/src/world_entities/projectiles/bomb.h
@
10641
Last change on this file since 10641 was 9869, checked in by bensch, 18 years ago | |
---|---|
File size: 1.0 KB |
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" |
[5828] | 10 | |
[5603] | 11 | class FastFactory; |
[6622] | 12 | class SpriteParticles; |
[5744] | 13 | class ParticleEmitter; |
[5828] | 14 | class Material; |
[5590] | 15 | |
16 | //! A Class to ... | |
[5593] | 17 | class Bomb : public Projectile |
[5590] | 18 | { |
[9869] | 19 | ObjectListDeclaration(Bomb); |
[5590] | 20 | public: |
[5593] | 21 | Bomb(const TiXmlElement* root = NULL); |
22 | virtual ~Bomb(); | |
[5590] | 23 | |
[6512] | 24 | virtual void loadParams(const TiXmlElement* root); |
[5590] | 25 | void init(); |
26 | ||
[5603] | 27 | // virtual void postSpawn (); |
28 | // virtual void leftWorld (); | |
[5590] | 29 | |
30 | ||
31 | virtual void draw() const; | |
32 | virtual void tick(float time); | |
33 | virtual void collidesWith (WorldEntity* entity, const Vector& location); | |
[5603] | 34 | virtual void activate(); |
35 | virtual void deactivate(); | |
[5590] | 36 | |
[5826] | 37 | void detonate(float size); |
38 | ||
[5590] | 39 | private: |
[5603] | 40 | static FastFactory* fastFactory; |
[6622] | 41 | static SpriteParticles* trailParticles; |
42 | static SpriteParticles* explosionParticles; | |
[5590] | 43 | |
[5744] | 44 | ParticleEmitter* emitter; |
[5828] | 45 | Model* detonationSphere; |
46 | Material* detonationMaterial; | |
[5590] | 47 | }; |
48 | ||
[5593] | 49 | #endif /* BOMB */ |
Note: See TracBrowser
for help on using the repository browser.