summaryrefslogtreecommitdiffstats
path: root/source/World.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-26 22:54:40 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-26 22:54:40 +0100
commit83ce4d4792238926d09242f330e0e821de2ba88b (patch)
treefdb23d3e57e45dd965dab962a943a668f171845a /source/World.h
parentFixed repeaters not powering from wire (diff)
downloadcuberite-83ce4d4792238926d09242f330e0e821de2ba88b.tar
cuberite-83ce4d4792238926d09242f330e0e821de2ba88b.tar.gz
cuberite-83ce4d4792238926d09242f330e0e821de2ba88b.tar.bz2
cuberite-83ce4d4792238926d09242f330e0e821de2ba88b.tar.lz
cuberite-83ce4d4792238926d09242f330e0e821de2ba88b.tar.xz
cuberite-83ce4d4792238926d09242f330e0e821de2ba88b.tar.zst
cuberite-83ce4d4792238926d09242f330e0e821de2ba88b.zip
Diffstat (limited to 'source/World.h')
-rw-r--r--source/World.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/World.h b/source/World.h
index d10aa3b78..73ad46b8b 100644
--- a/source/World.h
+++ b/source/World.h
@@ -632,6 +632,7 @@ private:
/// This random generator is to be used only in the Tick() method, and thus only in the World-Tick-thread (MTRand is not exactly thread-safe)
MTRand m_TickRand;
+ bool m_bSpawnExplicitlySet;
double m_SpawnX;
double m_SpawnY;
double m_SpawnZ;
@@ -739,7 +740,10 @@ private:
/// Ticks all clients that are in this world
void TickClients(float a_Dt);
- void UpdateSkyDarkness();
+ void UpdateSkyDarkness(void);
+
+ /// <summary>Generates a random spawnpoint on solid land by walking chunks and finding their biomes</summary>
+ void GenerateRandomSpawn(void);
/// Creates a new fluid simulator, loads its settings from the inifile (a_FluidName section)
cFluidSimulator * InitializeFluidSimulator(cIniFile & a_IniFile, const char * a_FluidName, BLOCKTYPE a_SimulateBlock, BLOCKTYPE a_StationaryBlock);