adds activePlayerList and runningPlayerList (XXIV) - bugfixes

This commit is contained in:
doitux
2007-09-29 16:08:48 +00:00
parent 3c88ba8bbe
commit 45774f4b75
5 changed files with 18 additions and 17 deletions
+2 -1
View File
@@ -131,9 +131,10 @@ void LocalBeRoPreflop::run() {
} }
} } else {
setFirstRoundLastPlayersTurnId( getBigBlindPositionId() ); setFirstRoundLastPlayersTurnId( getBigBlindPositionId() );
} }
}
setCurrentPlayersTurnId( getFirstRoundLastPlayersTurnId() ); setCurrentPlayersTurnId( getFirstRoundLastPlayersTurnId() );
+12 -12
View File
@@ -863,19 +863,19 @@ LocalPlayer::LocalPlayer(ConfigFile *c, BoardInterface *b, int id, unsigned uniq
myCash=0; myCash=0;
} break; } break;
case 2: { case 2: {
myCash=180;
} break;
case 3: {
myCash=3930;
} break;
case 4: {
myCash=0; myCash=0;
} break; } break;
case 3: {
myCash=0;
} break;
case 4: {
myCash=10040;
} break;
case 5: { case 5: {
myCash=13590; myCash=0;
} break; } break;
case 6: { case 6: {
myCash=3300; myCash=10960;
} break; } break;
default: { default: {
} }
@@ -1246,7 +1246,7 @@ void LocalPlayer::preflopEngine() {
case 3: { case 3: {
switch(actualHand->getMyID()) { switch(actualHand->getMyID()) {
case 1: { case 1: {
myAction = PLAYER_ACTION_FOLD; // myAction = PLAYER_ACTION_FOLD;
// raise = 20; // raise = 20;
// if(mySet >= 40) { // if(mySet >= 40) {
// myAction = PLAYER_ACTION_CALL; // myAction = PLAYER_ACTION_CALL;
@@ -1269,7 +1269,7 @@ void LocalPlayer::preflopEngine() {
case 4: { case 4: {
switch(actualHand->getMyID()) { switch(actualHand->getMyID()) {
case 1: { case 1: {
myAction = PLAYER_ACTION_FOLD; // myAction = PLAYER_ACTION_FOLD;
// raise = 20; // raise = 20;
// if(mySet > 0) { // if(mySet > 0) {
// myAction = PLAYER_ACTION_FOLD; // myAction = PLAYER_ACTION_FOLD;
@@ -1291,13 +1291,13 @@ void LocalPlayer::preflopEngine() {
break; break;
case 5: { case 5: {
if(mySet == 0) { if(mySet == 0) {
myAction = PLAYER_ACTION_CALL; // myAction = PLAYER_ACTION_CALL;
} }
} }
break; break;
case 6: { case 6: {
if(mySet == 160) { if(mySet == 160) {
myAction = PLAYER_ACTION_CALL; // myAction = PLAYER_ACTION_CALL;
} }
} }
break; break;
+1 -1
View File
@@ -37,7 +37,7 @@ Game::Game(GuiInterface* gui, boost::shared_ptr<EngineFactory> factory,
myGameID(gameId), actualSmallBlind(gameData.smallBlind), actualHandID(0), dealerPosition(0), lastHandBlindsRaised(1), lastTimeBlindsRaised(0), myGameData(gameData) myGameID(gameId), actualSmallBlind(gameData.smallBlind), actualHandID(0), dealerPosition(0), lastHandBlindsRaised(1), lastTimeBlindsRaised(0), myGameData(gameData)
{ {
if(DEBUG_MODE) { if(DEBUG_MODE) {
startSmallBlind = 160; startSmallBlind = 5120;
actualSmallBlind = startSmallBlind; actualSmallBlind = startSmallBlind;
} }
+1 -1
View File
@@ -805,7 +805,7 @@ void mainWindowImpl::startNewLocalGame(newGameDialogImpl *v) {
startData.numberOfPlayers = gameData.maxNumberOfPlayers; startData.numberOfPlayers = gameData.maxNumberOfPlayers;
Tools::getRandNumber(0, startData.numberOfPlayers-1, 1, &tmpDealerPos, 0); Tools::getRandNumber(0, startData.numberOfPlayers-1, 1, &tmpDealerPos, 0);
if(DEBUG_MODE) { if(DEBUG_MODE) {
tmpDealerPos = 5; tmpDealerPos = 6;
} }
startData.startDealerPlayerId = static_cast<unsigned>(tmpDealerPos); startData.startDealerPlayerId = static_cast<unsigned>(tmpDealerPos);