Cuberite
A lightweight, fast and extensible game server for Minecraft
MobFamilyCollecter.cpp
Go to the documentation of this file.
1 
2 #include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
3 
4 #include "MobFamilyCollecter.h"
5 
6 
7 
8 
9 
11 {
12  cMonster::eFamily MobFamily = a_Monster.GetMobFamily();
13  m_Mobs[MobFamily].insert(&a_Monster);
14 }
15 
16 
17 
18 
19 
21 {
22  return static_cast<int>(m_Mobs[a_Family].size());
23 }
24 
25 
26 
27 
int GetNumberOfCollectedMobs(cMonster::eFamily a_Family)
void CollectMob(cMonster &a_Monster)
std::map< cMonster::eFamily, std::set< cMonster * > > m_Mobs
eFamily GetMobFamily(void) const
Definition: Monster.cpp:1714