Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/ODE/src/util/track/pilot_node.h @ 10609

Last change on this file since 10609 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 1.1 KB
Line 
1/*!
2 * @file pilot_node.h
3  *  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
13class Event;
14
15//! The PilotNode is a node that enables the is driven by the Mouse
16class PilotNode : public WorldEntity, public EventListener {
17  ObjectListDeclaration(PilotNode);
18
19 public:
20  PilotNode ();
21  virtual ~PilotNode ();
22
23  virtual void tick(float time);
24
25  virtual void process(const Event &event);
26
27 private:
28  void move(float time);
29
30 private:
31  bool        bUp;            //!< up button pressed.
32  bool        bDown;          //!< down button pressed.
33  bool        bLeft;          //!< left button pressed.
34  bool        bRight;         //!< right button pressed.
35
36  int         pitch;          //!< the pitch of the node
37  int         roll;           //!< the roll of the node
38
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.
42
43
44};
45
46#endif /* _PILOT_NODE_H */
Note: See TracBrowser for help on using the repository browser.