Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/playability/src/world_entities/projectiles/hbolt.h @ 10063

Last change on this file since 10063 was 10063, checked in by nicolasc, 17 years ago

halo effects

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