- Timestamp:
- Oct 29, 2008, 12:48:11 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/objects/infos/PlayerInfo.cc
r2040 r2041 71 71 REGISTERSTRING(this->name_, network::direction::toclient, new network::NetworkCallback<PlayerInfo>(this, &PlayerInfo::changedName)); 72 72 REGISTERDATA (this->controllableEntityID_, network::direction::toclient, new network::NetworkCallback<PlayerInfo>(this, &PlayerInfo::networkcallback_changedcontrollableentityID)); 73 REGISTERDATA (this->bReadyToSpawn_, network::direction::toserver); 73 74 } 74 75 … … 127 128 this->controllableEntityID_ = network::OBJECTID_UNKNOWN; 128 129 } 129 130 COUT(0) << this->getObjectID() << ": PI: start control" << std::endl; 130 131 if (this->controller_) 131 132 this->controller_->setControllableEntity(entity); 132 133 } 133 134 134 void PlayerInfo::stopControl(ControllableEntity* entity )135 void PlayerInfo::stopControl(ControllableEntity* entity, bool callback) 135 136 { 136 137 if (entity && this->controllableEntity_ == entity) … … 142 143 this->controller_->setControllableEntity(0); 143 144 144 entity->removePlayer(); 145 if (callback) 146 entity->removePlayer(); 145 147 } 146 148 }
Note: See TracChangeset
for help on using the changeset viewer.