Last change
on this file since 10770 was
10618,
checked in by bknecht, 18 years ago
|
merged cleanup into trunk (only improvements)
|
File size:
986 bytes
|
Rev | Line | |
---|
[10044] | 1 | /*! |
---|
| 2 | * @file lbolt.h |
---|
| 3 | * @brief light blaster lbolt |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | #ifndef _LBOLT_H |
---|
| 7 | #define _LBOLT_H |
---|
| 8 | |
---|
| 9 | #include "projectile.h" |
---|
[10063] | 10 | #include "effects/billboard.h" |
---|
[10044] | 11 | |
---|
| 12 | class Vector; |
---|
| 13 | class Weapon; |
---|
| 14 | class SpriteParticles; |
---|
| 15 | class ParticleEmitter; |
---|
| 16 | class FastFactory; |
---|
| 17 | |
---|
| 18 | class LBolt : public Projectile |
---|
| 19 | { |
---|
| 20 | ObjectListDeclaration(LBolt); |
---|
| 21 | public: |
---|
| 22 | LBolt (); |
---|
| 23 | virtual ~LBolt (); |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | virtual void activate(); |
---|
| 27 | virtual void deactivate(); |
---|
| 28 | |
---|
[10274] | 29 | virtual void hit (float damage, WorldEntity* entity); |
---|
[10044] | 30 | |
---|
| 31 | virtual void destroy (WorldEntity* killer); |
---|
| 32 | |
---|
| 33 | virtual void tick (float dt); |
---|
| 34 | virtual void draw () const; |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | private: |
---|
| 38 | static FastFactory* fastFactory; |
---|
| 39 | |
---|
| 40 | static SpriteParticles* explosionParticles; |
---|
| 41 | |
---|
| 42 | ParticleEmitter* emitter; |
---|
| 43 | |
---|
| 44 | float angle; |
---|
[10618] | 45 | static const float rotationSpeed = 1080; |
---|
[10044] | 46 | |
---|
[10063] | 47 | Billboard* halo; |
---|
| 48 | |
---|
[10044] | 49 | WorldEntity* hitEntity; // FIXME TEMPORARY |
---|
| 50 | }; |
---|
| 51 | |
---|
| 52 | #endif /* _LBOLT_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.