logging not longer in mainwindow
This commit is contained in:
@@ -91,7 +91,7 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, BoardI
|
||||
|
||||
// myFlipCards auf 0 setzen
|
||||
for(i=0; i<startQuantityPlayers; i++) {
|
||||
playerArray[i]->setMyCardsFlip(0);
|
||||
playerArray[i]->setMyCardsFlip(0, 0);
|
||||
}
|
||||
|
||||
// // // !!!!!!!!!!!!!!!!!!!!!!!!!!!!! testing !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //
|
||||
|
||||
@@ -83,7 +83,21 @@ public:
|
||||
void setMyTurn(bool theValue){ myTurn = theValue;}
|
||||
bool getMyTurn() const{ return myTurn;}
|
||||
|
||||
void setMyCardsFlip(bool theValue){ myCardsFlip = theValue;}
|
||||
void setMyCardsFlip(bool theValue, int state){
|
||||
myCardsFlip = theValue;
|
||||
// log flipping cards
|
||||
if(myCardsFlip) {
|
||||
switch(state) {
|
||||
case 1: actualHand->getGuiInterface()->logFlipHoleCardsMsg(myName, myCards[0], myCards[1], myCardsValueInt);
|
||||
break;
|
||||
case 2: actualHand->getGuiInterface()->logFlipHoleCardsMsg(myName, myCards[0], myCards[1]);
|
||||
break;
|
||||
case 3: actualHand->getGuiInterface()->logFlipHoleCardsMsg(myName, myCards[0], myCards[1], myCardsValueInt, "has");
|
||||
break;
|
||||
default: ;
|
||||
}
|
||||
}
|
||||
}
|
||||
bool getMyCardsFlip() const{ return myCardsFlip;}
|
||||
|
||||
void setMyCardsValueInt(int theValue) { myCardsValueInt = theValue;}
|
||||
@@ -118,6 +132,14 @@ public:
|
||||
void setSBluffStatus ( bool theValue ) { sBluffStatus = theValue; }
|
||||
bool getSBluffStatus() const { return sBluffStatus; }
|
||||
|
||||
void setMyWinnerState ( bool theValue, int pot ) {
|
||||
myWinnerState = theValue;
|
||||
if(theValue) actualHand->getGuiInterface()->logPlayerWinsMsg(myID, pot);
|
||||
}
|
||||
bool getMyWinnerState() const { return myWinnerState;}
|
||||
|
||||
|
||||
|
||||
void action();
|
||||
|
||||
void preflopEngine();
|
||||
@@ -141,6 +163,8 @@ public:
|
||||
void setNetSessionData(boost::shared_ptr<SessionData> session);
|
||||
boost::shared_ptr<SessionData> getNetSessionData();
|
||||
|
||||
|
||||
|
||||
private:
|
||||
|
||||
ConfigFile *myConfig;
|
||||
@@ -181,6 +205,8 @@ private:
|
||||
|
||||
int sBluff;
|
||||
bool sBluffStatus;
|
||||
|
||||
bool myWinnerState;
|
||||
|
||||
boost::shared_ptr<SessionData> myNetSessionData;
|
||||
};
|
||||
|
||||
@@ -34,7 +34,7 @@ ClientHand::ClientHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, Boar
|
||||
if(playerArray[i]->getMyActiveStatus() != 0) {
|
||||
playerArray[i]->setHand(this);
|
||||
}
|
||||
playerArray[i]->setMyCardsFlip(0);
|
||||
playerArray[i]->setMyCardsFlip(0, 0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ public:
|
||||
void setMyTurn(bool theValue){ myTurn = theValue;}
|
||||
bool getMyTurn() const{ return myTurn;}
|
||||
|
||||
void setMyCardsFlip(bool theValue){ myCardsFlip = theValue;}
|
||||
void setMyCardsFlip(bool theValue, int state){ myCardsFlip = theValue;}
|
||||
bool getMyCardsFlip() const{ return myCardsFlip;}
|
||||
|
||||
void setMyCardsValueInt(int theValue) { myCardsValueInt = theValue;}
|
||||
@@ -112,6 +112,9 @@ public:
|
||||
void setSBluffStatus ( bool theValue ) { sBluffStatus = theValue; }
|
||||
bool getSBluffStatus() const { return sBluffStatus; }
|
||||
|
||||
void setMyWinnerState ( bool theValue, int pot ) { myWinnerState = theValue; }
|
||||
bool getMyWinnerState() const { return myWinnerState;}
|
||||
|
||||
void action();
|
||||
|
||||
void preflopEngine();
|
||||
@@ -176,6 +179,8 @@ private:
|
||||
int sBluff;
|
||||
bool sBluffStatus;
|
||||
|
||||
bool myWinnerState;
|
||||
|
||||
boost::shared_ptr<SessionData> myNetSessionData;
|
||||
};
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ public:
|
||||
virtual void setMyTurn(bool theValue) =0;
|
||||
virtual bool getMyTurn() const =0;
|
||||
|
||||
virtual void setMyCardsFlip(bool theValue) =0;
|
||||
virtual void setMyCardsFlip(bool theValue, int state) =0;
|
||||
virtual bool getMyCardsFlip() const =0;
|
||||
|
||||
virtual void setMyCardsValueInt(int theValue) =0;
|
||||
@@ -96,6 +96,9 @@ public:
|
||||
|
||||
virtual void setSBluffStatus ( bool theValue ) =0;
|
||||
virtual bool getSBluffStatus() const =0;
|
||||
|
||||
virtual void setMyWinnerState ( bool theValue, int pot ) =0;
|
||||
virtual bool getMyWinnerState() const =0;
|
||||
|
||||
virtual void action() =0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user