Changeset 9341 for code/branches/presentation2012merge/src
- Timestamp:
- Aug 21, 2012, 7:28:51 PM (12 years ago)
- Location:
- code/branches/presentation2012merge/src/orxonox/gametypes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/orxonox/gametypes/Dynamicmatch.cc
r9340 r9341 336 336 numberOf[chaser]++; 337 337 Gametype::playerEntered(player); 338 orxout() << "# Players(2) : " << this->getNumberOfPlayers() <<endl;339 orxout() << "# Players(3): " << this->getPlayerCount() <<endl;340 338 const std::string& message = player->getName() + " entered the game"; 341 339 ChatManager::message(message); … … 357 355 //remove player from map 358 356 playerParty_.erase (player); 359 orxout() << "# Players(2) : " << this->getNumberOfPlayers() <<endl;360 orxout() << "# Players(3): " << this->getPlayerCount() <<endl;361 357 //adjust player parties 362 358 evaluatePlayerParties(); -
code/branches/presentation2012merge/src/orxonox/gametypes/Gametype.cc
r9339 r9341 183 183 this->players_[player].state_ = PlayerState::Joined; 184 184 this->gtinfo_->playerEntered(player); 185 orxout() << "# Players: " << this->getNumberOfPlayers() <<endl;186 185 } 187 186 … … 192 191 { 193 192 this->players_.erase(it); 194 orxout() << "# Players: " << this->getNumberOfPlayers() <<endl;195 193 return true; 196 194 } -
code/branches/presentation2012merge/src/orxonox/gametypes/Gametype.h
r9339 r9341 154 154 155 155 /** 156 @brief Get number of Players. 157 Note that only those players are counted that were added before the game started. 156 @brief Get number of Players in game. 158 157 */ 159 158 inline unsigned int getNumberOfPlayers() const 160 { return this->gtinfo_->getNumberOfPlayers(); } 159 { return this->players_.size(); } 160 161 161 162 162 163 protected:
Note: See TracChangeset
for help on using the changeset viewer.