Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/proxy/src/world_entities/weapons/targeting_turret.h @ 9596

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

targetting turrets are firing all the time now, but the hack is out :/

File size: 712 bytes
Line 
1/*!
2 * @file aiming_turret.h
3*/
4
5
6#ifndef _TARGETING_TURRET_H
7#define _TARGETING_TURRET_H
8
9#include "weapon.h"
10#include "aim.h"
11
12class TargetingTurret : public Weapon
13{
14public:
15  TargetingTurret(const TiXmlElement* root = NULL);
16  virtual ~TargetingTurret ();
17
18  virtual void loadParams(const TiXmlElement* root);
19
20  virtual void activate();
21  virtual void deactivate();
22
23  virtual void tick(float dt);
24  virtual void fire();
25
26  virtual void draw() const;
27
28  const PNode* getLockedTarget() const { return lockedTarget; };
29
30private:
31  void init();
32
33private:
34  Aim            target;
35  PNode*         lockedTarget;
36  float          lockedTime;
37  float          neededLockTime;
38};
39
40#endif /* _TARGETING_TURRET_H */
Note: See TracBrowser for help on using the repository browser.