Added winner list for network client.
This commit is contained in:
@@ -121,7 +121,14 @@ ClientBoard::distributePot()
|
||||
std::list<int>
|
||||
ClientBoard::getWinners() const
|
||||
{
|
||||
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
|
||||
return winners;
|
||||
}
|
||||
|
||||
void
|
||||
ClientBoard::setWinners(const std::list<int> &w)
|
||||
{
|
||||
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
|
||||
winners = w;
|
||||
}
|
||||
|
||||
|
||||
@@ -51,6 +51,7 @@ public:
|
||||
void distributePot();
|
||||
|
||||
std::list<int> getWinners() const;
|
||||
void setWinners(const std::list<int> &winners);
|
||||
|
||||
private:
|
||||
mutable boost::recursive_mutex m_syncMutex;
|
||||
|
||||
Reference in New Issue
Block a user