implement frame for list of player who need to show their cards at the end of the hand
This commit is contained in:
@@ -118,6 +118,12 @@ ClientBoard::distributePot()
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
ClientBoard::determinePlayerNeedToShowCards()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
std::list<unsigned>
|
||||
ClientBoard::getWinners() const
|
||||
{
|
||||
@@ -132,3 +138,16 @@ ClientBoard::setWinners(const std::list<unsigned> &w)
|
||||
winners = w;
|
||||
}
|
||||
|
||||
std::list<unsigned>
|
||||
ClientBoard::getPlayerNeedToShowCards() const
|
||||
{
|
||||
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
|
||||
return playerNeedToShowCards;
|
||||
}
|
||||
|
||||
void
|
||||
ClientBoard::setPlayerNeedToShowCards(const std::list<unsigned> &p)
|
||||
{
|
||||
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
|
||||
playerNeedToShowCards = p;
|
||||
}
|
||||
|
||||
@@ -49,10 +49,14 @@ public:
|
||||
void collectPot();
|
||||
|
||||
void distributePot();
|
||||
void determinePlayerNeedToShowCards();
|
||||
|
||||
std::list<unsigned> getWinners() const;
|
||||
void setWinners(const std::list<unsigned> &winners);
|
||||
|
||||
std::list<unsigned> getPlayerNeedToShowCards() const;
|
||||
void setPlayerNeedToShowCards(const std::list<unsigned> &playerNeedToShowCards);
|
||||
|
||||
private:
|
||||
mutable boost::recursive_mutex m_syncMutex;
|
||||
|
||||
@@ -63,6 +67,7 @@ private:
|
||||
HandInterface *currentHand;
|
||||
|
||||
std::list<unsigned> winners;
|
||||
std::list<unsigned> playerNeedToShowCards;
|
||||
|
||||
int myCards[5];
|
||||
int pot;
|
||||
|
||||
Reference in New Issue
Block a user