summaryrefslogtreecommitdiffstats
path: root/src/Generating/FinishGen.h
diff options
context:
space:
mode:
authorp-mcgowan <mickeymcgowan@shaw.ca>2014-12-04 10:08:17 +0100
committerp-mcgowan <mickeymcgowan@shaw.ca>2014-12-04 10:08:17 +0100
commit83d4bec369643c82c3f13e2e1c6d13009a2a0bd9 (patch)
tree183479b41018daf3839e765efb33d7a03785334c /src/Generating/FinishGen.h
parentclass description and doxy-commenting (diff)
downloadcuberite-83d4bec369643c82c3f13e2e1c6d13009a2a0bd9.tar
cuberite-83d4bec369643c82c3f13e2e1c6d13009a2a0bd9.tar.gz
cuberite-83d4bec369643c82c3f13e2e1c6d13009a2a0bd9.tar.bz2
cuberite-83d4bec369643c82c3f13e2e1c6d13009a2a0bd9.tar.lz
cuberite-83d4bec369643c82c3f13e2e1c6d13009a2a0bd9.tar.xz
cuberite-83d4bec369643c82c3f13e2e1c6d13009a2a0bd9.tar.zst
cuberite-83d4bec369643c82c3f13e2e1c6d13009a2a0bd9.zip
Diffstat (limited to '')
-rw-r--r--src/Generating/FinishGen.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Generating/FinishGen.h b/src/Generating/FinishGen.h
index e11e6f414..1866d6133 100644
--- a/src/Generating/FinishGen.h
+++ b/src/Generating/FinishGen.h
@@ -318,28 +318,28 @@ protected:
-/** This class populates generated chunks with packs of biome-dependant animals
-Animals: cows, sheep, pigs, mooshrooms, squid, horses, wolves, ocelots
-*/
class cFinishGenPassiveMobs :
public cFinishGen
{
public:
-
+
+ /** This class populates generated chunks with packs of biome-dependant animals
+ Animals: cows, sheep, pigs, mooshrooms, squid, horses, wolves, ocelots
+ */
cFinishGenPassiveMobs(int a_Seed, cIniFile & a_IniFile, eDimension a_Dimension);
protected:
cNoise m_Noise;
- int m_AnimalProbability; /** Chance, [0..100], that an animal pack will be generated in a chunk */
+ int m_AnimalProbability; // Chance, [0..100], that an animal pack will be generated in a chunk
- /** cFinishGen override: */
+ // cFinishGen override:
virtual void GenFinish(cChunkDesc & a_ChunkDesc) override;
- /** Tries to spawn a mob in the center of the pack. If successful, spawns 0-5 more. */
+ // Returns false if an animal cannot spawn at given coords, else adds it to the chunk's entity list and returns true
bool TrySpawnAnimals(cChunkDesc & a_ChunkDesc, int x, int y, int z, eMonsterType AnimalToSpawn);
- /** Gets a random mob from biome-dependant list */
+ // Gets a random animal from biome-dependant list
eMonsterType GetRandomMob(cChunkDesc & a_ChunkDesc);
} ;