Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/projectiles/spike_ball.h @ 10370

Last change on this file since 10370 was 10368, checked in by patrick, 18 years ago

merged the branche playability into the trunk

File size: 1.3 KB
Line 
1/*!
2 * @file spike_ball.h
3 * @brief Noxonian SpikeBall Projectile; 2 stage weapon, splits into spikes
4*/
5
6#ifndef _SPIKE_BALL_H
7#define _SPIKE_BALL_H
8
9#include "projectile_weapon.h"
10#include "spike.h"
11#include "effects/billboard.h"
12
13
14#include "extendable.h"
15
16class Vector;
17class ProjectileWeapon;
18class SpriteParticles;
19class ParticleEmitter;
20class FastFactory;
21
22
23class SpikeBall : public ProjectileWeapon
24{
25  ObjectListDeclaration(SpikeBall);
26  public:
27    SpikeBall ();
28    virtual ~SpikeBall ();
29
30
31    virtual void activate();
32    virtual void deactivate();
33
34   // virtual void collidesWith(WorldEntity* entity, const Vector& location);
35
36    virtual void destroy (WorldEntity* killer);
37
38    virtual void tick (float dt);
39    virtual void draw () const;
40
41    inline void setVelocity(Vector velocity) { this->velocity = velocity; }
42
43
44  private:
45    static FastFactory*               fastFactory;
46
47    static SpriteParticles*           explosionParticles;
48
49    ParticleEmitter*                  emitter;
50
51    Vector                            velocity;
52
53    Billboard*                        halo;
54
55    WorldEntity* hitEntity; // FIXME TEMPORARY
56
57    void updateFireDir();
58    virtual void blow();
59
60    Vector*       launcher;
61    float         size;
62
63    bool          freeMode;
64
65};
66
67#endif /* _SPIKE_BALL_H */
Note: See TracBrowser for help on using the repository browser.