This commit is contained in:
doitux
2007-02-11 17:33:43 +00:00
parent 57ae6a1065
commit 971c95d200
2 changed files with 19 additions and 2 deletions
+18 -2
View File
@@ -140,7 +140,7 @@ void Log::logNewGameHandMsg(int gameID, int handID) {
QTextStream stream( myLogFile );
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: ";
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";
}
}
+1
View File
@@ -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();