diff options
author | Stijn Buys <ingar@osirion.org> | 2009-01-10 15:35:45 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-01-10 15:35:45 +0000 |
commit | 44500292f5a964036e9d915a38a2773bf5aa765d (patch) | |
tree | 04e791247062a78b753017afad6d96e32a367900 /src/core/player.h | |
parent | b8668c7a181ff082e5aeabffeaa413677da3e6f9 (diff) |
preliminary player ping support
Diffstat (limited to 'src/core/player.h')
-rw-r--r-- | src/core/player.h | 7 |
1 files changed, 7 insertions, 0 deletions
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; + }; } |