summaryrefslogtreecommitdiffstats
path: root/source/MobSpawner.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-10-30 23:25:51 +0100
committerMattes D <github@xoft.cz>2013-10-30 23:25:51 +0100
commit8b9d3c77228b139d5b5a146e0f1aa242e3066903 (patch)
tree6733363192eb368c335e9aa18fd0df2ab4a266b7 /source/MobSpawner.h
parentAdded 1.7 to protocol recognizer. (diff)
parentLast of the nitpicker note fixes. Added some inline commenting. (diff)
downloadcuberite-8b9d3c77228b139d5b5a146e0f1aa242e3066903.tar
cuberite-8b9d3c77228b139d5b5a146e0f1aa242e3066903.tar.gz
cuberite-8b9d3c77228b139d5b5a146e0f1aa242e3066903.tar.bz2
cuberite-8b9d3c77228b139d5b5a146e0f1aa242e3066903.tar.lz
cuberite-8b9d3c77228b139d5b5a146e0f1aa242e3066903.tar.xz
cuberite-8b9d3c77228b139d5b5a146e0f1aa242e3066903.tar.zst
cuberite-8b9d3c77228b139d5b5a146e0f1aa242e3066903.zip
Diffstat (limited to 'source/MobSpawner.h')
-rw-r--r--source/MobSpawner.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/MobSpawner.h b/source/MobSpawner.h
index ba2a18f2e..ea6636310 100644
--- a/source/MobSpawner.h
+++ b/source/MobSpawner.h
@@ -4,6 +4,7 @@
#include <set>
#include "BlockID.h"
#include "ChunkDef.h"
+#include "Chunk.h"
#include "FastRandom.h"
#include "Mobs/Monster.h" //this is a side-effect of keeping Mobfamily inside Monster class. I'd prefer to keep both (Mobfamily and Monster) inside a "Monster" namespace MG TODO : do it
@@ -38,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(BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, BLOCKTYPE a_BlockType_below, NIBBLETYPE a_BlockMeta_below, BLOCKTYPE a_BlockType_above, NIBBLETYPE a_BlockMeta_above, EMCSBiome a_Biome, int a_Level, int& a_MaxPackSize);
+ cMonster * TryToSpawnHere(cChunk * a_Chunk, int A_RelX, int a_RelY, int a_RelZ, EMCSBiome a_Biome, int& a_MaxPackSize);
// mark the beginning of a new Pack
// all mobs of the same Pack are the same type
@@ -52,7 +53,7 @@ public :
protected :
// return true if specified type of mob can spawn on specified block
- bool CanSpawnHere(cMonster::eType a_MobType, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, BLOCKTYPE a_BlockType_below, NIBBLETYPE a_BlockMeta_below, BLOCKTYPE a_BlockType_above, NIBBLETYPE a_BlockMeta_above, EMCSBiome a_Biome, int a_Level);
+ bool CanSpawnHere(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ, cMonster::eType a_MobType, EMCSBiome a_Biome);
// return a random type that can spawn on specified biome.
// returns E_ENTITY_TYPE_DONOTUSE if none is possible