summaryrefslogtreecommitdiffstats
path: root/source/cClientHandle.h
diff options
context:
space:
mode:
authormtilden@gmail.com <mtilden@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-26 03:35:49 +0100
committermtilden@gmail.com <mtilden@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-26 03:35:49 +0100
commita85ea1c9accd439bb8a805253979b93e7c8fe6fe (patch)
tree82630f92662eafe869cbdfabb928c0d6318da991 /source/cClientHandle.h
parentMade some functions in cChunk and cNoise inline, this should significantly increase chunk generation speed (diff)
downloadcuberite-a85ea1c9accd439bb8a805253979b93e7c8fe6fe.tar
cuberite-a85ea1c9accd439bb8a805253979b93e7c8fe6fe.tar.gz
cuberite-a85ea1c9accd439bb8a805253979b93e7c8fe6fe.tar.bz2
cuberite-a85ea1c9accd439bb8a805253979b93e7c8fe6fe.tar.lz
cuberite-a85ea1c9accd439bb8a805253979b93e7c8fe6fe.tar.xz
cuberite-a85ea1c9accd439bb8a805253979b93e7c8fe6fe.tar.zst
cuberite-a85ea1c9accd439bb8a805253979b93e7c8fe6fe.zip
Diffstat (limited to '')
-rw-r--r--source/cClientHandle.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/cClientHandle.h b/source/cClientHandle.h
index 048e46389..67ef56747 100644
--- a/source/cClientHandle.h
+++ b/source/cClientHandle.h
@@ -51,6 +51,8 @@ public:
static void AuthenticateThread( void* a_Param );
const char* GetUsername();
+
+ inline short GetPing() { return m_Ping; }
private:
void HandlePacket( cPacket* a_Packet );
void RemovePacket( cPacket * a_Packet );
@@ -66,6 +68,9 @@ private:
float m_TimeLastPacket;
+ // TODO: ping calculation per minecraft
+ short m_Ping;
+
bool m_bLoggedIn;
bool m_bSendLoginResponse;