Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/world_entities/src/world_entities/weapons/aiming_turret.h @ 5527

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

world_entities: new AimingTurret added.
This turret aims a Target that is the nearest one, and shoots in its direction

File size: 599 bytes
Line 
1/*!
2 * @file aiming_turret.h
3*/
4
5
6#ifndef _AIMING_TURRET_H
7#define _AIMING_TURRET_H
8
9#include "weapon.h"
10
11class AimingTurret : public Weapon
12  {
13  public:
14    AimingTurret (WeaponManager* weaponManager);
15    AimingTurret(const TiXmlElement* root);
16    virtual ~AimingTurret ();
17
18    void init();
19    void loadParams(const TiXmlElement* root);
20
21    virtual void activate();
22    virtual void deactivate();
23
24    virtual void tick(float dt);
25    virtual void fire();
26    virtual void destroy();
27
28    virtual void draw() const;
29
30  private:
31    PNode*          target;
32  };
33
34#endif /* _AIMING_TURRET_H */
Note: See TracBrowser for help on using the repository browser.