Game configuration now placed in a struct. Prepared to send/receive game configuration over tcp.
This commit is contained in:
+4
-1
@@ -34,7 +34,7 @@ enum PlayerType
|
||||
class PlayerData
|
||||
{
|
||||
public:
|
||||
PlayerData();
|
||||
PlayerData(unsigned uniqueId);
|
||||
~PlayerData();
|
||||
|
||||
const std::string &GetName() const
|
||||
@@ -49,8 +49,11 @@ public:
|
||||
{return m_type;}
|
||||
void SetPlayerType(PlayerType type)
|
||||
{m_type = type;}
|
||||
unsigned GetUniqueId() const
|
||||
{return m_uniqueId;}
|
||||
|
||||
private:
|
||||
unsigned m_uniqueId;
|
||||
std::string m_name;
|
||||
std::string m_avatarFile;
|
||||
PlayerType m_type;
|
||||
|
||||
Reference in New Issue
Block a user