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