This commit is contained in:
doitux
2009-04-12 18:59:35 +00:00
parent 81bd7e7151
commit eb38dd7640
5 changed files with 31 additions and 19 deletions
+10 -10
View File
@@ -104,11 +104,11 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
case 1: {
tempBoardArray[0] = 3;
tempBoardArray[1] = 17;
tempBoardArray[2] = 18;
tempBoardArray[3] = 32;
tempBoardArray[4] = 33;
tempBoardArray[0] = 48;
tempBoardArray[1] = 10;
tempBoardArray[2] = 11;
tempBoardArray[3] = 1;
tempBoardArray[4] = 26;
myBoard->setMyCards(tempBoardArray);
@@ -121,8 +121,8 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
// player0
it = seatsList->begin();
tempPlayerArray[0] = 11;
tempPlayerArray[1] = 12;
tempPlayerArray[0] = 24;
tempPlayerArray[1] = 45;
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
@@ -134,15 +134,15 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
// player1
it++;
/* tempPlayerArray[0] = 12;
tempPlayerArray[1] = 48;
tempPlayerArray[0] = 38;
tempPlayerArray[1] = 27;
tempPlayerAndBoardArray[0] = tempPlayerArray[0];
tempPlayerAndBoardArray[1] = tempPlayerArray[1];
(*it)->setMyCards(tempPlayerArray);
(*it)->setMyCardsValueInt(myCardsValue.cardsValue(tempPlayerAndBoardArray,temp5Array));
(*it)->setMyBestHandPosition(temp5Array);*/
(*it)->setMyBestHandPosition(temp5Array);
// player2
it++;
+18 -6
View File
@@ -859,10 +859,10 @@ LocalPlayer::LocalPlayer(ConfigFile *c, BoardInterface *b, int id, unsigned uniq
switch(myUniqueID) {
case 0: {
myCash=2000;
myCash=23110;
} break;
case 1: {
myCash=0;
myCash=1320;
} break;
case 2: {
myCash=0;
@@ -877,8 +877,18 @@ LocalPlayer::LocalPlayer(ConfigFile *c, BoardInterface *b, int id, unsigned uniq
myCash=0;
} break;
case 6: {
myCash=1500;
myCash=0;
} break;
case 7: {
myCash=0;
} break;
case 8: {
myCash=0;
} break;
case 9: {
myCash=0;
} break;
default: {
}
@@ -1277,7 +1287,7 @@ void LocalPlayer::preflopEngine() {
switch(currentHand->getMyID()) {
case 1: {
myAction = PLAYER_ACTION_CALL;
myAction = PLAYER_ACTION_CHECK;
// raise = 3000;
}
break;
@@ -1666,7 +1676,8 @@ void LocalPlayer::flopEngine() {
switch(currentHand->getMyID()) {
case 1: {
myAction = PLAYER_ACTION_CHECK;
myAction = PLAYER_ACTION_BET;
bet = 640;
// if(currentHand->getCurrentBeRo()->getHighestSet() > 0) {
// myAction = PLAYER_ACTION_CALL;
// }
@@ -2331,7 +2342,8 @@ void LocalPlayer::turnEngine() {
switch(currentHand->getMyID()) {
case 1: {
myAction = PLAYER_ACTION_FOLD;
myAction = PLAYER_ACTION_RAISE;
raise = 40;
// if(currentHand->getCurrentBeRo()->getHighestSet() > 100) {
// myAction = PLAYER_ACTION_FOLD;
// }
+1 -1
View File
@@ -41,7 +41,7 @@ Game::Game(GuiInterface* gui, boost::shared_ptr<EngineFactory> factory,
blindsList = myGameData.manualBlindsList;
if(DEBUG_MODE) {
startSmallBlind = 10;
startSmallBlind = 320;
currentSmallBlind = startSmallBlind;
}
+1 -1
View File
@@ -2404,7 +2404,7 @@ void gameTableImpl::nextRoundCleanGui() {
flipHolecardsAllInAlreadyDone = FALSE;
//Wenn Pause zwischen den Hands in der Konfiguration steht den Stop Button drücken!
if (myConfig->readConfigInt("PauseBetweenHands") && blinkingStartButtonAnimationTimer->isActive() == FALSE && myStartWindow->getSession()->getGameType() == Session::GAME_TYPE_LOCAL) {
if (myConfig->readConfigInt("PauseBetweenHands") /*&& blinkingStartButtonAnimationTimer->isActive() == FALSE*/ && myStartWindow->getSession()->getGameType() == Session::GAME_TYPE_LOCAL) {
pushButton_break->click();
}
else {
+1 -1
View File
@@ -279,7 +279,7 @@ void startWindowImpl::startNewLocalGame(newGameDialogImpl *v) {
startData.numberOfPlayers = gameData.maxNumberOfPlayers;
Tools::getRandNumber(0, startData.numberOfPlayers-1, 1, &tmpDealerPos, 0);
if(DEBUG_MODE) {
tmpDealerPos = 1;
tmpDealerPos = 0;
}
startData.startDealerPlayerId = static_cast<unsigned>(tmpDealerPos);