Changeset 6241 in orxonox.OLD for trunk/src/world_entities/playable.cc
- Timestamp:
- Dec 21, 2005, 3:36:25 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/playable.cc
r6142 r6241 20 20 #include "event_handler.h" 21 21 #include "player.h" 22 #include "state.h" 22 23 23 24 … … 72 73 for (ev = this->events.begin(); ev != events.end(); ev++) 73 74 evh->subscribe(player, ES_GAME, (*ev)); 74 75 this->enter(); 75 76 return true; 76 77 } … … 97 98 evh->unsubscribe( ES_GAME, (*ev)); 98 99 100 this->leave(); 99 101 this->currentPlayer = NULL; 100 102 return true; … … 127 129 128 130 131 void Playable::attachCamera() 132 { 133 State::getCamera()->setParentSoft(this); 134 State::getCameraTarget()->setParentSoft(this); 135 136 } 137 138 139 void Playable::detachCamera() 140 { 141 142 143 }
Note: See TracChangeset
for help on using the changeset viewer.