summaryrefslogtreecommitdiffstats
path: root/source/Mobs/Monster.h
diff options
context:
space:
mode:
authormgueydan <gueydan.mathieuÃ@gmail.com>2013-09-07 20:02:50 +0200
committermgueydan <gueydan.mathieuÃ@gmail.com>2013-09-07 20:02:50 +0200
commit1e02e04d2ce528df037d1ca37314ea55e8806c52 (patch)
tree3013f20a7fe9a418802856a247616c4ab47609fa /source/Mobs/Monster.h
parentAdding Water and Lava as transparency blocks (diff)
downloadcuberite-1e02e04d2ce528df037d1ca37314ea55e8806c52.tar
cuberite-1e02e04d2ce528df037d1ca37314ea55e8806c52.tar.gz
cuberite-1e02e04d2ce528df037d1ca37314ea55e8806c52.tar.bz2
cuberite-1e02e04d2ce528df037d1ca37314ea55e8806c52.tar.lz
cuberite-1e02e04d2ce528df037d1ca37314ea55e8806c52.tar.xz
cuberite-1e02e04d2ce528df037d1ca37314ea55e8806c52.tar.zst
cuberite-1e02e04d2ce528df037d1ca37314ea55e8806c52.zip
Diffstat (limited to 'source/Mobs/Monster.h')
-rw-r--r--source/Mobs/Monster.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/Mobs/Monster.h b/source/Mobs/Monster.h
index 5f33d4450..357e540b3 100644
--- a/source/Mobs/Monster.h
+++ b/source/Mobs/Monster.h
@@ -55,6 +55,15 @@ public:
mtIronGolem = E_META_SPAWN_EGG_IRON_GOLEM,
mtVillager = E_META_SPAWN_EGG_VILLAGER,
} ;
+
+ enum eFamily
+ {
+ mfHostile = 0, // Spider, Zombies ...
+ mfPassive = 1, // Cows, Pigs
+ mfAmbient = 2, // Bats
+ mfWater = 3, // Squid
+ mfMaxplusone = 4, // Nothing
+ } ;
// tolua_end
@@ -81,6 +90,7 @@ public:
virtual bool ReachedDestination(void);
char GetMobType(void) const {return m_MobType; }
+ virtual eFamily GetMobFamily(void) const = 0;
const char * GetState();
void SetState(const AString & str);