diff options
Diffstat (limited to 'src/core/player.h')
-rw-r--r-- | src/core/player.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/core/player.h b/src/core/player.h index 91d66c5..8b60eee 100644 --- a/src/core/player.h +++ b/src/core/player.h @@ -157,6 +157,22 @@ public: return player_reputation.reputation(faction); } + /** + * @brief number of NPCs the player killed + * */ + inline const long npckills() const + { + return player_npckills; + } + + /** + * @brief number of other players the player killed + * */ + inline const long pvpkills() const + { + return player_pvpkills; + } + /*----- server-side mesage functions ------------------------------ */ /// send a message to the player on one of the message channels @@ -250,6 +266,16 @@ public: inline void set_zonechange(const bool dirty = true) { player_zonechange = dirty; } + + /** + * @brief set the number of NPCs the player killed + * */ + void set_npckills(const long kills); + + /** + * @brief set the number of other players the player killed + * */ + void set_pvpkills(const long kills); /* -- should actually not be public --*/ @@ -305,6 +331,14 @@ private: float player_warningtime; Reputation player_reputation; + + long player_npckills; + + long player_pvpkills; + + unsigned long player_time_previously_wasted; + + unsigned long player_time_last_joined; }; |