- Timestamp:
- Dec 1, 2005, 5:51:59 PM (19 years ago)
- Location:
- branches/spaceshipcontrol/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/playable.h
r5847 r5853 9 9 #include "world_entity.h" 10 10 #include "event.h" 11 #include <list.h> 11 12 12 13 class Weapon; … … 33 34 34 35 virtual void process(const Event &event) = 0; 35 36 virtual void setKeySet(); 37 virtual void getKeySet(); 36 38 WeaponManager* getWeaponManager(); 37 39 … … 39 41 40 42 WeaponManager* weaponMan; //!< the weapon manager: managing a list of weapon to wepaon-slot mapping 43 std::list<Event*> events; 44 41 45 42 46 }; -
branches/spaceshipcontrol/src/world_entities/player.cc
r5852 r5853 57 57 58 58 /** 59 * subscribe to all events because the player dosen't know to witch keys the controllable can react59 * subscribe to all events the controllable needs 60 60 */ 61 61 void Player::subscribeEvents() 62 62 { 63 EventHandler* evh = EventHandler::getInstance();63 /*EventHandler* evh = EventHandler::getInstance(); 64 64 for (int i = 1; i < SDLK_LAST; i++) 65 65 { … … 67 67 evh->subscribe(this, ES_GAME, i); 68 68 } 69 69 */ 70 70 } 71 71 … … 78 78 void Player::setControllable(Playable* controllalble) 79 79 { 80 //todo get keyset an subscribe to the needed keys 80 81 this->controllable = controllable; 81 82 }
Note: See TracChangeset
for help on using the changeset viewer.