Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4423 in orxonox.OLD for orxonox/trunk/src/lib/coord/pilot_node.h


Ignore:
Timestamp:
May 31, 2005, 7:10:01 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: space craft can be controled via keys, nothing new yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/coord/pilot_node.h

    r4418 r4423  
    99
    1010#include "comincl.h"
    11 #include "p_node.h"
     11#include "world_entity.h"
    1212#include "event_listener.h"
    1313
    1414class Event;
    1515
    16 class PilotNode : public PNode, public EventListener {
     16class PilotNode : public WorldEntity, public EventListener {
    1717
    1818 public:
    1919  PilotNode ();
    2020  virtual ~PilotNode ();
    21  
    22   void command(Command* cmd);
     21
     22  void tick(float time);
    2323
    2424  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
    2539
    2640};
Note: See TracChangeset for help on using the changeset viewer.