Line | |
---|
1 | /*! |
---|
2 | * @file hhbolt.h |
---|
3 | * @brief heavy blaster hbolt |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _HBOLT_H |
---|
7 | #define _HBOLT_H |
---|
8 | |
---|
9 | #include "projectile.h" |
---|
10 | #include "effects/billboard.h" |
---|
11 | |
---|
12 | |
---|
13 | class Vector; |
---|
14 | class Weapon; |
---|
15 | class SpriteParticles; |
---|
16 | class ParticleEmitter; |
---|
17 | class FastFactory; |
---|
18 | |
---|
19 | class HBolt : public Projectile |
---|
20 | { |
---|
21 | ObjectListDeclaration(HBolt); |
---|
22 | public: |
---|
23 | HBolt (); |
---|
24 | virtual ~HBolt (); |
---|
25 | |
---|
26 | |
---|
27 | virtual void activate(); |
---|
28 | virtual void deactivate(); |
---|
29 | |
---|
30 | virtual void hit (float damage, WorldEntity* entity); |
---|
31 | |
---|
32 | virtual void destroy (WorldEntity* killer); |
---|
33 | |
---|
34 | virtual void tick (float dt); |
---|
35 | virtual void draw () const; |
---|
36 | |
---|
37 | private: |
---|
38 | static FastFactory* fastFactory; |
---|
39 | |
---|
40 | static SpriteParticles* explosionParticles; |
---|
41 | |
---|
42 | ParticleEmitter* emitter; |
---|
43 | |
---|
44 | float angle; |
---|
45 | static const float rotationSpeed = 600; |
---|
46 | |
---|
47 | Billboard* halo; |
---|
48 | |
---|
49 | WorldEntity* hitEntity; // FIXME TEMPORARY |
---|
50 | OBBTree* obbTree; |
---|
51 | }; |
---|
52 | |
---|
53 | #endif /* _HBOLT_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.