Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/lib/coord/pilot_node.h @ 4443

Last change on this file since 4443 was 4443, checked in by patrick, 19 years ago

orxonox/trunk: removed the old command node files and cleaned up the last references to them

File size: 921 bytes
Line 
1/*!
2    \file helper_parent.h
3    \brief this is a parent class, that isn't visible in the real world itself
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
13class Event;
14
15class PilotNode : public WorldEntity, public EventListener {
16
17 public:
18  PilotNode ();
19  virtual ~PilotNode ();
20
21  void tick(float time);
22
23  void process(const Event &event);
24
25 private:
26  void move(float time);
27
28 private:
29  bool bUp;              //!< up button pressed.
30  bool bDown;            //!< down button pressed.
31  bool bLeft;            //!< left button pressed.
32  bool bRight;           //!< right button pressed.
33
34  int pitch;
35  int roll;
36
37  Vector* velocity;       //!< the velocity of the player.
38  float travelSpeed;     //!< the current speed of the player (to make soft movement)
39  float acceleration;    //!< the acceleration of the player.
40
41
42};
43
44#endif /* _PILOT_NODE_H */
Note: See TracBrowser for help on using the repository browser.