Resetting cards value on client side each hand. Added GUI synchronization function. Fixed update of pot when all but one fold. Reset sets on end of hand.
This commit is contained in:
1 parent
6c9e6a6a28
commit
b624714f5d
9 files changed
+58
-11
No files matched your search
@@ -42,14 +42,15 @@ ClientHand::ClientHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, Boar
|
||||
}
|
||||
|
||||
|
||||
// roundStartCashArray fllen
|
||||
// roundStartCashArray fuellen
|
||||
// cardsvalue zuruecksetzen
|
||||
// remove all buttons
|
||||
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
|
||||
playerArray[i]->setMyRoundStartCash(playerArray[i]->getMyCash());
|
||||
playerArray[i]->setMyCardsValueInt(0);
|
||||
playerArray[i]->setMyButton(0);
|
||||
}
|
||||
|
||||
// remove all buttons
|
||||
for (i=0; i<MAX_NUMBER_OF_PLAYERS; i++) { playerArray[i]->setMyButton(0); }
|
||||
|
||||
// assign dealer button
|
||||
playerArray[dealerPosition]->setMyButton(1);
|
||||
|
||||
|
||||
Reference in new issue
Block a user