log side pot winners and player sits out

This commit is contained in:
floty
2007-10-17 14:46:20 +00:00
parent e37321148b
commit a372f614e5
15 changed files with 108 additions and 27 deletions
@@ -119,4 +119,10 @@ ClientBoard::distributePot()
}
std::list<int>
ClientBoard::getWinners() const
{
return winners;
}
+4
View File
@@ -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;
+2 -3
View File
@@ -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