Changeset 5847 in orxonox.OLD
- Timestamp:
- Dec 1, 2005, 4:38:39 PM (19 years ago)
- Location:
- branches/spaceshipcontrol/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/playable.h
r5838 r5847 10 10 #include "event.h" 11 11 12 class Weapon; 12 13 class WeaponManager; 13 14 … … 28 29 void loadParams(const TiXmlElement* root); 29 30 30 v oid addWeapon(Weapon* weapon);31 v oid removeWeapon(Weapon* weapon);31 virtual void addWeapon(Weapon* weapon )= 0; 32 virtual void removeWeapon(Weapon* weapon) = 0; 32 33 33 virtual void process(const Event &event) ;34 virtual void process(const Event &event) = 0; 34 35 35 36 WeaponManager* getWeaponManager(); -
branches/spaceshipcontrol/src/world_entities/player.cc
r5841 r5847 68 68 } 69 69 70 /** 71 * subscribe to all events because the player dosen't know to witch keys the controllable can react 72 */ 70 73 void Player::subscribeEvents() 71 74 { … … 78 81 } 79 82 83 80 84 void Player::setControllable(Playable controllalble) 81 85 { 82 86 this->controllable = controllable; 83 87 } 88 84 89 85 90 -
branches/spaceshipcontrol/src/world_entities/player.h
r5840 r5847 31 31 virtual void process(const Event &event); 32 32 33 void setControllable(Playable controllalble);33 void setControllable(Playable* controllalble); 34 34 Playable* getControllable(); 35 35
Note: See TracChangeset
for help on using the changeset viewer.