Send state of seats at the beginning of each hand.

This commit is contained in:
lotodore
2011-12-21 20:56:41 +00:00
parent e3a30d571c
commit 38d224590a
25 changed files with 292 additions and 106 deletions
+16
View File
@@ -670,6 +670,22 @@ ServerGame::GetAndResetRejoinPlayers()
return tmpList;
}
void
ServerGame::AddReactivatePlayer(unsigned playerId)
{
boost::mutex::scoped_lock lock(m_reactivatePlayerListMutex);
m_reactivatePlayerList.push_back(playerId);
}
PlayerIdList
ServerGame::GetAndResetReactivatePlayers()
{
boost::mutex::scoped_lock lock(m_reactivatePlayerListMutex);
PlayerIdList tmpList(m_reactivatePlayerList);
m_reactivatePlayerList.clear();
return tmpList;
}
void
ServerGame::AddComputerPlayer(boost::shared_ptr<PlayerData> player)
{