From 44500292f5a964036e9d915a38a2773bf5aa765d Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 10 Jan 2009 15:35:45 +0000 Subject: preliminary player ping support --- src/core/player.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core/player.h') diff --git a/src/core/player.h b/src/core/player.h index dccd8e6..f0c4996 100644 --- a/src/core/player.h +++ b/src/core/player.h @@ -79,6 +79,9 @@ public: /// credits inline long credits() const { return player_credits; } + /// network ping + inline long ping() const { return player_ping; } + /// returns true of the player has enough credits to pay amount inline bool has_credits(const long amount) const { return (player_credits >= amount); } @@ -130,6 +133,8 @@ public: void add_credits(long amount); + void set_ping(long ping); + inline void set_dirty() { player_dirty = true; } @@ -171,7 +176,9 @@ private: Zone *player_zone; long player_credits; + long player_ping; std::string player_rconpassword; + }; } -- cgit v1.2.3