Players can now join and leave as they wish. Still TODO: Need to fix player number.

This commit is contained in:
lotodore
2007-05-06 23:27:08 +00:00
parent 87a1abfa42
commit a85ec4ee5a
16 changed files with 439 additions and 39 deletions
+4 -1
View File
@@ -35,7 +35,7 @@ enum PlayerType
class PlayerData
{
public:
PlayerData(unsigned uniqueId);
PlayerData(unsigned uniqueId, int number);
~PlayerData();
const std::string &GetName() const
@@ -52,9 +52,12 @@ public:
{m_type = type;}
unsigned GetUniqueId() const
{return m_uniqueId;}
int GetNumber() const
{return m_number;}
private:
unsigned m_uniqueId;
int m_number;
std::string m_name;
std::string m_avatarFile;
PlayerType m_type;