Changed network code for new player lists.

This commit is contained in:
lotodore
2007-09-27 14:17:07 +00:00
parent c469eb5848
commit 78bf4820af
11 changed files with 160 additions and 220 deletions
+12
View File
@@ -44,12 +44,14 @@ ClientBeRo::setHighestCardsValue(int theValue)
void
ClientBeRo::setLastActionPlayer ( int theValue )
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
lastActionPlayer = theValue;
}
int
ClientBeRo::getLastActionPlayer() const
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
return lastActionPlayer;
}
@@ -70,48 +72,56 @@ ClientBeRo::getPlayersTurn() const
void
ClientBeRo::setCurrentPlayersTurnIt(PlayerListIterator theValue)
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
currentPlayersTurnIt = theValue;
}
PlayerListIterator
ClientBeRo::getCurrentPlayersTurnIt() const
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
return currentPlayersTurnIt;
}
void
ClientBeRo::setLastPlayersTurnIt(PlayerListIterator theValue)
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
lastPlayersTurnIt = theValue;
}
PlayerListIterator
ClientBeRo::getLastPlayersTurnIt() const
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
return lastPlayersTurnIt;
}
void
ClientBeRo::setCurrentPlayersTurnId(unsigned theValue)
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
currentPlayersTurnId = theValue;
}
unsigned
ClientBeRo::getCurrentPlayersTurnId() const
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
return currentPlayersTurnId;
}
void
ClientBeRo::setFirstRoundLastPlayersTurnId(unsigned theValue)
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
firstRoundLastPlayersTurnId = theValue;
}
unsigned
ClientBeRo::getFirstRoundLastPlayersTurnId() const
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
return firstRoundLastPlayersTurnId;
}
@@ -174,12 +184,14 @@ ClientBeRo::getSmallBlind() const
void
ClientBeRo::setMinimumRaise ( int theValue )
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
minimumRaise = theValue;
}
int
ClientBeRo::getMinimumRaise() const
{
boost::recursive_mutex::scoped_lock lock(m_syncMutex);
return minimumRaise;
}