summaryrefslogtreecommitdiffstats
path: root/source/MobFamilyCollecter.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-20 14:16:21 +0200
committermadmaxoft <github@xoft.cz>2013-10-20 14:16:21 +0200
commitb6741865f2bb541699d04f128a5389d7b8a4babe (patch)
treec9671f34b5def39dab2589a04a44302ad3d5aabc /source/MobFamilyCollecter.h
parentReimplemented cMonster::FamilyFromType() as a simple switch (duh!) (diff)
downloadcuberite-b6741865f2bb541699d04f128a5389d7b8a4babe.tar
cuberite-b6741865f2bb541699d04f128a5389d7b8a4babe.tar.gz
cuberite-b6741865f2bb541699d04f128a5389d7b8a4babe.tar.bz2
cuberite-b6741865f2bb541699d04f128a5389d7b8a4babe.tar.lz
cuberite-b6741865f2bb541699d04f128a5389d7b8a4babe.tar.xz
cuberite-b6741865f2bb541699d04f128a5389d7b8a4babe.tar.zst
cuberite-b6741865f2bb541699d04f128a5389d7b8a4babe.zip
Diffstat (limited to 'source/MobFamilyCollecter.h')
-rw-r--r--source/MobFamilyCollecter.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/source/MobFamilyCollecter.h b/source/MobFamilyCollecter.h
index cd05b6adb..6cef133b5 100644
--- a/source/MobFamilyCollecter.h
+++ b/source/MobFamilyCollecter.h
@@ -16,16 +16,12 @@ class cChunk;
-/** This class is used to collect, for each Mob, what is it's family. It was first
-being designed to check the caps of the mobs (no more than ... hostile mob in the world)
-
-as side effects : it also know what is the spawnrate of each family : MG TODO relocate
+/** This class is used to collect the list of mobs for each family
*/
class cMobFamilyCollecter
{
public :
typedef const std::set<cMonster::eFamily> tMobFamilyList;
- typedef const std::map<cMonster::eFamily,int> tMobSpawRate;
// collect a mob
void CollectMob(cMonster & a_Monster);
@@ -33,15 +29,9 @@ public :
// return the number of mobs for this family
int GetNumberOfCollectedMobs(cMonster::eFamily a_Family);
- static tMobFamilyList & m_AllFamilies(void);
-
- static tMobSpawRate & m_SpawnRate(void);
-
protected :
- std::map<cMonster::eFamily, std::set<cMonster*> > m_Mobs;
+ std::map<cMonster::eFamily, std::set<cMonster *> > m_Mobs;
- static tMobFamilyList InitMobFamilyBeforeCx11(void);
- static tMobSpawRate InitMobSpawnRateBeforeCx11(void);
} ;