diff options
author | Stijn Buys <ingar@osirion.org> | 2011-01-21 14:41:35 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2011-01-21 14:41:35 +0000 |
commit | 035653e94a3d74b8f18c993034199d7cd08a895a (patch) | |
tree | 6acc56c14a86b499657b6e7faaf50f9e6f7ff57d /src/core/player.h | |
parent | 4af61dca099d2b7010d4fa83833ceeeef01b0b0f (diff) |
Support structures for complex entity collision,
renamed sv_arrysize cvar to mem_vertex.
Diffstat (limited to 'src/core/player.h')
-rw-r--r-- | src/core/player.h | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/src/core/player.h b/src/core/player.h index 20a3b2d..dbcc161 100644 --- a/src/core/player.h +++ b/src/core/player.h @@ -117,6 +117,16 @@ public: const int level() const { return player_level; } + + /// player admin level + const int admin_level() const { + return player_admin_level; + } + + /// player global unique id + const std::string & guid() const { + return player_guid; + } /*----- messages -------------------------------------------------- */ @@ -140,7 +150,6 @@ public: return player_warningtime; } - /*----- mutators -------------------------------------------------- */ /// serialize player info to a stream @@ -208,7 +217,12 @@ public: /// set the player level void set_level(const int level); - + + /// set the admin level + void set_admin_level(const int admin_level); + + void set_guid(const std::string & guid); + /// set the dirty bit inline void set_dirty(const bool dirty = true) { player_dirty = dirty; @@ -252,10 +266,16 @@ private: Zone *player_zone; long player_credits; + // in-game level + int player_level; + long player_ping; std::string player_rconpassword; - int player_level; - + int player_admin_level; + + // global unique id + std::string player_guid; + // dirty bit bool player_dirty; // bit to indicate zone has changed |