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

27 lines
459 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)
{
2015-05-24 07:56:56 -04:00
return static_cast<int>(m_Mobs[a_Family].size());
}
2013-10-18 14:02:53 -04:00