Adding support for custom delay between hands in protocol.

This commit is contained in:
lotodore
2009-10-24 21:49:11 +00:00
parent 857cbf357e
commit 31c7b789a8
56 changed files with 276 additions and 195 deletions
+15 -1
View File
@@ -22,7 +22,7 @@
using namespace std;
PlayerData::PlayerData(unsigned uniqueId, int number, PlayerType type, PlayerRights rights)
: m_uniqueId(uniqueId), m_number(number), m_type(type), m_rights(rights)
: m_uniqueId(uniqueId), m_dbId(DB_ID_INVALID), m_number(number), m_type(type), m_rights(rights)
{
}
@@ -167,6 +167,20 @@ PlayerData::SetNumber(int number)
m_number = number;
}
DB_id
PlayerData::GetDBId() const
{
boost::mutex::scoped_lock lock(m_dataMutex);
return m_dbId;
}
void
PlayerData::SetDBId(DB_id id)
{
boost::mutex::scoped_lock lock(m_dataMutex);
m_dbId = id;
}
bool
PlayerData::operator<(const PlayerData &other) const
{