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.h | |
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.h')
-rw-r--r-- | source/Mobs/Monster.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/source/Mobs/Monster.h b/source/Mobs/Monster.h index d784f2eec..be60d9e00 100644 --- a/source/Mobs/Monster.h +++ b/source/Mobs/Monster.h @@ -55,7 +55,17 @@ public: mtWolf = E_META_SPAWN_EGG_WOLF, mtZombie = E_META_SPAWN_EGG_ZOMBIE, mtZombiePigman = E_META_SPAWN_EGG_ZOMBIE_PIGMAN, + mtInvalidType + } ; + + enum eFamily + { + mfHostile = 0, // Spider, Zombies ... + mfPassive = 1, // Cows, Pigs + mfAmbient = 2, // Bats + mfWater = 3, // Squid + mfMaxplusone, // Nothing. Be sure this is the last and the others are in order } ; // tolua_end @@ -82,7 +92,10 @@ public: virtual void MoveToPosition(const Vector3f & a_Position); virtual bool ReachedDestination(void); - char GetMobType(void) const {return m_MobType; } + char GetMobType(void) const {return m_MobType; } // MG TODO : see if we can delete this one. + eType GetMobTypeAsEnum(void) const {return (eType)m_MobType; } // MG TODO : see if we should store m_MobType as enum instead of char. + eFamily GetMobFamily(void) const; + const char * GetState(); void SetState(const AString & str); |