Changeset 9338 for code/branches/presentation2012merge/src
- Timestamp:
- Jul 30, 2012, 9:25:47 PM (12 years ago)
- Location:
- code/branches/presentation2012merge/src/orxonox/gametypes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/orxonox/gametypes/Dynamicmatch.cc
r9286 r9338 82 82 this->numberOf[killer]=0; 83 83 this->tutorial=true; 84 this->pointsPerTime= 0.0f;84 this->pointsPerTime=1.0f; 85 85 this->setHUDTemplate("DynamicmatchHUD"); 86 86 } … … 453 453 { 454 454 //pigs: 1 + every 6th player is a pig 455 if ( (1 +this->getNumberOfPlayers()/6) > numberOf[piggy])455 if ( (1 + getPlayerCount()/6) > numberOf[piggy]) 456 456 { 457 457 notEnoughPigs=true; … … 502 502 } 503 503 //killers: every 4th player is a killer 504 if (get NumberOfPlayers()/4 > numberOf[killer])504 if (getPlayerCount()/4 > numberOf[killer]) 505 505 { 506 506 notEnoughKillers=true; -
code/branches/presentation2012merge/src/orxonox/gametypes/Dynamicmatch.h
r8727 r9338 81 81 SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const; 82 82 83 83 84 protected: 85 inline int getPlayerCount() const 86 { return this->numberOf[chaser] + numberOf[piggy] + this->numberOf[killer]; } 84 87 85 88 std::map< PlayerInfo*, int > playerParty_; //player's parties are recorded here
Note: See TracChangeset
for help on using the changeset viewer.