Game configuration now placed in a struct. Prepared to send/receive game configuration over tcp.

This commit is contained in:
lotodore
2007-04-26 23:07:08 +00:00
parent e202a83fbc
commit 29b6050ee1
16 changed files with 133 additions and 37 deletions
+4 -1
View File
@@ -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;