Preparing admin functions in PokerTH client.

This commit is contained in:
lotodore
2013-02-24 16:22:51 +01:00
parent 6d85adf7e2
commit 883ccdcf44
13 changed files with 77 additions and 15 deletions
+3 -1
View File
@@ -70,10 +70,11 @@ struct AvatarFile {
};
struct PlayerInfo {
PlayerInfo() : ptype(PLAYER_TYPE_HUMAN), isGuest(false), hasAvatar(false), avatarType(AVATAR_FILE_TYPE_UNKNOWN) {}
PlayerInfo() : ptype(PLAYER_TYPE_HUMAN), isGuest(false), isAdmin(false), hasAvatar(false), avatarType(AVATAR_FILE_TYPE_UNKNOWN) {}
std::string playerName;
PlayerType ptype;
bool isGuest;
bool isAdmin;
std::string countryCode;
bool hasAvatar;
MD5Buf avatar;
@@ -100,6 +101,7 @@ public:
PlayerType GetType() const;
void SetType(PlayerType type);
PlayerRights GetRights() const;
void SetRights(PlayerRights rights);
bool IsGameAdmin() const;
void SetGameAdmin(bool isAdmin);
unsigned GetUniqueId() const;