summaryrefslogtreecommitdiffstats
path: root/source/cWorld.h
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-01 22:57:08 +0100
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-11-01 22:57:08 +0100
commitb5b920dedaa62302795b0b8f3db84a0650d236e0 (patch)
treef46d1ec70d6519fff2a75f45c08fe37bf4b5538c /source/cWorld.h
parentforogt to update all of cPlayer.cpp for player based gamemode. (diff)
downloadcuberite-b5b920dedaa62302795b0b8f3db84a0650d236e0.tar
cuberite-b5b920dedaa62302795b0b8f3db84a0650d236e0.tar.gz
cuberite-b5b920dedaa62302795b0b8f3db84a0650d236e0.tar.bz2
cuberite-b5b920dedaa62302795b0b8f3db84a0650d236e0.tar.lz
cuberite-b5b920dedaa62302795b0b8f3db84a0650d236e0.tar.xz
cuberite-b5b920dedaa62302795b0b8f3db84a0650d236e0.tar.zst
cuberite-b5b920dedaa62302795b0b8f3db84a0650d236e0.zip
Diffstat (limited to '')
-rw-r--r--source/cWorld.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/source/cWorld.h b/source/cWorld.h
index 74f8ae8e8..383ffaec3 100644
--- a/source/cWorld.h
+++ b/source/cWorld.h
@@ -25,7 +25,7 @@ public:
typedef std::list< cChunk* > ChunkList;
typedef std::list< cPlayer* > PlayerList;
- static cWorld* GetWorld(); //tolua_export
+ static cWorld* GetWorld(); //tolua_export
// Return time in seconds
inline static float GetTime() //tolua_export
@@ -43,9 +43,9 @@ public:
cChunk* GetChunkOfBlock( int a_X, int a_Y, int a_Z );
char GetHeight( int a_X, int a_Z ); //tolua_export
- void AddClient( cClientHandle* a_Client );
- void RemoveClient( cClientHandle* a_Client );
- ClientList & GetClients();
+ //void AddClient( cClientHandle* a_Client );
+ //void RemoveClient( cClientHandle* a_Client );
+ //ClientList & GetClients();
void AddPlayer( cPlayer* a_Player );
void RemovePlayer( cPlayer* a_Player );
@@ -79,6 +79,7 @@ public:
void GrowTree( int a_X, int a_Y, int a_Z ); //tolua_export
unsigned int GetWorldSeed() { return m_WorldSeed; } //tolua_export
+ const char* GetName(); //tolua_export
inline static void AbsoluteToRelative( int & a_X, int & a_Y, int & a_Z, int & a_ChunkX, int & a_ChunkY, int & a_ChunkZ )
{
@@ -122,7 +123,7 @@ public:
void InitializeSpawn();
private:
friend class cRoot;
- cWorld();
+ cWorld( const char* a_WorldName );
~cWorld();
struct sWorldState;