Changeset 9833 for code/trunk/src
- Timestamp:
- Dec 1, 2013, 11:38:21 PM (11 years ago)
- Location:
- code/trunk/src/modules/tetris
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/tetris/Tetris.cc
r9803 r9833 344 344 if (it->first->isHumanPlayer() && (it->first->isReadyToSpawn() || this->bForceSpawn_)) 345 345 this->spawnPlayer(it->first); 346 } 347 348 bool Tetris::playerLeft(PlayerInfo* player) 349 { 350 bool left = Gametype::playerLeft(player); 351 if(player && player->isHumanPlayer()) 352 { 353 this->end(); 354 } 355 return left; 346 356 } 347 357 -
code/trunk/src/modules/tetris/Tetris.h
r9802 r9833 64 64 65 65 virtual void spawnPlayer(PlayerInfo* player); //!< Spawns the input player. 66 virtual bool playerLeft(PlayerInfo* player); 66 67 67 68 void setCenterpoint(TetrisCenterpoint* center);
Note: See TracChangeset
for help on using the changeset viewer.