diff options
Diffstat (limited to 'src/core/player.h')
-rw-r--r-- | src/core/player.h | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/src/core/player.h b/src/core/player.h index e68a219..39170a4 100644 --- a/src/core/player.h +++ b/src/core/player.h @@ -12,6 +12,7 @@ namespace core class Player; } +#include "core/level.h" #include "core/entity.h" #include "core/message.h" #include "core/uid.h" @@ -128,13 +129,13 @@ public: void print() const; /// player level - inline const int level() const + inline const Level level() const { return player_level; } /// player admin level - inline const int admin_level() const + inline const Level admin_level() const { return player_admin_level; } @@ -294,21 +295,27 @@ public: void set_ping(const long ping); - /// set the player level - void set_level(const int level); + /** + * @brief set the player level + * */ + void set_level(const Level level); /// set the admin level - void set_admin_level(const int admin_level); + void set_admin_level(const Level admin_level); void set_guid(const std::string & guid); /// set the dirty bit - inline void set_dirty(const bool dirty = true) { + inline void set_dirty(const bool dirty = true) + { player_dirty = dirty; } - /// set the zonechange bit - inline void set_zonechange(const bool dirty = true) { + /** + * @brief set the zonechange bit + * */ + inline void set_zonechange(const bool dirty = true) + { player_zonechange = dirty; } @@ -362,11 +369,11 @@ private: long player_credits; // in-game level - int player_level; + Level player_level; long player_ping; std::string player_rconpassword; - int player_admin_level; + Level player_admin_level; // global unique id UID player_guid; |