summaryrefslogtreecommitdiffstats
path: root/src/MobFamilyCollecter.cpp
blob: 7b12e3faf32a622c16685c66e857dff77aa6cef9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

#include "Globals.h"  // NOTE: MSVC stupidness requires this to be the same across all modules

#include "MobFamilyCollecter.h"





void cMobFamilyCollecter::CollectMob(cMonster & a_Monster)
{
	cMonster::eFamily MobFamily = a_Monster.GetMobFamily();
	m_Mobs[MobFamily].insert(&a_Monster);
}





int cMobFamilyCollecter::GetNumberOfCollectedMobs(cMonster::eFamily a_Family)
{
	return static_cast<int>(m_Mobs[a_Family].size());
}