Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/cleanup/src/world_entities/weapons/targeting_turret.h @ 10772

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

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 845 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{
14  ObjectListDeclaration(TargetingTurret);
15public:
16  TargetingTurret(const TiXmlElement* root = NULL);
17  virtual ~TargetingTurret ();
18
19  virtual 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
27  virtual void draw() const;
28
29  void setTargetGroup(OM_LIST targetGroup) { this->target->setTargetGroup(targetGroup); };
30  const PNode* getLockedTarget() const { return lockedTarget; };
31
32private:
33  void init();
34
35private:
36  Aim*           target;
37  PNode*         lockedTarget;
38  float          lockedTime;
39  float          neededLockTime;
40};
41
42#endif /* _TARGETING_TURRET_H */
Note: See TracBrowser for help on using the repository browser.