Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/weapons/targeting_turret.h @ 9869

Last change on this file since 9869 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
RevLine 
[6255]1/*!
2 * @file aiming_turret.h
3*/
4
5
6#ifndef _TARGETING_TURRET_H
7#define _TARGETING_TURRET_H
8
9#include "weapon.h"
[9656]10#include "aim.h"
[6255]11
12class TargetingTurret : public Weapon
[9656]13{
[9869]14  ObjectListDeclaration(TargetingTurret);
[9656]15public:
16  TargetingTurret(const TiXmlElement* root = NULL);
17  virtual ~TargetingTurret ();
[6255]18
[9656]19  virtual void loadParams(const TiXmlElement* root);
[6255]20
[9656]21  virtual void activate();
22  virtual void deactivate();
[6255]23
[9656]24  virtual void tick(float dt);
25  virtual void fire();
[6255]26
[9656]27  virtual void draw() const;
[6255]28
[9869]29  void setTargetGroup(OM_LIST targetGroup) { this->target->setTargetGroup(targetGroup); };
[9656]30  const PNode* getLockedTarget() const { return lockedTarget; };
[6255]31
[9656]32private:
33  void init();
34
35private:
[9869]36  Aim*           target;
[9656]37  PNode*         lockedTarget;
38  float          lockedTime;
39  float          neededLockTime;
40};
41
[6255]42#endif /* _TARGETING_TURRET_H */
Note: See TracBrowser for help on using the repository browser.