diff --git a/src/gui/qt/log.cpp b/src/gui/qt/log.cpp index 046114c4..b23f2d09 100644 --- a/src/gui/qt/log.cpp +++ b/src/gui/qt/log.cpp @@ -140,7 +140,7 @@ void Log::logNewGameHandMsg(int gameID, int handID) { QTextStream stream( myLogFile ); for(i=0; i<=linesInFile; i++) { stream.readLine(); } - stream << "
##### Game: "+QString::number(gameID,10)+" | Hand: "+QString::number(handID,10)+" #####" << "\n"; + stream << "
##### Game: "+QString::number(gameID,10)+" | Hand: "+QString::number(handID,10)+" #####"; stream << "CASH: "; int k = 0; @@ -220,7 +220,7 @@ void Log::logNewGameHandMsg(int gameID, int handID) { myLogFile->close(); - linesInFile = linesInFile+2; + linesInFile = linesInFile++; } @@ -241,3 +241,19 @@ void Log::logPlayerWinsMsg(int playerID) { linesInFile++; } + +void Log::logDealBoardCardsMsg(int roundID, int card1, int card2, int card3) { + + QString round; + switch (roundID) { + + case 1: round = "Flop"; + break; + case 2: round = "Turn"; + break; + case 3: round = "River"; + break; + default: round = "ERROR"; + } + +} diff --git a/src/gui/qt/log.h b/src/gui/qt/log.h index 9b2cd145..799ce66a 100644 --- a/src/gui/qt/log.h +++ b/src/gui/qt/log.h @@ -41,6 +41,7 @@ public: void logPlayerActionMsg(std::string playName, int action, int setValue); void logNewGameHandMsg(int gameID, int handID); void logPlayerWinsMsg(int playerID); + void logDealBoardCardsMsg(int roundID, int card1, int card2 = -1, int card3 = -1); void closeLogFile();