Changeset 5872 in orxonox.OLD for branches/spaceshipcontrol/src/world_entities/player.cc
- Timestamp:
- Dec 2, 2005, 3:06:50 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/player.cc
r5853 r5872 56 56 } 57 57 58 /** 59 * subscribe to all events the controllable needs 60 */ 61 void Player::subscribeEvents() 62 { 63 /*EventHandler* evh = EventHandler::getInstance(); 64 for (int i = 1; i < SDLK_LAST; i++) 65 { 66 if (!evh->isSubscribed(ES_GAME, i)) 67 evh->subscribe(this, ES_GAME, i); 68 } 69 */ 70 } 58 71 59 72 60 void Player::process(const Event &event) … … 78 66 void Player::setControllable(Playable* controllalble) 79 67 { 80 //todo get keyset an subscribe to the needed keys 68 81 69 this->controllable = controllable; 70 this->controllable->subscribeEvents(this); 71 82 72 } 83 73
Note: See TracChangeset
for help on using the changeset viewer.