Adding support for custom delay between hands in protocol.
This commit is contained in:
+15
-1
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user