Server states can now handle multiple games (are multithreading capable).

This commit is contained in:
lotodore
2007-08-11 10:02:04 +00:00
parent 6a580c81d5
commit 26299e80c0
5 changed files with 163 additions and 76 deletions
+8
View File
@@ -199,3 +199,11 @@ boost::shared_ptr<PlayerInterface> Game::getPlayerByUniqueId(unsigned id)
}
return tmpPlayer;
}
boost::shared_ptr<PlayerInterface> Game::getCurrentPlayer()
{
int curPlayerNum = getCurrentHand()->getCurrentBeRo()->getPlayersTurn();
assert(curPlayerNum < getStartQuantityPlayers());
return getPlayerArray()[curPlayerNum];
}