Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 9516 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: 646 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
28private:
29  void init();
30
31private:
32  Aim            target;
33  PNode*         lockedTarget;
34  float          lockedTime;
35  float          neededLockTime;
36};
37
38#endif /* _TARGETING_TURRET_H */
Note: See TracBrowser for help on using the repository browser.