Changeset 9260 for code/trunk/src/orxonox
- Timestamp:
- Jun 2, 2012, 10:34:48 PM (13 years ago)
- Location:
- code/trunk/src/orxonox/gametypes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gametypes/Gametype.cc
r9016 r9260 123 123 if (this->gtinfo_->isStartCountdownRunning() && !this->gtinfo_->hasStarted()) 124 124 this->gtinfo_->countdownStartCountdown(dt); 125 125 126 126 if (!this->gtinfo_->hasStarted()) 127 127 { … … 131 131 if(it->first->isHumanPlayer() && it->first->isReadyToSpawn()) 132 132 this->gtinfo_->playerReadyToSpawn(it->first); 133 134 135 } 133 } 134 136 135 this->checkStart(); 137 136 } … … 144 143 void Gametype::start() 145 144 { 146 147 145 this->addBots(this->numberOfBots_); 148 146 … … 150 148 151 149 this->spawnPlayersIfRequested(); 152 153 154 150 } 155 151 … … 401 397 hashumanplayers = true; 402 398 } 403 399 404 400 if (allplayersready && hashumanplayers) 405 401 { … … 413 409 } 414 410 } 415 416 411 } 417 412 } -
code/trunk/src/orxonox/gametypes/Gametype.h
r9016 r9260 152 152 virtual void resetTimer(); 153 153 virtual void resetTimer(float t); 154 inline unsigned int getNumberOfPlayers()155 { return this->gtinfo_->getNumberOfPlayers(); }156 154 157 155 inline unsigned int getNumberOfPlayers() const 156 { return this->gtinfo_->getNumberOfPlayers(); } 158 157 159 158 protected:
Note: See TracChangeset
for help on using the changeset viewer.