resolving warnings
This commit is contained in:
@@ -243,7 +243,7 @@ void LocalBoard::distributePot()
|
|||||||
|
|
||||||
/*int sum = 0;
|
/*int sum = 0;
|
||||||
|
|
||||||
for(it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); it_c++) {
|
for(it_c=activePlayerList->begin(); it_c!=activePlayerList->end(); ++it_c) {
|
||||||
sum += (*it_c)->getMyCash();
|
sum += (*it_c)->getMyCash();
|
||||||
}*/
|
}*/
|
||||||
}
|
}
|
||||||
@@ -277,7 +277,7 @@ void LocalBoard::determinePlayerNeedToShowCards()
|
|||||||
|
|
||||||
std::list<std::pair<int,int> > level;
|
std::list<std::pair<int,int> > level;
|
||||||
|
|
||||||
// for(it_c=winners.begin(); it_c != winners.end(); it_c++) {
|
// for(it_c=winners.begin(); it_c != winners.end(); ++it_c) {
|
||||||
// cout << (*it_c) << endl;
|
// cout << (*it_c) << endl;
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
@@ -347,7 +347,7 @@ void LocalBoard::determinePlayerNeedToShowCards()
|
|||||||
if(it_c == activePlayerList->end()) it_c = activePlayerList->begin();
|
if(it_c == activePlayerList->end()) it_c = activePlayerList->begin();
|
||||||
|
|
||||||
if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD) {
|
if((*it_c)->getMyAction() != PLAYER_ACTION_FOLD) {
|
||||||
// for(it_c = firstAfterLastActionPlayerIt; it_c != lastActionPlayerIt; it_c++) {
|
// for(it_c = firstAfterLastActionPlayerIt; it_c != lastActionPlayerIt; ++it_c) {
|
||||||
|
|
||||||
// if(it_c == lastActionPlayerIt) {
|
// if(it_c == lastActionPlayerIt) {
|
||||||
// break;
|
// break;
|
||||||
@@ -419,7 +419,7 @@ void LocalBoard::determinePlayerNeedToShowCards()
|
|||||||
// bool showCards;
|
// bool showCards;
|
||||||
|
|
||||||
// search for more player who have to show their cards (perhaps not all situation are considered yet)
|
// search for more player who have to show their cards (perhaps not all situation are considered yet)
|
||||||
// for(it_c = ++lastActionPlayerIt; it_c!=activePlayerList->end(); it_c++) {
|
// for(it_c = ++lastActionPlayerIt; it_c!=activePlayerList->end(); ++it_c) {
|
||||||
//
|
//
|
||||||
// showCards = false;
|
// showCards = false;
|
||||||
//
|
//
|
||||||
@@ -429,7 +429,7 @@ void LocalBoard::determinePlayerNeedToShowCards()
|
|||||||
//// }
|
//// }
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// for(it_c = activePlayerList->begin(); it_c!=lastActionPlayerIt; it_c++) {
|
// for(it_c = activePlayerList->begin(); it_c!=lastActionPlayerIt; ++it_c) {
|
||||||
//// if((*it_c)->getMyCardsValueInt() >= highestCardsValueInt) {
|
//// if((*it_c)->getMyCardsValueInt() >= highestCardsValueInt) {
|
||||||
//// playerNeedToShowCards.push_back((*it_c)->getMyUniqueID());
|
//// playerNeedToShowCards.push_back((*it_c)->getMyUniqueID());
|
||||||
//// highestCardsValueInt = (*it_c)->getMyCardsValueInt();
|
//// highestCardsValueInt = (*it_c)->getMyCardsValueInt();
|
||||||
|
|||||||
+6
-6
@@ -166,7 +166,7 @@ Log::logNewGameMsg(int gameID, int startCash, int startSmallBlind, unsigned deal
|
|||||||
sql += "," + boost::lexical_cast<string>(startCash);
|
sql += "," + boost::lexical_cast<string>(startCash);
|
||||||
sql += "," + boost::lexical_cast<string>(startSmallBlind);
|
sql += "," + boost::lexical_cast<string>(startSmallBlind);
|
||||||
sql += "," + boost::lexical_cast<string>(dealerPosition);
|
sql += "," + boost::lexical_cast<string>(dealerPosition);
|
||||||
for(it_c = seatsList->begin(); it_c!=seatsList->end(); it_c++) {
|
for(it_c = seatsList->begin(); it_c!=seatsList->end(); ++it_c) {
|
||||||
if((*it_c)->getMyActiveStatus()) {
|
if((*it_c)->getMyActiveStatus()) {
|
||||||
sql += ",\"" + (*it_c)->getMyName() +"\"";
|
sql += ",\"" + (*it_c)->getMyName() +"\"";
|
||||||
} else {
|
} else {
|
||||||
@@ -188,7 +188,7 @@ Log::logNewHandMsg(int handID, unsigned dealerPosition, int smallBlind, unsigned
|
|||||||
|
|
||||||
curHandID = handID;
|
curHandID = handID;
|
||||||
PlayerListConstIterator it_c;
|
PlayerListConstIterator it_c;
|
||||||
for(it_c = seatsList->begin(); it_c!=seatsList->end(); it_c++) {
|
for(it_c = seatsList->begin(); it_c!=seatsList->end(); ++it_c) {
|
||||||
(*it_c)->setLogHoleCardsDone(false);
|
(*it_c)->setLogHoleCardsDone(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -220,7 +220,7 @@ Log::logNewHandMsg(int handID, unsigned dealerPosition, int smallBlind, unsigned
|
|||||||
sql += "," + boost::lexical_cast<string>(smallBlindPosition);
|
sql += "," + boost::lexical_cast<string>(smallBlindPosition);
|
||||||
sql += "," + boost::lexical_cast<string>(bigBlind);
|
sql += "," + boost::lexical_cast<string>(bigBlind);
|
||||||
sql += "," + boost::lexical_cast<string>(bigBlindPosition);
|
sql += "," + boost::lexical_cast<string>(bigBlindPosition);
|
||||||
for(it_c = seatsList->begin(); it_c!=seatsList->end(); it_c++) {
|
for(it_c = seatsList->begin(); it_c!=seatsList->end(); ++it_c) {
|
||||||
if((*it_c)->getMyActiveStatus()) {
|
if((*it_c)->getMyActiveStatus()) {
|
||||||
sql += "," + boost::lexical_cast<string>((*it_c)->getMyRoundStartCash());
|
sql += "," + boost::lexical_cast<string>((*it_c)->getMyRoundStartCash());
|
||||||
} else {
|
} else {
|
||||||
@@ -235,7 +235,7 @@ Log::logNewHandMsg(int handID, unsigned dealerPosition, int smallBlind, unsigned
|
|||||||
// !! TODO !! Hack, weil Button-Regel noch falsch und dealerPosition noch teilweise falsche ID enthält (HeadsUp: dealerPosition=bigBlindPosition <-- falsch)
|
// !! TODO !! Hack, weil Button-Regel noch falsch und dealerPosition noch teilweise falsche ID enthält (HeadsUp: dealerPosition=bigBlindPosition <-- falsch)
|
||||||
bool dealerButtonOnTable = false;
|
bool dealerButtonOnTable = false;
|
||||||
int countActivePlayer = 0;
|
int countActivePlayer = 0;
|
||||||
for(it_c = seatsList->begin(); it_c!=seatsList->end(); it_c++) {
|
for(it_c = seatsList->begin(); it_c!=seatsList->end(); ++it_c) {
|
||||||
if((*it_c)->getMyActiveStatus()) {
|
if((*it_c)->getMyActiveStatus()) {
|
||||||
countActivePlayer++;
|
countActivePlayer++;
|
||||||
if((*it_c)->getMyButton()==BUTTON_DEALER && (*it_c)->getMyActiveStatus()) {
|
if((*it_c)->getMyButton()==BUTTON_DEALER && (*it_c)->getMyActiveStatus()) {
|
||||||
@@ -252,12 +252,12 @@ Log::logNewHandMsg(int handID, unsigned dealerPosition, int smallBlind, unsigned
|
|||||||
}
|
}
|
||||||
|
|
||||||
// log blinds
|
// log blinds
|
||||||
for(it_c = seatsList->begin(); it_c!=seatsList->end(); it_c++) {
|
for(it_c = seatsList->begin(); it_c!=seatsList->end(); ++it_c) {
|
||||||
if((*it_c)->getMyButton() == BUTTON_SMALL_BLIND) {
|
if((*it_c)->getMyButton() == BUTTON_SMALL_BLIND) {
|
||||||
logPlayerAction(GAME_STATE_PREFLOP,smallBlindPosition,LOG_ACTION_SMALL_BLIND,(*it_c)->getMySet());
|
logPlayerAction(GAME_STATE_PREFLOP,smallBlindPosition,LOG_ACTION_SMALL_BLIND,(*it_c)->getMySet());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for(it_c = seatsList->begin(); it_c!=seatsList->end(); it_c++) {
|
for(it_c = seatsList->begin(); it_c!=seatsList->end(); ++it_c) {
|
||||||
if((*it_c)->getMyButton() == BUTTON_BIG_BLIND) {
|
if((*it_c)->getMyButton() == BUTTON_BIG_BLIND) {
|
||||||
logPlayerAction(GAME_STATE_PREFLOP,bigBlindPosition,LOG_ACTION_BIG_BLIND,(*it_c)->getMySet());
|
logPlayerAction(GAME_STATE_PREFLOP,bigBlindPosition,LOG_ACTION_BIG_BLIND,(*it_c)->getMySet());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user