additional log in sqlite-db + preparation for replay mode

This commit is contained in:
floty
2010-05-29 14:05:41 +00:00
parent 4e3d885bc3
commit 4643e7ff89
19 changed files with 372 additions and 61 deletions
+7 -5
View File
@@ -856,6 +856,8 @@ LocalPlayer::LocalPlayer(ConfigFile *c, BoardInterface *b, int id, unsigned uniq
// !!!!!!!!!!!!!!!!!!!!!!!! testing !!!!!!!!!!!!!!!!!!!!!!!!
if(DEBUG_MODE) {
//cout << myConfig->readConfigString("LogDir").c_str() << endl;
switch(myUniqueID) {
case 0: {
@@ -874,19 +876,19 @@ LocalPlayer::LocalPlayer(ConfigFile *c, BoardInterface *b, int id, unsigned uniq
myCash=9395;
} break;
case 5: {
myCash=0;
myCash=100;
} break;
case 6: {
myCash=0;
} break;
case 7: {
myCash=0;
myCash=0;
} break;
case 8: {
myCash=0;
myCash=0;
} break;
case 9: {
myCash=0;
myCash=0;
} break;
default: {
@@ -1048,7 +1050,7 @@ void LocalPlayer::action() {
//set that i was the last active player. need this for unhighlighting groupbox
currentHand->setLastPlayersTurn(myID);
currentHand->getGuiInterface()->logPlayerActionMsg(myName, myAction, mySet);
currentHand->getGuiInterface()->logPlayerActionMsg(myName, myID, myAction, mySet);
currentHand->getGuiInterface()->nextPlayerAnimation();
// cout << "playerID in action(): " << (*(currentHand->getCurrentBeRo()->getCurrentPlayersTurnIt()))->getMyID() << endl;