diff options
author | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-24 00:58:54 +0100 |
---|---|---|
committer | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-24 00:58:54 +0100 |
commit | ad610e63ba6ff21b84b455d310052985ecb78585 (patch) | |
tree | aa371ec6f4895d48fb828bf28e1111aaf7b5d9d5 /source/cWorld.h | |
parent | Added thread names to cThread so when debugging in Visual Studio you actually know what thread you're looking at (diff) | |
download | cuberite-ad610e63ba6ff21b84b455d310052985ecb78585.tar cuberite-ad610e63ba6ff21b84b455d310052985ecb78585.tar.gz cuberite-ad610e63ba6ff21b84b455d310052985ecb78585.tar.bz2 cuberite-ad610e63ba6ff21b84b455d310052985ecb78585.tar.lz cuberite-ad610e63ba6ff21b84b455d310052985ecb78585.tar.xz cuberite-ad610e63ba6ff21b84b455d310052985ecb78585.tar.zst cuberite-ad610e63ba6ff21b84b455d310052985ecb78585.zip |
Diffstat (limited to '')
-rw-r--r-- | source/cWorld.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/source/cWorld.h b/source/cWorld.h index 6e407f656..83a9bcf66 100644 --- a/source/cWorld.h +++ b/source/cWorld.h @@ -6,6 +6,8 @@ enum ENUM_ITEM_ID;
#endif
+#define MAX_PLAYERS 65535
+
#include <list>
#include <vector>
@@ -54,6 +56,13 @@ public: //ClientList & GetClients();
void Broadcast( const cPacket & a_Packet, cClientHandle* a_Exclude = 0 );
+
+ // MOTD
+ std::string GetDescription();
+
+ // Max Players
+ unsigned int GetMaxPlayers();
+ void SetMaxPlayers(int iMax);
void AddPlayer( cPlayer* a_Player );
void RemovePlayer( cPlayer* a_Player );
@@ -168,13 +177,12 @@ private: cCriticalSection* m_ClientHandleCriticalSection;
cCriticalSection* m_EntitiesCriticalSection;
cCriticalSection* m_ChunksCriticalSection;
-
-
+
+ std::string m_Description;
+ unsigned int m_MaxPlayers;
cChunkMap* m_ChunkMap;
-
-
bool m_bAnimals;
float m_SpawnMonsterTime;
float m_SpawnMonsterRate;
|