summaryrefslogtreecommitdiffstats
path: root/source/ChunkMap.h
diff options
context:
space:
mode:
authormgueydan <gueydan.mathieuÃ@gmail.com>2013-09-08 00:11:38 +0200
committermgueydan <gueydan.mathieuÃ@gmail.com>2013-09-08 00:11:38 +0200
commitbf1fb0aa3dbd5b6b793d920c4e301e4782fe0f0f (patch)
tree9c47274f2e308991d15422dcf515710c28fc5ab7 /source/ChunkMap.h
parentAdding mob census (sorry this is a big commit as work was done before git integration i couldn't split it more) (diff)
downloadcuberite-bf1fb0aa3dbd5b6b793d920c4e301e4782fe0f0f.tar
cuberite-bf1fb0aa3dbd5b6b793d920c4e301e4782fe0f0f.tar.gz
cuberite-bf1fb0aa3dbd5b6b793d920c4e301e4782fe0f0f.tar.bz2
cuberite-bf1fb0aa3dbd5b6b793d920c4e301e4782fe0f0f.tar.lz
cuberite-bf1fb0aa3dbd5b6b793d920c4e301e4782fe0f0f.tar.xz
cuberite-bf1fb0aa3dbd5b6b793d920c4e301e4782fe0f0f.tar.zst
cuberite-bf1fb0aa3dbd5b6b793d920c4e301e4782fe0f0f.zip
Diffstat (limited to 'source/ChunkMap.h')
-rw-r--r--source/ChunkMap.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/ChunkMap.h b/source/ChunkMap.h
index c9d9abf75..168f54b39 100644
--- a/source/ChunkMap.h
+++ b/source/ChunkMap.h
@@ -27,6 +27,7 @@ class cPickup;
class cChunkDataSerializer;
class cBlockArea;
class cMobCensus;
+class cMobSpawner;
typedef std::list<cClientHandle *> cClientHandleList;
typedef cChunk * cChunkPtr;
@@ -264,12 +265,15 @@ public:
/// Grows a cactus present at the block specified by the amount of blocks specified, up to the max height specified in the config
void GrowCactus(int a_BlockX, int a_BlockY, int a_BlockZ, int a_NumBlocksToGrow);
- /// Sets the blockticking to start at the specified block. Only one blocktick per chunk may be set, second call overwrites the first call
+ /// Sets the blockticking to start at the specified block. Only one blocktick per chunk may be set, second call overwrites the first call
void SetNextBlockTick(int a_BlockX, int a_BlockY, int a_BlockZ);
/// Make a Mob census, of all mobs, their family, their chunk and theyr distance to closest player
void CollectMobCensus(cMobCensus& a_ToFill);
+ /// Try to Spawn Monsters inside all Chunks
+ void SpawnMobs(cMobSpawner& a_MobSpawner);
+
void Tick(float a_Dt);
void UnloadUnusedChunks(void);
@@ -314,8 +318,9 @@ private:
void UnloadUnusedChunks(void);
/// Collect a mob census, of all mobs, their megatype, their chunk and their distance o closest player
- void CollectMobCensus(cMobCensus& a_ToFill);
-
+ void CollectMobCensus(cMobCensus& a_ToFill);
+ /// Try to Spawn Monsters inside all Chunks
+ void SpawnMobs(cMobSpawner& a_MobSpawner);
void Tick(float a_Dt);