source:
orxonox.OLD/trunk/src/world_entities/projectiles/test_bullet.h
| Last change on this file was 9869, checked in by bensch, 19 years ago | |
|---|---|
| File size: 940 bytes | |
| Rev | Line | |
|---|---|---|
| [4890] | 1 | /*! |
| [3708] | 2 | \projectile.h |
| [4836] | 3 | * a projectile, that is been shooted by a weapon |
| [3708] | 4 | */ |
| 5 | ||
| [3709] | 6 | #ifndef _TEST_BULLET_H |
| 7 | #define _TEST_BULLET_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 | |
| [4890] | 17 | class TestBullet : public Projectile |
| [3708] | 18 | { |
| [9869] | 19 | ObjectListDeclaration(TestBullet); |
| 20 | ||
| [5443] | 21 | public: |
| 22 | TestBullet (); | |
| 23 | virtual ~TestBullet (); | |
| [3708] | 24 | |
| 25 | ||
| [5443] | 26 | virtual void activate(); |
| 27 | virtual void deactivate(); | |
| [4890] | 28 | |
| [5443] | 29 | virtual void collidesWith(WorldEntity* entity, const Vector& location); |
| 30 | ||
| [9235] | 31 | virtual void destroy (WorldEntity* killer); |
| [5443] | 32 | |
| 33 | virtual void tick (float time); | |
| [5500] | 34 | virtual void draw () const; |
| [5443] | 35 | |
| 36 | private: | |
| [5447] | 37 | static FastFactory* fastFactory; |
| [6622] | 38 | static SpriteParticles* trailParticles; |
| 39 | static SpriteParticles* explosionParticles; | |
| [5443] | 40 | |
| [5447] | 41 | ParticleEmitter* emitter; |
| 42 | ||
| 43 | ||
| 44 | WorldEntity* hitEntity; // FIXME TEMPORARY | |
| 45 | ||
| [3708] | 46 | }; |
| 47 | ||
| [3709] | 48 | #endif /* _TEST_BULLET_H */ |
Note: See TracBrowser
for help on using the repository browser.










