diff options
author | madmaxoft <github@xoft.cz> | 2013-08-11 19:18:06 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-11 19:18:06 +0200 |
commit | eb9d45e9065a94c93dc2f1624c22f026b9be3d5f (patch) | |
tree | e88be00ec679f95f23199a7056166ef792d74cf7 /source/Server.h | |
parent | Added doxyComments for cIsThread. (diff) | |
download | cuberite-eb9d45e9065a94c93dc2f1624c22f026b9be3d5f.tar cuberite-eb9d45e9065a94c93dc2f1624c22f026b9be3d5f.tar.gz cuberite-eb9d45e9065a94c93dc2f1624c22f026b9be3d5f.tar.bz2 cuberite-eb9d45e9065a94c93dc2f1624c22f026b9be3d5f.tar.lz cuberite-eb9d45e9065a94c93dc2f1624c22f026b9be3d5f.tar.xz cuberite-eb9d45e9065a94c93dc2f1624c22f026b9be3d5f.tar.zst cuberite-eb9d45e9065a94c93dc2f1624c22f026b9be3d5f.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Server.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/source/Server.h b/source/Server.h index dd7a08735..44e20eec1 100644 --- a/source/Server.h +++ b/source/Server.h @@ -37,7 +37,18 @@ class cServer // tolua_export public: // tolua_export bool InitServer(cIniFile & a_SettingsIni); - bool IsConnected(void) const { return m_bIsConnected;} // returns connection status + // tolua_begin + + const AString & GetDescription(void) const {return m_Description; } + + // Player counts: + int GetMaxPlayers(void) const {return m_MaxPlayers; } + int GetNumPlayers(void) const { return m_NumPlayers; } + void SetMaxPlayers(int a_MaxPlayers) { m_MaxPlayers = a_MaxPlayers; } + + // tolua_end + + // bool IsConnected(void) const { return m_bIsConnected;} // returns connection status void BroadcastChat(const AString & a_Message, const cClientHandle * a_Exclude = NULL); // tolua_export @@ -131,6 +142,10 @@ private: cRCONServer m_RCONServer; + AString m_Description; + int m_MaxPlayers; + int m_NumPlayers; + cServer(void); ~cServer(); |