Added winner list for network client.

This commit is contained in:
lotodore
2007-10-29 19:57:46 +00:00
parent 97732c8b0d
commit ded7ca7daf
6 changed files with 18 additions and 5 deletions
@@ -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;
}
+1
View File
@@ -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;