Fixed player counting bug. Fixed player number. Joining/leaving network game should work now. Added player type to localplayer.

This commit is contained in:
lotodore
2007-05-08 06:45:46 +00:00
parent 5b878d9095
commit 4a10d6188c
14 changed files with 216 additions and 183 deletions
+4 -3
View File
@@ -35,7 +35,7 @@ enum PlayerType
class PlayerData
{
public:
PlayerData(unsigned uniqueId, int number);
PlayerData(unsigned uniqueId, int number, PlayerType type);
~PlayerData();
const std::string &GetName() const
@@ -48,13 +48,14 @@ public:
{m_avatarFile = avatarFile;}
PlayerType GetType() const
{return m_type;}
void SetPlayerType(PlayerType type)
{m_type = type;}
unsigned GetUniqueId() const
{return m_uniqueId;}
int GetNumber() const
{return m_number;}
bool operator<(const PlayerData &other)
{return m_number < other.GetNumber();}
private:
unsigned m_uniqueId;
int m_number;