Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/proxy/src/world_entities/projectiles/guided_missile.h @ 9622

Last change on this file since 9622 was 9516, checked in by bensch, 18 years ago

orxonox/proxy: the rockets from the targeting turrets aquire targets as they are supposed, but they do not get fired unless the player is near of them… strangely

File size: 1.1 KB
Line 
1/*!
2 * @file guided_missile.h
3 * @brief a GuidedMissile Projectile
4*/
5
6#ifndef _GUIDED_MISSILE_H
7#define _GUIDED_MISSILE_H
8
9#include "projectile.h"
10
11class Weapon;
12class SpriteParticles;
13class ParticleEmitter;
14class FastFactory;
15
16class GuidedMissile : public Projectile
17{
18  public:
19    GuidedMissile ();
20    virtual ~GuidedMissile ();
21
22    virtual void activate();
23    virtual void deactivate();
24
25    virtual void collidesWith(WorldEntity* entity, const Vector& location);
26
27    virtual void destroy (WorldEntity* killer);
28
29    virtual void tick (float time);
30    virtual void draw () const;
31
32
33  private:
34    static FastFactory*               fastFactory;
35    static SpriteParticles*           trailParticles;
36    static SpriteParticles*           explosionParticles;
37
38    ParticleEmitter*                  emitter;
39    float                             agility;
40    float                             maxVelocity;
41    float                             speed;
42    Vector                            diffVector ;
43    Vector                            correctionVector;
44
45    WorldEntity* hitEntity; // FIXME TEMPORARY
46
47};
48
49#endif /* _GUIDED_MISSILE_H */
Note: See TracBrowser for help on using the repository browser.