source:
orxonox.OLD/trunk/src/world_entities/projectiles/spike_ball.h
Last change on this file was 10368, checked in by patrick, 18 years ago | |
---|---|
File size: 1.3 KB |
Rev | Line | |
---|---|---|
[10170] | 1 | /*! |
[10252] | 2 | * @file spike_ball.h |
3 | * @brief Noxonian SpikeBall Projectile; 2 stage weapon, splits into spikes | |
[10170] | 4 | */ |
5 | ||
6 | #ifndef _SPIKE_BALL_H | |
7 | #define _SPIKE_BALL_H | |
8 | ||
[10235] | 9 | #include "projectile_weapon.h" |
[10252] | 10 | #include "spike.h" |
[10170] | 11 | #include "effects/billboard.h" |
[10188] | 12 | |
[10170] | 13 | |
[10196] | 14 | #include "extendable.h" |
15 | ||
[10170] | 16 | class Vector; |
[10235] | 17 | class ProjectileWeapon; |
[10170] | 18 | class SpriteParticles; |
19 | class ParticleEmitter; | |
20 | class FastFactory; | |
21 | ||
[10188] | 22 | |
[10235] | 23 | class SpikeBall : public ProjectileWeapon |
[10170] | 24 | { |
25 | ObjectListDeclaration(SpikeBall); | |
26 | public: | |
27 | SpikeBall (); | |
28 | virtual ~SpikeBall (); | |
29 | ||
30 | ||
31 | virtual void activate(); | |
32 | virtual void deactivate(); | |
33 | ||
[10345] | 34 | // virtual void collidesWith(WorldEntity* entity, const Vector& location); |
[10170] | 35 | |
36 | virtual void destroy (WorldEntity* killer); | |
37 | ||
38 | virtual void tick (float dt); | |
39 | virtual void draw () const; | |
40 | ||
[10271] | 41 | inline void setVelocity(Vector velocity) { this->velocity = velocity; } |
[10260] | 42 | |
[10188] | 43 | |
[10170] | 44 | private: |
45 | static FastFactory* fastFactory; | |
46 | ||
47 | static SpriteParticles* explosionParticles; | |
48 | ||
49 | ParticleEmitter* emitter; | |
50 | ||
[10271] | 51 | Vector velocity; |
[10170] | 52 | |
53 | Billboard* halo; | |
54 | ||
55 | WorldEntity* hitEntity; // FIXME TEMPORARY | |
[10188] | 56 | |
[10252] | 57 | void updateFireDir(); |
58 | virtual void blow(); | |
59 | ||
60 | Vector* launcher; | |
61 | float size; | |
62 | ||
[10333] | 63 | bool freeMode; |
64 | ||
[10170] | 65 | }; |
66 | ||
67 | #endif /* _SPIKE_BALL_H */ |
Note: See TracBrowser
for help on using the repository browser.