diff options
author | mgueydan <gueydan.mathieuÃ@gmail.com> | 2013-09-10 15:09:45 +0200 |
---|---|---|
committer | mgueydan <gueydan.mathieuÃ@gmail.com> | 2013-09-10 15:09:45 +0200 |
commit | f12ac6b995f46acf76e61e7f83273ebfc18c090f (patch) | |
tree | 856f6fe8f642415e18afead84f5e4cdad051b5c9 /source/Mobs/Monster.cpp | |
parent | Changing Bat to AMbiant creature (diff) | |
download | cuberite-f12ac6b995f46acf76e61e7f83273ebfc18c090f.tar cuberite-f12ac6b995f46acf76e61e7f83273ebfc18c090f.tar.gz cuberite-f12ac6b995f46acf76e61e7f83273ebfc18c090f.tar.bz2 cuberite-f12ac6b995f46acf76e61e7f83273ebfc18c090f.tar.lz cuberite-f12ac6b995f46acf76e61e7f83273ebfc18c090f.tar.xz cuberite-f12ac6b995f46acf76e61e7f83273ebfc18c090f.tar.zst cuberite-f12ac6b995f46acf76e61e7f83273ebfc18c090f.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Mobs/Monster.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/Mobs/Monster.cpp b/source/Mobs/Monster.cpp index a42ae30ee..b378b2bc6 100644 --- a/source/Mobs/Monster.cpp +++ b/source/Mobs/Monster.cpp @@ -9,6 +9,7 @@ #include "../Entities/Player.h" #include "../Defines.h" #include "../MonsterConfig.h" +#include "../MobTypesManager.h" #include "../MersenneTwister.h" #include "../Vector3f.h" @@ -17,6 +18,7 @@ #include "../Tracer.h" #include "../Chunk.h" + // #include "../../iniFile/iniFile.h" @@ -510,3 +512,7 @@ void cMonster::HandleDaylightBurning(cChunk & a_Chunk) +cMonster::eFamily cMonster::GetMobFamily(void) const +{ + return cMobTypesManager::getFamilyFromType(GetMobTypeAsEnum()); +} |