Changeset 8998 for code/branches/presentation2011/src/orxonox
- Timestamp:
- Dec 18, 2011, 2:35:02 PM (13 years ago)
- Location:
- code/branches/presentation2011
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2011
- Property svn:mergeinfo changed
/code/branches/spaceraceTwo (added) merged: 8881,8898,8911,8915,8918,8921,8928,8934,8940,8944,8949,8954,8959-8960,8968,8970-8971,8979,8983
- Property svn:mergeinfo changed
-
code/branches/presentation2011/src/orxonox/gametypes/Gametype.cc
r8980 r8998 85 85 this->dedicatedKillBots_ = createConsoleCommand( "dedicatedKillBots", createExecutor( createFunctor(&Gametype::killBots, this) ) ); 86 86 /* HACK HACK HACK */ 87 //this->numberOfPlayers_ = 0;88 87 } 89 88 … … 124 123 if (this->gtinfo_->isStartCountdownRunning() && !this->gtinfo_->hasStarted()) 125 124 this->gtinfo_->countdownStartCountdown(dt); 126 125 127 126 if (!this->gtinfo_->hasStarted()) 128 127 { … … 132 131 if(it->first->isHumanPlayer() && it->first->isReadyToSpawn()) 133 132 this->gtinfo_->playerReadyToSpawn(it->first); 134 } 135 133 134 135 } 136 136 this->checkStart(); 137 137 } … … 144 144 void Gametype::start() 145 145 { 146 146 147 this->addBots(this->numberOfBots_); 147 148 … … 149 150 150 151 this->spawnPlayersIfRequested(); 152 153 151 154 } 152 155 … … 377 380 { 378 381 this->gtinfo_->stopStartCountdown(); 379 this->gtinfo_->setStartCountdown(0.0f); ;382 this->gtinfo_->setStartCountdown(0.0f); 380 383 this->start(); 381 384 } … … 398 401 hashumanplayers = true; 399 402 } 403 400 404 if (allplayersready && hashumanplayers) 401 405 { … … 409 413 } 410 414 } 415 411 416 } 412 417 } -
code/branches/presentation2011/src/orxonox/gametypes/Gametype.h
r8980 r8998 155 155 { return this->gtinfo_->getNumberOfPlayers(); } 156 156 157 158 157 159 protected: 158 160 virtual SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const; -
code/branches/presentation2011/src/orxonox/infos/GametypeInfo.cc
r8858 r8998 71 71 this->bStarted_ = false; 72 72 this->bEnded_ = false; 73 this->startCountdown_ = 0.0f;73 this->startCountdown_ = 10.0f; 74 74 this->bStartCountdownRunning_ = false; 75 this->counter_ = 0;75 this->counter_ = 10; 76 76 this->spawned_ = false; 77 77 this->readyToSpawn_ = false; … … 164 164 { 165 165 if(this->bStarted_) 166 return;166 { return;} 167 167 168 168 this->bStarted_ = true; 169 169 this->changedStarted(); 170 171 170 172 } 171 173 -
code/branches/presentation2011/src/orxonox/infos/PlayerInfo.cc
r8988 r8998 58 58 59 59 this->registerVariables(); 60 60 61 } 61 62
Note: See TracChangeset
for help on using the changeset viewer.