Last change
on this file since 8760 was
6622,
checked in by bensch, 19 years ago
|
orxonox/trunk: Material can now be copied
ParticleSprite used for all Projectiles
|
File size:
1011 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file bomb.h |
---|
3 | * @brief description |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _BOMB_H |
---|
7 | #define _BOMB_H |
---|
8 | |
---|
9 | #include "projectile.h" |
---|
10 | |
---|
11 | class FastFactory; |
---|
12 | class SpriteParticles; |
---|
13 | class ParticleEmitter; |
---|
14 | class Material; |
---|
15 | |
---|
16 | //! A Class to ... |
---|
17 | class Bomb : public Projectile |
---|
18 | { |
---|
19 | |
---|
20 | public: |
---|
21 | Bomb(const TiXmlElement* root = NULL); |
---|
22 | virtual ~Bomb(); |
---|
23 | |
---|
24 | virtual void loadParams(const TiXmlElement* root); |
---|
25 | void init(); |
---|
26 | |
---|
27 | // virtual void postSpawn (); |
---|
28 | // virtual void leftWorld (); |
---|
29 | |
---|
30 | |
---|
31 | virtual void draw() const; |
---|
32 | virtual void tick(float time); |
---|
33 | virtual void collidesWith (WorldEntity* entity, const Vector& location); |
---|
34 | virtual void activate(); |
---|
35 | virtual void deactivate(); |
---|
36 | |
---|
37 | void detonate(float size); |
---|
38 | |
---|
39 | private: |
---|
40 | static FastFactory* fastFactory; |
---|
41 | static SpriteParticles* trailParticles; |
---|
42 | static SpriteParticles* explosionParticles; |
---|
43 | |
---|
44 | ParticleEmitter* emitter; |
---|
45 | Model* detonationSphere; |
---|
46 | Material* detonationMaterial; |
---|
47 | }; |
---|
48 | |
---|
49 | #endif /* BOMB */ |
---|
Note: See
TracBrowser
for help on using the repository browser.