Changeset 4423 in orxonox.OLD for orxonox/trunk/src/lib/coord/pilot_node.h
- Timestamp:
- May 31, 2005, 7:10:01 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/pilot_node.h
r4418 r4423 9 9 10 10 #include "comincl.h" 11 #include " p_node.h"11 #include "world_entity.h" 12 12 #include "event_listener.h" 13 13 14 14 class Event; 15 15 16 class PilotNode : public PNode, public EventListener {16 class PilotNode : public WorldEntity, public EventListener { 17 17 18 18 public: 19 19 PilotNode (); 20 20 virtual ~PilotNode (); 21 22 void command(Command* cmd);21 22 void tick(float time); 23 23 24 24 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 Vector* velocity; //!< the velocity of the player. 36 float travelSpeed; //!< the current speed of the player (to make soft movement) 37 float acceleration; //!< the acceleration of the player. 38 25 39 26 40 };
Note: See TracChangeset
for help on using the changeset viewer.