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
RevLine 
[9156]1/*!
2 * @file aiming_system.h
3 *  Definition of
4 */
5
6#ifndef _AIMING_SYSTEM_H
7#define _AIMING_SYSTEM_H
8
9
[9160]10#include "world_entity.h"
11
12
13
[9156]14// FORWARD DECLARATION
15class TiXmlElement;
[9160]16class BVTree;
17class Model;
[9172]18class OBBTree;
[9156]19
20
[9160]21class AimingSystem : public WorldEntity
[9156]22{
23
24 public:
[9168]25  AimingSystem(WorldEntity* owner = NULL);
[9156]26  virtual ~AimingSystem();
27
28  void init();
29
[9166]30  WorldEntity* getNearestTarget();
[9172]31  void flushList() { this->selectionList.clear(); }
[9156]32
33  void setRange(float range){this->range = range;};
34
[9160]35  void hit(float damage, WorldEntity* killer);
[9156]36
37  virtual void tick(float dt);
38  virtual void draw() const;
39
[9157]40
[9156]41 private:
[9160]42   float                       range;                //!<
[9172]43   float                       sideLength;
[9160]44   std::vector<WorldEntity*>   selectionList;        //!< the selections
[9156]45
[9168]46   WorldEntity*                owner;                //!< the owner of the targeting system
[9160]47
[9172]48   OBBTree*                    obbTree;
49
[9156]50};
51
52#endif /* _AIMING_SYSTEM_H */
Note: See TracBrowser for help on using the repository browser.