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" |
---|
| 11 | #include "../weapons/weapon.h" |
---|
| 12 | |
---|
| 13 | class Vector; |
---|
| 14 | class Weapon; |
---|
| 15 | class SpriteParticles; |
---|
| 16 | class ParticleEmitter; |
---|
| 17 | class FastFactory; |
---|
| 18 | |
---|
| 19 | class SpikeBall : public Projectile |
---|
| 20 | { |
---|
| 21 | ObjectListDeclaration(SpikeBall); |
---|
| 22 | public: |
---|
| 23 | SpikeBall (); |
---|
| 24 | virtual ~SpikeBall (); |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | virtual void activate(); |
---|
| 28 | virtual void deactivate(); |
---|
| 29 | |
---|
| 30 | virtual void collidesWith(WorldEntity* entity, const Vector& location); |
---|
| 31 | |
---|
| 32 | virtual void destroy (WorldEntity* killer); |
---|
| 33 | |
---|
| 34 | virtual void tick (float dt); |
---|
| 35 | virtual void draw () const; |
---|
| 36 | |
---|
| 37 | // virtual void blow(); |
---|
| 38 | |
---|
| 39 | private: |
---|
| 40 | static FastFactory* fastFactory; |
---|
| 41 | |
---|
| 42 | static SpriteParticles* explosionParticles; |
---|
| 43 | |
---|
| 44 | ParticleEmitter* emitter; |
---|
| 45 | |
---|
| 46 | float speed; |
---|
| 47 | |
---|
| 48 | float angle; |
---|
| 49 | float rotationSpeed; |
---|
| 50 | |
---|
| 51 | Billboard* halo; |
---|
| 52 | |
---|
| 53 | WorldEntity* hitEntity; // FIXME TEMPORARY |
---|
| 54 | }; |
---|
| 55 | |
---|
| 56 | #endif /* _SPIKE_BALL_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.