diff options
Diffstat (limited to '')
-rw-r--r-- | source/MobFamilyCollecter.cpp | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/source/MobFamilyCollecter.cpp b/source/MobFamilyCollecter.cpp index 086fa5f40..e9c69e078 100644 --- a/source/MobFamilyCollecter.cpp +++ b/source/MobFamilyCollecter.cpp @@ -6,32 +6,7 @@ -cMobFamilyCollecter::tMobFamilyList cMobFamilyCollecter::InitMobFamilyBeforeCx11(void) -{ - std::set<cMonster::eFamily> toReturn; - toReturn.insert(cMonster::mfHostile); - toReturn.insert(cMonster::mfPassive); - toReturn.insert(cMonster::mfAmbient); - toReturn.insert(cMonster::mfWater); - return toReturn; -} - - - - - -cMobFamilyCollecter::tMobFamilyList & cMobFamilyCollecter::m_AllFamilies(void) -{ - // TODO: This memory is leaked: - static tMobFamilyList * AllFamilies = new tMobFamilyList(InitMobFamilyBeforeCx11()); - return *AllFamilies; -} - - - - - -void cMobFamilyCollecter::CollectMob(cMonster& a_Monster) +void cMobFamilyCollecter::CollectMob(cMonster & a_Monster) { cMonster::eFamily MobFamily = a_Monster.GetMobFamily(); m_Mobs[MobFamily].insert(&a_Monster); |