Last change
on this file since 4779 was
4779,
checked in by bensch, 19 years ago
|
orxonox/trunk: created a crosshair class, that will in the future enable us to shoot at enemies
|
File size:
626 bytes
|
Line | |
---|
1 | /*! |
---|
2 | \file crosshair.h |
---|
3 | \brief Definition of ... |
---|
4 | |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _CROSSHAIR_H |
---|
8 | #define _CROSSHAIR_H |
---|
9 | |
---|
10 | #include "event_listener.h" |
---|
11 | |
---|
12 | #include "vector.h" |
---|
13 | |
---|
14 | // FORWARD DEFINITION |
---|
15 | |
---|
16 | |
---|
17 | //! A class that enables the |
---|
18 | class Crosshair : public EventListener { |
---|
19 | |
---|
20 | public: |
---|
21 | Crosshair(); |
---|
22 | virtual ~Crosshair(); |
---|
23 | |
---|
24 | |
---|
25 | virtual void process(const Event &event); |
---|
26 | |
---|
27 | /** @returns the current 3D-position of the Crosshair */ |
---|
28 | const Vector& getPosition() { return this->position; }; |
---|
29 | |
---|
30 | void tick(float dt); |
---|
31 | void draw(); |
---|
32 | |
---|
33 | private: |
---|
34 | Vector position; //!< The current position of the Crosshair |
---|
35 | |
---|
36 | }; |
---|
37 | |
---|
38 | #endif /* _CROSSHAIR_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.