Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/util/track/pilot_node.h @ 4456

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

orxonox/trunk: moved pilot node to util/track directory

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