diff options
author | Mattes D <github@xoft.cz> | 2013-10-18 12:41:43 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2013-10-18 12:41:43 +0200 |
commit | 8bba2b02a132d236703835d93ab18e09e0ea7230 (patch) | |
tree | e637945c6eb845e82c4f2790c07c6fd82a1f79ef /source/Mobs/Monster.cpp | |
parent | APIDump: Renamed output for helper stuff. (diff) | |
parent | Removed reading default values from settings.ini for worlds. (diff) | |
download | cuberite-8bba2b02a132d236703835d93ab18e09e0ea7230.tar cuberite-8bba2b02a132d236703835d93ab18e09e0ea7230.tar.gz cuberite-8bba2b02a132d236703835d93ab18e09e0ea7230.tar.bz2 cuberite-8bba2b02a132d236703835d93ab18e09e0ea7230.tar.lz cuberite-8bba2b02a132d236703835d93ab18e09e0ea7230.tar.xz cuberite-8bba2b02a132d236703835d93ab18e09e0ea7230.tar.zst cuberite-8bba2b02a132d236703835d93ab18e09e0ea7230.zip |
Diffstat (limited to 'source/Mobs/Monster.cpp')
-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 334229a42..51ea644d3 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()); +} |