diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-09 14:42:28 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-09 14:42:28 +0100 |
commit | f43b65cf53274d1bbb43e2041ce72ff9eb68a7c8 (patch) | |
tree | 6799433ae65c4d4331bbfd6bcabe5bac38f6376c /source/cClientHandle.h | |
parent | Using the _DEBUG macro for *nix debug builds as well; trying to force 8-byte alignment on critical sections ( http://forum.mc-server.org/showthread.php?tid=384 ) (diff) | |
download | cuberite-f43b65cf53274d1bbb43e2041ce72ff9eb68a7c8.tar cuberite-f43b65cf53274d1bbb43e2041ce72ff9eb68a7c8.tar.gz cuberite-f43b65cf53274d1bbb43e2041ce72ff9eb68a7c8.tar.bz2 cuberite-f43b65cf53274d1bbb43e2041ce72ff9eb68a7c8.tar.lz cuberite-f43b65cf53274d1bbb43e2041ce72ff9eb68a7c8.tar.xz cuberite-f43b65cf53274d1bbb43e2041ce72ff9eb68a7c8.tar.zst cuberite-f43b65cf53274d1bbb43e2041ce72ff9eb68a7c8.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cClientHandle.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/cClientHandle.h b/source/cClientHandle.h index 6ac6e07b8..65a4e5db8 100644 --- a/source/cClientHandle.h +++ b/source/cClientHandle.h @@ -78,7 +78,7 @@ public: cPlayer* GetPlayer() { return m_Player; } // tolua_export
- void Kick(const AString & a_Reason); //tolua_export
+ void Kick(const AString & a_Reason); //tolua_export
void Authenticate(void); // Called by cAuthenticator when the user passes authentication
void StreamChunks(void);
@@ -100,11 +100,13 @@ public: void Send(const cPacket & a_Packet, ENUM_PRIORITY a_Priority = E_PRIORITY_NORMAL) { Send(&a_Packet, a_Priority); }
void Send(const cPacket * a_Packet, ENUM_PRIORITY a_Priority = E_PRIORITY_NORMAL);
- const AString & GetUsername(void) const;
+ const AString & GetUsername(void) const; //tolua_export
- inline short GetPing() { return m_Ping; }
+ inline short GetPing() const { return m_Ping; } //tolua_export
- void SetViewDistance(int a_ViewDistance);
+ void SetViewDistance(int a_ViewDistance); //tolua_export
+
+ int GetUniqueID() const { return m_UniqueID; } //tolua_export
private:
@@ -212,6 +214,8 @@ private: virtual void GetOutgoingData(AString & a_Data) override; // Data can be sent to client
virtual void SocketClosed (void) override; // The socket has been closed for any reason
+ static int s_ClientCount;
+ int m_UniqueID;
}; // tolua_export
|