Changeset 5895 in orxonox.OLD for branches/spaceshipcontrol/src/world_entities/player.cc
- Timestamp:
- Dec 3, 2005, 5:18:37 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/spaceshipcontrol/src/world_entities/player.cc
r5883 r5895 61 61 62 62 63 void Player::setControllable(Playable* controllalble)63 bool Player::setControllable(Playable* controllable) 64 64 { 65 66 this->controllable = controllalble; 67 this->controllable->subscribeEvents(this); 68 65 if(controllable != NULL && controllable->subscribePlayer(this)) 66 { 67 this->controllable = controllable; 68 return true; 69 } 70 else 71 return false; 69 72 } 70 73 71 74 72 73 Playable* Player::getControllable()74 {75 return controllable;76 }77
Note: See TracChangeset
for help on using the changeset viewer.