Line | |
---|
1 | /*! |
---|
2 | * @file aiming_system.h |
---|
3 | * Definition of |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _AIMING_SYSTEM_H |
---|
7 | #define _AIMING_SYSTEM_H |
---|
8 | |
---|
9 | #include "p_node.h" |
---|
10 | #include "element_2d.h" |
---|
11 | #include "object_manager.h" |
---|
12 | |
---|
13 | // FORWARD DECLARATION |
---|
14 | class TiXmlElement; |
---|
15 | |
---|
16 | |
---|
17 | |
---|
18 | class AimingSystem : public PNode |
---|
19 | { |
---|
20 | |
---|
21 | public: |
---|
22 | AimingSystem(const TiXmlElement* root = NULL); |
---|
23 | virtual ~AimingSystem(); |
---|
24 | |
---|
25 | void init(); |
---|
26 | virtual void loadParams(const TiXmlElement* root); |
---|
27 | |
---|
28 | |
---|
29 | inline void selectTarget(PNode* target) { this->setParent(target); }; |
---|
30 | inline PNode* getTarget(PNode* target) { return this->getParent(); }; |
---|
31 | |
---|
32 | |
---|
33 | void setRange(float range){this->range = range;}; |
---|
34 | void setGroup(OM_LIST group){this->group = group;}; |
---|
35 | |
---|
36 | |
---|
37 | virtual void tick(float dt); |
---|
38 | virtual void draw() const; |
---|
39 | |
---|
40 | |
---|
41 | private: |
---|
42 | float range; //!< |
---|
43 | OM_LIST group; |
---|
44 | |
---|
45 | }; |
---|
46 | |
---|
47 | #endif /* _AIMING_SYSTEM_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.