Changeset 5899 in orxonox.OLD for branches/spaceshipcontrol
- Timestamp:
- Dec 3, 2005, 5:43:42 PM (19 years ago)
- Location:
- branches/spaceshipcontrol/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/story_entities/world.cc
r5895 r5899 69 69 #include "npcs/npc_test1.h" 70 70 #include "shader.h" 71 72 #include "playable.h" 71 73 72 74 SHELL_COMMAND(speed, World, setSpeed); -
branches/spaceshipcontrol/src/world_entities/player.cc
r5895 r5899 15 15 16 16 #include "player.h" 17 #include "playable.h" 17 18 18 19 #include "event_handler.h" 19 #include "event.h"20 20 21 21 using namespace std; -
branches/spaceshipcontrol/src/world_entities/player.h
r5895 r5899 7 7 #define _PLAYER_H 8 8 9 #include "world_entity.h"10 #include "physics_interface.h"11 9 #include "event_listener.h" 12 #include "playable.h"13 10 11 /* Forward Declaration */ 12 class Playable; 14 13 15 14 //! Basic controllable WorldEntity … … 26 25 virtual ~Player(); 27 26 28 void init(); 27 bool setControllable(Playable* controllalble); 28 void disconnectControllable(); 29 inline Playable* getControllable() { return this->controllable; }; 29 30 31 // eventListener extension. 32 virtual void process(const Event &event); 30 33 31 virtual void process(const Event &event); 32 33 bool setControllable(Playable* controllalble); 34 void disconnectControllable(); 35 Playable* getControllable() { return this->controllable; }; 34 private: 35 void init(); 36 36 37 37 38 38 private: 39 Playable* controllable; 40 41 39 Playable* controllable; //!< The one we controll or NULL if none 42 40 }; 43 41
Note: See TracChangeset
for help on using the changeset viewer.