source:
orxonox.OLD/trunk/src/world_entities/projectiles/rocket.h
@
10676
Last change on this file since 10676 was 9869, checked in by bensch, 18 years ago | |
---|---|
File size: 830 bytes |
Rev | Line | |
---|---|---|
[4890] | 1 | /*! |
[5456] | 2 | * @file rocket.h |
3 | * @brief a Rocket Projectile | |
[3708] | 4 | */ |
5 | ||
[5456] | 6 | #ifndef _ROCKET_H |
7 | #define _ROCKET_H | |
[3708] | 8 | |
[3710] | 9 | #include "projectile.h" |
[3708] | 10 | |
[6622] | 11 | class SpriteParticles; |
[5443] | 12 | class ParticleEmitter; |
[5447] | 13 | class FastFactory; |
[3708] | 14 | |
[5456] | 15 | class Rocket : public Projectile |
[3708] | 16 | { |
[9869] | 17 | ObjectListDeclaration(Rocket); |
[3708] | 18 | |
[9869] | 19 | public: |
20 | Rocket (); | |
21 | virtual ~Rocket (); | |
[3708] | 22 | |
[4890] | 23 | |
[9869] | 24 | virtual void activate(); |
25 | virtual void deactivate(); | |
[5443] | 26 | |
[9869] | 27 | virtual void collidesWith(WorldEntity* entity, const Vector& location); |
[5443] | 28 | |
[9869] | 29 | virtual void destroy (WorldEntity* killer); |
[5443] | 30 | |
[9869] | 31 | virtual void tick (float time); |
32 | virtual void draw () const; | |
[5443] | 33 | |
34 | ||
[9869] | 35 | private: |
36 | static FastFactory* fastFactory; | |
37 | static SpriteParticles* trailParticles; | |
38 | static SpriteParticles* explosionParticles; | |
[5447] | 39 | |
[9869] | 40 | ParticleEmitter* emitter; |
[5447] | 41 | |
42 | ||
[9869] | 43 | WorldEntity* hitEntity; // FIXME TEMPORARY |
44 | ||
[3708] | 45 | }; |
46 | ||
[5456] | 47 | #endif /* _ROCKET_H */ |
Note: See TracBrowser
for help on using the repository browser.