Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/playability/src/world_entities/projectiles/spike_ball.h @ 10271

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

working spikeballs

File size: 1.4 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// #include "../weapons/spike_launcher.h"
14
15
16#include "extendable.h"
17
18class Vector;
19class ProjectileWeapon;
20class SpriteParticles;
21class ParticleEmitter;
22class FastFactory;
23
24
25class SpikeBall : public ProjectileWeapon
26{
27  ObjectListDeclaration(SpikeBall);
28  public:
29    SpikeBall ();
30    virtual ~SpikeBall ();
31
32
33    virtual void activate();
34    virtual void deactivate();
35
36    virtual void collidesWith(WorldEntity* entity, const Vector& location);
37
38    virtual void destroy (WorldEntity* killer);
39
40    virtual void tick (float dt);
41    virtual void draw () const;
42
43    inline void setVelocity(Vector velocity) { this->velocity = velocity; }
44
45//     inline Vector getRotationVector() { return this->rotationVector; }
46//     inline float getAngle() { return this->angle; }
47
48  private:
49    static FastFactory*               fastFactory;
50
51    static SpriteParticles*           explosionParticles;
52
53    ParticleEmitter*                  emitter;
54
55    Vector                            velocity;
56
57    Billboard*                        halo;
58
59    WorldEntity* hitEntity; // FIXME TEMPORARY
60
61    void updateFireDir();
62    virtual void blow();
63
64    Vector*       launcher;
65    float         size;
66
67};
68
69#endif /* _SPIKE_BALL_H */
Note: See TracBrowser for help on using the repository browser.