1
0
cuberite-2a/src/MobFamilyCollecter.cpp

27 lines
446 B
C++
Raw Normal View History

#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "MobFamilyCollecter.h"
#include "Mobs/Monster.h"
void cMobFamilyCollecter::CollectMob(cMonster & a_Monster)
{
cMonster::eFamily MobFamily = a_Monster.GetMobFamily();
m_Mobs[MobFamily].insert(&a_Monster);
}
2013-10-18 14:02:53 -04:00
int cMobFamilyCollecter::GetNumberOfCollectedMobs(cMonster::eFamily a_Family)
{
2014-05-08 14:16:35 -04:00
return (int)m_Mobs[a_Family].size();
}
2013-10-18 14:02:53 -04:00