Rev | Line | |
---|
[10170] | 1 | /*! |
---|
| 2 | * @file lbolt.h |
---|
| 3 | * @brief light blaster lbolt |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | #ifndef _SPIKE_BALL_H |
---|
| 7 | #define _SPIKE_BALL_H |
---|
| 8 | |
---|
| 9 | #include "projectile.h" |
---|
| 10 | #include "effects/billboard.h" |
---|
[10188] | 11 | |
---|
| 12 | #include "../weapons/spike_launcher.h" |
---|
[10170] | 13 | |
---|
[10196] | 14 | |
---|
| 15 | #include "extendable.h" |
---|
| 16 | |
---|
[10170] | 17 | class Vector; |
---|
| 18 | class Weapon; |
---|
| 19 | class SpriteParticles; |
---|
| 20 | class ParticleEmitter; |
---|
| 21 | class FastFactory; |
---|
[10188] | 22 | class WeaponManager; |
---|
[10170] | 23 | |
---|
[10188] | 24 | |
---|
[10170] | 25 | class SpikeBall : public Projectile |
---|
| 26 | { |
---|
| 27 | ObjectListDeclaration(SpikeBall); |
---|
| 28 | public: |
---|
| 29 | SpikeBall (); |
---|
| 30 | virtual ~SpikeBall (); |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | virtual void activate(); |
---|
| 34 | virtual void deactivate(); |
---|
| 35 | |
---|
| 36 | virtual void collidesWith(WorldEntity* entity, const Vector& location); |
---|
| 37 | |
---|
| 38 | virtual void destroy (WorldEntity* killer); |
---|
| 39 | |
---|
| 40 | virtual void tick (float dt); |
---|
| 41 | virtual void draw () const; |
---|
| 42 | |
---|
[10188] | 43 | inline Vector getRotationVector() { return this->rotationVector; } |
---|
| 44 | inline float getAngle() { return this->angle; } |
---|
| 45 | |
---|
[10170] | 46 | // virtual void blow(); |
---|
| 47 | |
---|
| 48 | private: |
---|
| 49 | static FastFactory* fastFactory; |
---|
| 50 | |
---|
| 51 | static SpriteParticles* explosionParticles; |
---|
| 52 | |
---|
| 53 | ParticleEmitter* emitter; |
---|
| 54 | |
---|
| 55 | float speed; |
---|
| 56 | |
---|
| 57 | float angle; |
---|
| 58 | float rotationSpeed; |
---|
[10188] | 59 | Vector rotationVector; |
---|
[10170] | 60 | |
---|
| 61 | Billboard* halo; |
---|
| 62 | |
---|
| 63 | WorldEntity* hitEntity; // FIXME TEMPORARY |
---|
[10188] | 64 | |
---|
[10196] | 65 | WeaponManager* weaponMan; |
---|
[10188] | 66 | |
---|
[10217] | 67 | bool ttd; |
---|
[10170] | 68 | }; |
---|
| 69 | |
---|
| 70 | #endif /* _SPIKE_BALL_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.