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