source:
orxonox.OLD/branches/playability/src/world_entities/projectiles/mbolt.h
@
10104
Last change on this file since 10104 was 10081, checked in by marcscha, 18 years ago | |
---|---|
File size: 1.0 KB |
Rev | Line | |
---|---|---|
[9999] | 1 | /*! |
2 | * @file mbolt.h | |
3 | * @brief medium blaster bolt | |
4 | */ | |
5 | ||
6 | #ifndef _MBOLT_H | |
7 | #define _MBOLT_H | |
8 | ||
9 | #include "projectile.h" | |
[10042] | 10 | #include "material.h" |
[9999] | 11 | |
12 | class Vector; | |
13 | class Weapon; | |
14 | class SpriteParticles; | |
15 | class ParticleEmitter; | |
16 | class FastFactory; | |
[10081] | 17 | class Trail; |
[9999] | 18 | |
19 | class MBolt : public Projectile | |
20 | { | |
[10064] | 21 | ObjectListDeclaration(MBolt); |
[9999] | 22 | public: |
23 | MBolt (); | |
24 | virtual ~MBolt (); | |
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 | ||
38 | private: | |
39 | static FastFactory* fastFactory; | |
40 | static SpriteParticles* explosionParticles; | |
41 | ||
[10081] | 42 | Trail* trail; |
43 | ||
[10042] | 44 | float angle; |
[10064] | 45 | static const float rotationSpeed = 1080; |
[10042] | 46 | |
[9999] | 47 | ParticleEmitter* emitter; |
48 | ||
[10042] | 49 | Material* mat; |
[9999] | 50 | |
[10042] | 51 | |
[9999] | 52 | WorldEntity* hitEntity; // FIXME TEMPORARY |
53 | }; | |
54 | ||
55 | #endif /* _MBOLT_H */ |
Note: See TracBrowser
for help on using the repository browser.