Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/presentation/src/world_entities/weapons/aiming_system.h @ 9166

Last change on this file since 9166 was 9166, checked in by patrick, 18 years ago

more aiming system work. nothing visible yet

File size: 926 bytes
Line 
1/*!
2 * @file aiming_system.h
3 *  Definition of
4 */
5
6#ifndef _AIMING_SYSTEM_H
7#define _AIMING_SYSTEM_H
8
9
10#include "world_entity.h"
11
12
13
14// FORWARD DECLARATION
15class TiXmlElement;
16class BVTree;
17class Model;
18
19
20class AimingSystem : public WorldEntity
21{
22
23 public:
24  AimingSystem(const TiXmlElement* root = NULL);
25  virtual ~AimingSystem();
26
27  void init();
28  virtual void loadParams(const TiXmlElement* root);
29
30
31  inline void selectTarget(PNode* target) { this->setParent(target); };
32  inline PNode* getTarget(PNode* target) { return this->getParent(); };
33
34  WorldEntity* getNearestTarget();
35
36
37  void setRange(float range){this->range = range;};
38
39  void hit(float damage, WorldEntity* killer);
40
41  virtual void tick(float dt);
42  virtual void draw() const;
43
44
45 private:
46   float                       range;                //!<
47   std::vector<WorldEntity*>   selectionList;        //!< the selections
48
49
50};
51
52#endif /* _AIMING_SYSTEM_H */
Note: See TracBrowser for help on using the repository browser.