This commit is contained in:
+18
-2
@@ -140,7 +140,7 @@ void Log::logNewGameHandMsg(int gameID, int handID) {
|
|||||||
QTextStream stream( myLogFile );
|
QTextStream stream( myLogFile );
|
||||||
for(i=0; i<=linesInFile; i++) { stream.readLine(); }
|
for(i=0; i<=linesInFile; i++) { stream.readLine(); }
|
||||||
|
|
||||||
stream << "<p><b>##### Game: "+QString::number(gameID,10)+" | Hand: "+QString::number(handID,10)+" #####</b></br>" << "\n";
|
stream << "<p><b>##### Game: "+QString::number(gameID,10)+" | Hand: "+QString::number(handID,10)+" #####</b></br>";
|
||||||
stream << "CASH: ";
|
stream << "CASH: ";
|
||||||
|
|
||||||
int k = 0;
|
int k = 0;
|
||||||
@@ -220,7 +220,7 @@ void Log::logNewGameHandMsg(int gameID, int handID) {
|
|||||||
|
|
||||||
myLogFile->close();
|
myLogFile->close();
|
||||||
|
|
||||||
linesInFile = linesInFile+2;
|
linesInFile = linesInFile++;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -241,3 +241,19 @@ void Log::logPlayerWinsMsg(int playerID) {
|
|||||||
|
|
||||||
linesInFile++;
|
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";
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ public:
|
|||||||
void logPlayerActionMsg(std::string playName, int action, int setValue);
|
void logPlayerActionMsg(std::string playName, int action, int setValue);
|
||||||
void logNewGameHandMsg(int gameID, int handID);
|
void logNewGameHandMsg(int gameID, int handID);
|
||||||
void logPlayerWinsMsg(int playerID);
|
void logPlayerWinsMsg(int playerID);
|
||||||
|
void logDealBoardCardsMsg(int roundID, int card1, int card2 = -1, int card3 = -1);
|
||||||
|
|
||||||
void closeLogFile();
|
void closeLogFile();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user