First try for small blind / big blind before start of hand. There seems to be a problem with player ids or numbers, however.
This commit is contained in:
@@ -173,3 +173,17 @@ void Game::startHand()
|
||||
|
||||
actualHand->start();
|
||||
}
|
||||
|
||||
PlayerInterface *Game::getPlayerByUniqueId(unsigned id)
|
||||
{
|
||||
PlayerInterface *tmpPlayer = NULL;
|
||||
for (int i = 0; i < startQuantityPlayers; i++)
|
||||
{
|
||||
if (playerArray[i]->getMyUniqueID() == id)
|
||||
{
|
||||
tmpPlayer = playerArray[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
return tmpPlayer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user