formatting logs

This commit is contained in:
floty
2007-10-06 20:55:23 +00:00
parent 4e649450b2
commit 27fb7d8e25
2 changed files with 18 additions and 18 deletions
+13 -13
View File
@@ -182,19 +182,19 @@ void Game::initHand()
if(actualHand) { if(actualHand) {
// TODO HACK // TODO HACK
for(it=seatsList->begin(); it!=seatsList->end(); it++) { // for(it=seatsList->begin(); it!=seatsList->end(); it++) {
if (!(*it)->getMyActiveStatus()) // if (!(*it)->getMyActiveStatus())
{ // {
if ((*it)->getMyUniqueID() == getCurrentHand()->getCurrentBeRo()->getCurrentPlayersTurnId()) // if ((*it)->getMyUniqueID() == getCurrentHand()->getCurrentBeRo()->getCurrentPlayersTurnId())
{ // {
it_2 = it; // it_2 = it;
it_2++; // it_2++;
if (it_2 == seatsList->end()) // if (it_2 == seatsList->end())
it_2 = seatsList->begin(); // it_2 = seatsList->begin();
getCurrentHand()->getCurrentBeRo()->setCurrentPlayersTurnId((*it_2)->getMyUniqueID()); // getCurrentHand()->getCurrentBeRo()->setCurrentPlayersTurnId((*it_2)->getMyUniqueID());
} // }
} // }
} // }
delete actualHand; delete actualHand;
actualHand = 0; actualHand = 0;
+5 -5
View File
@@ -342,8 +342,8 @@ void Log::logNewGameHandMsg(int gameID, int handID) {
if(myConfig->readConfigInt("LogOnOff")) { if(myConfig->readConfigInt("LogOnOff")) {
//if write logfiles is enabled //if write logfiles is enabled
logFileStreamString += "<p><b>####################&#160;&#160;&#160;Game: "+QString::number(gameID,10)+" | Hand: "+QString::number(handID,10)+"&#160;&#160;&#160;####################</b></br>"; logFileStreamString += "<table><tr><td width=\"600\" align=\"center\"><hr noshade size=\"3\"><b>Game: "+QString::number(gameID,10)+" | Hand: "+QString::number(handID,10)+"</b></td><td></td></tr></table>";
logFileStreamString += "</br>BLIND LEVEL: "+QString::number(currentHand->getSmallBlind())+"$/"+QString::number(currentHand->getSmallBlind()*2)+"$</br></br>"; logFileStreamString += "<p>BLIND LEVEL: "+QString::number(currentHand->getSmallBlind())+"$/"+QString::number(currentHand->getSmallBlind()*2)+"$</br>";
//print cash only for active players //print cash only for active players
for(it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) { for(it_c=currentHand->getActivePlayerList()->begin(); it_c!=currentHand->getActivePlayerList()->end(); it_c++) {
@@ -374,7 +374,7 @@ void Log::logNewGameHandMsg(int gameID, int handID) {
void Log::logNewBlindsSetsMsg(int sbSet, int bbSet, QString sbName, QString bbName) { void Log::logNewBlindsSetsMsg(int sbSet, int bbSet, QString sbName, QString bbName) {
// log blinds // log blinds
logFileStreamString += "</br>BLINDS: "; logFileStreamString += "BLINDS: ";
/* /*
cout << "SB: " << sbName << endl; cout << "SB: " << sbName << endl;
cout << "BB: " << bbName << endl; */ cout << "BB: " << bbName << endl; */
@@ -411,7 +411,7 @@ void Log::logNewBlindsSetsMsg(int sbSet, int bbSet, QString sbName, QString bbNa
// logFileStreamString += "</br></br>DEALER: " + QString::fromUtf8((*it_c)->getMyName().c_str()); // logFileStreamString += "</br></br>DEALER: " + QString::fromUtf8((*it_c)->getMyName().c_str());
logFileStreamString += "</br></br>" + QString::fromUtf8((*it_c)->getMyName().c_str()) + " starts as dealer."; logFileStreamString += "</br>" + QString::fromUtf8((*it_c)->getMyName().c_str()) + " starts as dealer.";
break; break;
} }
@@ -419,7 +419,7 @@ void Log::logNewBlindsSetsMsg(int sbSet, int bbSet, QString sbName, QString bbNa
if((*it_c)->getMyButton() == BUTTON_SMALL_BLIND) { if((*it_c)->getMyButton() == BUTTON_SMALL_BLIND) {
// logFileStreamString += "</br></br>DEALER: " + QString::fromUtf8((*it_c)->getMyName().c_str()); // logFileStreamString += "</br></br>DEALER: " + QString::fromUtf8((*it_c)->getMyName().c_str());
logFileStreamString += "</br></br>" + QString::fromUtf8((*it_c)->getMyName().c_str()) + " starts as dealer."; logFileStreamString += "</br>" + QString::fromUtf8((*it_c)->getMyName().c_str()) + " starts as dealer.";
break; break;
} }