summaryrefslogtreecommitdiffstats
path: root/source/MobSpawner.h
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2013-10-28 23:38:34 +0100
committerSamuel Barney <samjbarney@gmail.com>2013-10-28 23:38:34 +0100
commit47283f9daa4a19514c211ceb1dc1e4bc7c06b26d (patch)
treef4aefc7cb346fee23b4cf681c75f5ad2ee7a8f14 /source/MobSpawner.h
parentMade mob spawning code use the chunk so that it could use varying sizes of areas for different mobs. (diff)
downloadcuberite-47283f9daa4a19514c211ceb1dc1e4bc7c06b26d.tar
cuberite-47283f9daa4a19514c211ceb1dc1e4bc7c06b26d.tar.gz
cuberite-47283f9daa4a19514c211ceb1dc1e4bc7c06b26d.tar.bz2
cuberite-47283f9daa4a19514c211ceb1dc1e4bc7c06b26d.tar.lz
cuberite-47283f9daa4a19514c211ceb1dc1e4bc7c06b26d.tar.xz
cuberite-47283f9daa4a19514c211ceb1dc1e4bc7c06b26d.tar.zst
cuberite-47283f9daa4a19514c211ceb1dc1e4bc7c06b26d.zip
Diffstat (limited to '')
-rw-r--r--source/MobSpawner.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/MobSpawner.h b/source/MobSpawner.h
index 22adb00f4..3b9ede7c6 100644
--- a/source/MobSpawner.h
+++ b/source/MobSpawner.h
@@ -39,7 +39,7 @@ public :
// if this is the first of a Pack : determine the type of monster
// BlockType & BlockMeta are used to decide what kind of Mob can Spawn here
// MaxPackSize is set to the maximal size for a pack this type of mob
- cMonster * TryToSpawnHere(const cChunk * a_Chunk, int A_RelX, int a_RelY, int a_RelZ, EMCSBiome a_Biome, int& a_MaxPackSize);
+ cMonster * TryToSpawnHere(const cChunk * a_Chunk, int A_RelX, int a_RelY, int a_RelZ, EMCSBiome a_Biome, int a_TimeOfDay, int& a_MaxPackSize);
// mark the beginning of a new Pack
// all mobs of the same Pack are the same type
@@ -53,7 +53,7 @@ public :
protected :
// return true if specified type of mob can spawn on specified block
- bool CanSpawnHere(const cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ, cMonster::eType a_MobType, EMCSBiome a_Biome);
+ bool CanSpawnHere(const cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ, cMonster::eType a_MobType, int a_TimeOfDay, EMCSBiome a_Biome);
// return a random type that can spawn on specified biome.
// returns E_ENTITY_TYPE_DONOTUSE if none is possible