summaryrefslogblamecommitdiffstats
path: root/src/MobFamilyCollecter.cpp
blob: c24ee48f5d5148c658a3e915fb54b2fe84bec0db (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                                              
                                                          




                                                               




                                                                             
 
                                                         
 



 

#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);
}





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