summaryrefslogtreecommitdiffstats
path: root/source/Server.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-12 08:35:13 +0200
committermadmaxoft <github@xoft.cz>2013-08-12 08:35:13 +0200
commitc628ab03e9aae0b8e56f260ad02cfc7d51285a71 (patch)
tree402ee387cbf33bd6ca39f718f7addb4fdcc82dd2 /source/Server.h
parentRemoved unused cServer::IsConnected() function. (diff)
downloadcuberite-c628ab03e9aae0b8e56f260ad02cfc7d51285a71.tar
cuberite-c628ab03e9aae0b8e56f260ad02cfc7d51285a71.tar.gz
cuberite-c628ab03e9aae0b8e56f260ad02cfc7d51285a71.tar.bz2
cuberite-c628ab03e9aae0b8e56f260ad02cfc7d51285a71.tar.lz
cuberite-c628ab03e9aae0b8e56f260ad02cfc7d51285a71.tar.xz
cuberite-c628ab03e9aae0b8e56f260ad02cfc7d51285a71.tar.zst
cuberite-c628ab03e9aae0b8e56f260ad02cfc7d51285a71.zip
Diffstat (limited to 'source/Server.h')
-rw-r--r--source/Server.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/source/Server.h b/source/Server.h
index 176c82a40..fad7fc12a 100644
--- a/source/Server.h
+++ b/source/Server.h
@@ -46,8 +46,6 @@ public: // tolua_export
int GetNumPlayers(void) const { return m_NumPlayers; }
void SetMaxPlayers(int a_MaxPlayers) { m_MaxPlayers = a_MaxPlayers; }
- void BroadcastChat(const AString & a_Message, const cClientHandle * a_Exclude = NULL);
-
// tolua_end
bool Start(void);
@@ -62,8 +60,6 @@ public: // tolua_export
void Shutdown(void);
- void SendMessage(const AString & a_Message, cPlayer * a_Player = NULL, bool a_bExclude = false ); // tolua_export
-
void KickUser(int a_ClientID, const AString & a_Reason);
void AuthenticateUser(int a_ClientID); // Called by cAuthenticator to auth the specified user
@@ -79,6 +75,9 @@ public: // tolua_export
void RemoveClient(const cClientHandle * a_Client); // Removes the clienthandle from m_SocketThreads
+ /// Don't tick a_Client anymore, it will be ticked from its cPlayer instead
+ void ClientMovedToWorld(const cClientHandle * a_Client);
+
CryptoPP::RSA::PrivateKey & GetPrivateKey(void) { return m_PrivateKey; }
CryptoPP::RSA::PublicKey & GetPublicKey (void) { return m_PublicKey; }
@@ -132,8 +131,8 @@ private:
cListenThread m_ListenThreadIPv4;
cListenThread m_ListenThreadIPv6;
- cCriticalSection m_CSClients; // Locks client list
- cClientHandleList m_Clients; // Clients that are connected to the server
+ cCriticalSection m_CSClients; ///< Locks client list
+ cClientHandleList m_Clients; ///< Clients that are connected to the server and not yet assigned to a cWorld
cSocketThreads m_SocketThreads;