diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-12-01 16:39:42 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-12-01 16:39:42 +0100 |
commit | cd0081bb677c09b21fc5017dc1e01eaa18774698 (patch) | |
tree | 3a5ea294a105a298d91817a2599ae296b7c34d4b /src/MobSpawner.h | |
parent | Added better soulsand rims (diff) | |
parent | Updated core (diff) | |
download | cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.gz cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.bz2 cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.lz cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.xz cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.tar.zst cuberite-cd0081bb677c09b21fc5017dc1e01eaa18774698.zip |
Diffstat (limited to 'src/MobSpawner.h')
-rw-r--r-- | src/MobSpawner.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/MobSpawner.h b/src/MobSpawner.h index 6b3a913ec..e8b8f191b 100644 --- a/src/MobSpawner.h +++ b/src/MobSpawner.h @@ -51,10 +51,10 @@ public : typedef const std::set<cMonster *> tSpawnedContainer; tSpawnedContainer & getSpawned(void); -protected : - // return true if specified type of mob can spawn on specified block - bool CanSpawnHere(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ, eMonsterType a_MobType, EMCSBiome a_Biome); + /** Returns true if specified type of mob can spawn on specified block */ + static bool CanSpawnHere(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ, eMonsterType a_MobType, EMCSBiome a_Biome); +protected : // return a random type that can spawn on specified biome. // returns E_ENTITY_TYPE_DONOTUSE if none is possible eMonsterType ChooseMobType(EMCSBiome a_Biome); @@ -62,7 +62,6 @@ protected : // add toAdd inside toAddIn, if toAdd is in m_AllowedTypes void addIfAllowed(eMonsterType toAdd, std::set<eMonsterType> & toAddIn); -protected : cMonster::eFamily m_MonsterFamily; std::set<eMonsterType> m_AllowedTypes; bool m_NewPack; |