Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

less debug more boxes creation obb

File size: 963 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;
18class OBBTree;
19
20
21class AimingSystem : public WorldEntity
22{
23
24 public:
25  AimingSystem(WorldEntity* owner = NULL);
26  virtual ~AimingSystem();
27
28  void init();
29
30  WorldEntity* getNearestTarget();
31  void flushList() { this->selectionList.clear(); }
32
33  void setRange(float range){this->range = range;};
34
35  void hit(float damage, WorldEntity* killer);
36
37  virtual void tick(float dt);
38  virtual void draw() const;
39
40
41 private:
42   float                       range;                //!<
43   float                       sideLength;
44   std::vector<WorldEntity*>   selectionList;        //!< the selections
45
46   WorldEntity*                owner;                //!< the owner of the targeting system
47
48   OBBTree*                    obbTree;
49
50};
51
52#endif /* _AIMING_SYSTEM_H */
Note: See TracBrowser for help on using the repository browser.