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