Changeset 8980 for code/branches/presentation2011/src/orxonox/gametypes
- Timestamp:
- Dec 14, 2011, 2:38:37 PM (12 years ago)
- Location:
- code/branches/presentation2011
- Files:
-
- 5 edited
- 4 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2011
- Property svn:mergeinfo changed
/code/branches/gamecontent (added) merged: 8893,8895,8899-8901,8904,8907,8909-8910,8922-8924,8930,8932,8941-8942,8950-8951,8956
- Property svn:mergeinfo changed
-
code/branches/presentation2011/src/orxonox/gametypes/CMakeLists.txt
r8178 r8980 9 9 LastManStanding.cc 10 10 LastTeamStanding.cc 11 TeamGametype.cc 12 Mission.cc 11 13 ) -
code/branches/presentation2011/src/orxonox/gametypes/Gametype.cc
r8858 r8980 85 85 this->dedicatedKillBots_ = createConsoleCommand( "dedicatedKillBots", createExecutor( createFunctor(&Gametype::killBots, this) ) ); 86 86 /* HACK HACK HACK */ 87 //this->numberOfPlayers_ = 0; 87 88 } 88 89 … … 132 133 this->gtinfo_->playerReadyToSpawn(it->first); 133 134 } 134 135 135 136 this->checkStart(); 136 137 } … … 439 440 if(player->isHumanPlayer()) 440 441 this->gtinfo_->playerSpawned(player); 441 442 442 443 this->playerPostSpawn(player); 443 444 } -
code/branches/presentation2011/src/orxonox/gametypes/Gametype.h
r8706 r8980 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(); } 157 156 158 157 protected: … … 192 191 ConsoleCommand* dedicatedKillBots_; 193 192 /* HACK HACK HACK */ 193 194 194 }; 195 195 } -
code/branches/presentation2011/src/orxonox/gametypes/TeamDeathmatch.h
r5781 r8980 56 56 57 57 int getTeam(PlayerInfo* player); 58 59 58 inline const ColourValue& getTeamColour(int teamnr) const 60 59 { return this->teamcolours_[teamnr]; }
Note: See TracChangeset
for help on using the changeset viewer.