Last change
on this file since 10525 was
10368,
checked in by patrick, 18 years ago
|
merged the branche playability into the trunk
|
File size:
1.0 KB
|
Rev | Line | |
---|
[10170] | 1 | /*! |
---|
| 2 | * @file spike.h |
---|
| 3 | * @brief light blaster spike |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | #ifndef _SPIKE_H |
---|
| 7 | #define _SPIKE_H |
---|
| 8 | |
---|
| 9 | #include "projectile.h" |
---|
| 10 | #include "effects/billboard.h" |
---|
| 11 | |
---|
| 12 | class Vector; |
---|
| 13 | class Weapon; |
---|
| 14 | class SpriteParticles; |
---|
| 15 | class ParticleEmitter; |
---|
| 16 | class FastFactory; |
---|
| 17 | |
---|
| 18 | class Spike : public Projectile |
---|
| 19 | { |
---|
| 20 | ObjectListDeclaration(Spike); |
---|
| 21 | public: |
---|
| 22 | Spike (); |
---|
| 23 | virtual ~Spike (); |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | virtual void activate(); |
---|
| 27 | virtual void deactivate(); |
---|
| 28 | |
---|
[10345] | 29 | //virtual void collidesWith(WorldEntity* entity, const Vector& location); |
---|
[10170] | 30 | |
---|
| 31 | virtual void destroy (WorldEntity* killer); |
---|
| 32 | |
---|
| 33 | virtual void tick (float dt); |
---|
| 34 | virtual void draw () const; |
---|
| 35 | |
---|
[10196] | 36 | inline void setVelocity(Vector velocity) {this->velocity = velocity;} |
---|
[10170] | 37 | private: |
---|
| 38 | static FastFactory* fastFactory; |
---|
| 39 | |
---|
| 40 | static SpriteParticles* explosionParticles; |
---|
| 41 | |
---|
| 42 | ParticleEmitter* emitter; |
---|
| 43 | |
---|
| 44 | float angle; |
---|
| 45 | float rotationSpeed; |
---|
| 46 | |
---|
| 47 | WorldEntity* hitEntity; // FIXME TEMPORARY |
---|
[10286] | 48 | |
---|
| 49 | Vector velocity; |
---|
[10170] | 50 | }; |
---|
| 51 | |
---|
| 52 | #endif /* _SPIKE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.