- Timestamp:
- Mar 9, 2009, 3:21:12 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/miniprojects/src/orxonox/objects/gametypes/Gametype.cc
r2710 r2768 66 66 this->setConfigValues(); 67 67 68 this->addBots(this->numberOfBots_);69 70 68 // load the corresponding score board 71 69 if (Core::showsGraphics() && this->scoreboardTemplate_ != "") … … 105 103 void Gametype::start() 106 104 { 105 this->addBots(this->numberOfBots_); 106 107 107 COUT(0) << "game started" << std::endl; 108 108 this->gtinfo_.bStarted_ = true; … … 166 166 void Gametype::pawnPostSpawn(Pawn* pawn) 167 167 { 168 } 169 170 void Gametype::playerPreSpawn(PlayerInfo* player) 171 { 172 } 173 174 void Gametype::playerPostSpawn(PlayerInfo* player) 175 { 176 } 177 178 bool Gametype::allowPawnHit(Pawn* victim, Pawn* originator) 179 { 180 return true; 181 } 182 183 bool Gametype::allowPawnDamage(Pawn* victim, Pawn* originator) 184 { 185 return true; 186 } 187 188 bool Gametype::allowPawnDeath(Pawn* victim, Pawn* originator) 189 { 190 return true; 168 191 } 169 192 … … 336 359 if (spawnpoint) 337 360 { 361 this->playerPreSpawn(player); 338 362 player->startControl(spawnpoint->spawn()); 339 363 this->players_[player].state_ = PlayerState::Alive; 364 this->playerPostSpawn(player); 340 365 } 341 366 else
Note: See TracChangeset
for help on using the changeset viewer.