adds activePlayerList and runningPlayerList (X) - !!! BROKEN !!! - last stable rev is 866

This commit is contained in:
doitux
2007-09-25 18:00:05 +00:00
parent af5b7f45dd
commit bcc5966a68
11 changed files with 281 additions and 103 deletions
+6 -3
View File
@@ -210,8 +210,11 @@ boost::shared_ptr<PlayerInterface> Game::getPlayerByUniqueId(unsigned id)
boost::shared_ptr<PlayerInterface> Game::getCurrentPlayer()
{
int curPlayerNum = getCurrentHand()->getCurrentBeRo()->getPlayersTurn();
assert(curPlayerNum < getStartQuantityPlayers());
return getPlayerArray()[curPlayerNum];
// int curPlayerNum = getCurrentHand()->getCurrentBeRo()->getPlayersTurn();
// assert(curPlayerNum < getStartQuantityPlayers());
// return getPlayerArray()[curPlayerNum];
// TODO -> checking
return (*(getCurrentHand()->getCurrentBeRo()->getCurrentPlayersTurnIt()));
}