Changeset 9016 for code/trunk/src/orxonox/gametypes
- Timestamp:
- Feb 15, 2012, 11:51:58 PM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 6 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/gametypes/CMakeLists.txt
r8178 r9016 9 9 LastManStanding.cc 10 10 LastTeamStanding.cc 11 TeamGametype.cc 12 Mission.cc 11 13 ) -
code/trunk/src/orxonox/gametypes/Gametype.cc
r8858 r9016 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 133 134 135 } 135 136 this->checkStart(); 136 137 } … … 143 144 void Gametype::start() 144 145 { 146 145 147 this->addBots(this->numberOfBots_); 146 148 … … 148 150 149 151 this->spawnPlayersIfRequested(); 152 153 150 154 } 151 155 … … 376 380 { 377 381 this->gtinfo_->stopStartCountdown(); 378 this->gtinfo_->setStartCountdown(0.0f); ;382 this->gtinfo_->setStartCountdown(0.0f); 379 383 this->start(); 380 384 } … … 397 401 hashumanplayers = true; 398 402 } 403 399 404 if (allplayersready && hashumanplayers) 400 405 { … … 408 413 } 409 414 } 415 410 416 } 411 417 } … … 439 445 if(player->isHumanPlayer()) 440 446 this->gtinfo_->playerSpawned(player); 441 447 442 448 this->playerPostSpawn(player); 443 449 } -
code/trunk/src/orxonox/gametypes/Gametype.h
r8706 r9016 123 123 { return this->gtinfo_->getHUDTemplate(); } 124 124 125 v oid addBots(unsigned int amount);125 virtual void addBots(unsigned int amount); 126 126 void killBots(unsigned int amount = 0); 127 128 inline unsigned int getNumberOfPlayers() const129 { return this->players_.size(); }130 127 131 128 virtual void addTime(float t); … … 151 148 152 149 //inline bool getForceSpawn() 153 // { return this->bForceSpawn_; } 150 // { return this->bForceSpawn_; } 154 151 155 152 virtual void resetTimer(); 156 153 virtual void resetTimer(float t); 154 inline unsigned int getNumberOfPlayers() 155 { return this->gtinfo_->getNumberOfPlayers(); } 156 157 157 158 158 159 protected: … … 192 193 ConsoleCommand* dedicatedKillBots_; 193 194 /* HACK HACK HACK */ 195 194 196 }; 195 197 } -
code/trunk/src/orxonox/gametypes/TeamDeathmatch.h
r5781 r9016 56 56 57 57 int getTeam(PlayerInfo* player); 58 59 58 inline const ColourValue& getTeamColour(int teamnr) const 60 59 { return this->teamcolours_[teamnr]; } -
code/trunk/src/orxonox/gametypes/UnderAttack.cc
r8858 r9016 49 49 this->gameEnded_ = false; 50 50 51 this->setHUDTemplate("UnderAttackHUD");52 51 //this->setHUDTemplate("UnderAttackHUD"); 52 //This HUD is in conflict with the HUDEnemyHealthBar 53 53 this->setConfigValues(); 54 54 this->timesequence_ = static_cast<int>(this->gameTime_);
Note: See TracChangeset
for help on using the changeset viewer.