Last change
on this file since 4651 was
4597,
checked in by bensch, 19 years ago
|
orxonox/trunk: setClassID implemented in all files
|
File size:
1.1 KB
|
Line | |
---|
1 | /*! |
---|
2 | \file pilot_node.h |
---|
3 | \brief Definition of a PilotNode |
---|
4 | */ |
---|
5 | |
---|
6 | |
---|
7 | #ifndef _PILOT_NODE_H |
---|
8 | #define _PILOT_NODE_H |
---|
9 | |
---|
10 | #include "world_entity.h" |
---|
11 | #include "event_listener.h" |
---|
12 | |
---|
13 | class Event; |
---|
14 | |
---|
15 | //! The PilotNode is a node that enables the is driven by the Mouse |
---|
16 | class PilotNode : public WorldEntity, public EventListener { |
---|
17 | |
---|
18 | public: |
---|
19 | PilotNode (); |
---|
20 | virtual ~PilotNode (); |
---|
21 | |
---|
22 | virtual void tick(float time); |
---|
23 | |
---|
24 | virtual void process(const Event &event); |
---|
25 | |
---|
26 | private: |
---|
27 | void move(float time); |
---|
28 | |
---|
29 | private: |
---|
30 | bool bUp; //!< up button pressed. |
---|
31 | bool bDown; //!< down button pressed. |
---|
32 | bool bLeft; //!< left button pressed. |
---|
33 | bool bRight; //!< right button pressed. |
---|
34 | |
---|
35 | int pitch; //!< the pitch of the node |
---|
36 | int roll; //!< the roll of the node |
---|
37 | |
---|
38 | Vector* velocity; //!< the velocity of the player. |
---|
39 | float travelSpeed; //!< the current speed of the player (to make soft movement) |
---|
40 | float acceleration; //!< the acceleration of the player. |
---|
41 | |
---|
42 | |
---|
43 | }; |
---|
44 | |
---|
45 | #endif /* _PILOT_NODE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.