This commit is contained in:
doitux
2007-06-08 19:37:21 +00:00
parent 656cd7093d
commit 4b8049e9dd
3 changed files with 13 additions and 8 deletions
+3 -2
View File
@@ -269,6 +269,7 @@ void LocalHand::assignButtons() {
// sonst
else { playerArray[i]->setMySet(2*smallBlind); }
}
}
}
@@ -288,7 +289,7 @@ void LocalHand::switchRounds() {
// Anzahl der Spieler ermitteln, welche All In sind
int allInPlayersCounter = 0;
for (i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
for (i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
if (playerArray[i]->getMyAction() == 6) allInPlayersCounter++;
}
@@ -336,7 +337,7 @@ void LocalHand::switchRounds() {
}
// HeadsUp-Ausnahme -> spieler ermitteln, der all in ist und als bb nur weniger als sb setzen konnte
if(activePlayersCounter==2 && playerArray[i]->getMyAction() != 1 && playerArray[i]->getMyAction() == 6 && playerArray[i]->getMyActiveStatus() == 1 && playerArray[i]->getMyButton()==3 && playerArray[i]->getMySet()<=smallBlind) {
if(activePlayersCounter==2 && playerArray[i]->getMyAction() == 6 && playerArray[i]->getMyActiveStatus() == 1 && playerArray[i]->getMyButton()==3 && playerArray[i]->getMySet()<=smallBlind) {
allInCondition = 1;
}
+6 -3
View File
@@ -34,11 +34,14 @@ LocalPlayer::LocalPlayer(ConfigFile *c, BoardInterface *b, int id, unsigned uniq
// for statistic development
// if(myID==0) {
// myActiveStatus=0;
// myCash=0;
// myCash=20;
// }
//
// if(myID==1) {
// myCash=300;
// myCash=6130;
// }
// if(myID==2) {
// myCash=2850;
// }
////////////////////////////
+4 -3
View File
@@ -151,14 +151,15 @@ void Game::initHand()
if(playerArray[i]->getMyActiveStatus() != 0) actualQuantityPlayers++;
}
// Hand erstellen
actualHand = myFactory->createHand(myFactory, myGui, actualBoard, playerArray, actualHandID, startQuantityPlayers, actualQuantityPlayers, dealerPosition, actualSmallBlind, startCash);
//Spieler Action auf 0 setzen
for(i=0; i<MAX_NUMBER_OF_PLAYERS; i++) {
playerArray[i]->setMyAction(0);
}
// Hand erstellen
actualHand = myFactory->createHand(myFactory, myGui, actualBoard, playerArray, actualHandID, startQuantityPlayers, actualQuantityPlayers, dealerPosition, actualSmallBlind, startCash);
// Dealer-Button weiterschieben --> Achtung inactive
do {
dealerPosition = (dealerPosition+1)%(MAX_NUMBER_OF_PLAYERS);