log side pot winners and player sits out
This commit is contained in:
@@ -119,4 +119,10 @@ ClientBoard::distributePot()
|
||||
|
||||
}
|
||||
|
||||
std::list<int>
|
||||
ClientBoard::getWinners() const
|
||||
{
|
||||
return winners;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -50,6 +50,8 @@ public:
|
||||
|
||||
void distributePot();
|
||||
|
||||
std::list<int> getWinners() const;
|
||||
|
||||
private:
|
||||
mutable boost::recursive_mutex m_syncMutex;
|
||||
|
||||
@@ -60,6 +62,8 @@ private:
|
||||
|
||||
HandInterface *actualHand;
|
||||
|
||||
std::list<int> winners;
|
||||
|
||||
int myCards[5];
|
||||
int pot;
|
||||
int sets;
|
||||
|
||||
@@ -378,9 +378,8 @@ void
|
||||
ClientPlayer::setMyWinnerState(bool theValue, int pot)
|
||||
{
|
||||
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
|
||||
myWinnerState = theValue;
|
||||
if(theValue)
|
||||
actualHand->getGuiInterface()->logPlayerWinsMsg(myName, pot);
|
||||
if(theValue) myWinnerState = theValue;
|
||||
actualHand->getGuiInterface()->logPlayerWinsMsg(myName, pot, theValue);
|
||||
}
|
||||
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user