Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: very fun effect when using the mouse to drive through debug level1, will be fixed…

File size: 942 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 "comincl.h"
11#include "world_entity.h"
12#include "event_listener.h"
13
14class Event;
15
16class PilotNode : public WorldEntity, public EventListener {
17
18 public:
19  PilotNode ();
20  virtual ~PilotNode ();
21
22  void tick(float time);
23
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  int pitch;
36  int roll;
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.