2013-09-07 16:19:56 -04:00
|
|
|
|
|
|
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
|
|
|
|
|
|
|
#include "MobFamilyCollecter.h"
|
|
|
|
#include "Mobs/Monster.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-10-20 08:16:21 -04:00
|
|
|
void cMobFamilyCollecter::CollectMob(cMonster & a_Monster)
|
2013-09-07 16:19:56 -04:00
|
|
|
{
|
|
|
|
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)
|
2013-09-07 16:19:56 -04:00
|
|
|
{
|
2014-05-08 14:16:35 -04:00
|
|
|
return (int)m_Mobs[a_Family].size();
|
2013-09-07 16:19:56 -04:00
|
|
|
}
|
2013-10-18 14:02:53 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|