diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-10-09 22:02:59 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2013-10-09 22:02:59 +0200 |
commit | fe6fa23a97421af3d02b9faf92b8df2f73abb556 (patch) | |
tree | a080fa2de23b3123dc2d13ab8ee5565c3eac9ad6 /source/Mobs/Monster.h | |
parent | Initial round of fixes (diff) | |
download | cuberite-fe6fa23a97421af3d02b9faf92b8df2f73abb556.tar cuberite-fe6fa23a97421af3d02b9faf92b8df2f73abb556.tar.gz cuberite-fe6fa23a97421af3d02b9faf92b8df2f73abb556.tar.bz2 cuberite-fe6fa23a97421af3d02b9faf92b8df2f73abb556.tar.lz cuberite-fe6fa23a97421af3d02b9faf92b8df2f73abb556.tar.xz cuberite-fe6fa23a97421af3d02b9faf92b8df2f73abb556.tar.zst cuberite-fe6fa23a97421af3d02b9faf92b8df2f73abb556.zip |
Diffstat (limited to 'source/Mobs/Monster.h')
-rw-r--r-- | source/Mobs/Monster.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/Mobs/Monster.h b/source/Mobs/Monster.h index b2676f5b1..d784f2eec 100644 --- a/source/Mobs/Monster.h +++ b/source/Mobs/Monster.h @@ -113,6 +113,11 @@ public: /// Sets whether the mob burns in daylight. Only evaluated at next burn-decision tick void SetBurnsInDaylight(bool a_BurnsInDaylight) { m_BurnsInDaylight = a_BurnsInDaylight; } + + // Overridables to handle ageable mobs + virtual bool IsBaby (void) const { return false; } + virtual bool IsTame (void) const { return false; } + virtual bool IsSitting (void) const { return false; } enum MState{ATTACKING, IDLE, CHASING, ESCAPING} m_EMState; enum MPersonality{PASSIVE,AGGRESSIVE,COWARDLY} m_EMPersonality; @@ -147,6 +152,7 @@ protected: void AddRandomDropItem(cItems & a_Drops, unsigned int a_Min, unsigned int a_Max, short a_Item, short a_ItemHealth = 0); void HandleDaylightBurning(cChunk & a_Chunk); + } ; // tolua_export |