summaryrefslogtreecommitdiffstats
path: root/source/Mobs/Monster.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-13 18:26:45 +0200
committermadmaxoft <github@xoft.cz>2013-10-13 18:26:45 +0200
commite62cac07c0d74ded6109b9221045d65223b05c23 (patch)
treea1011589b593aa387a434501b40fb99de0d0a502 /source/Mobs/Monster.h
parentMerge pull request #226 from SamJBarney/master (diff)
parentEight round of fixes (diff)
downloadcuberite-e62cac07c0d74ded6109b9221045d65223b05c23.tar
cuberite-e62cac07c0d74ded6109b9221045d65223b05c23.tar.gz
cuberite-e62cac07c0d74ded6109b9221045d65223b05c23.tar.bz2
cuberite-e62cac07c0d74ded6109b9221045d65223b05c23.tar.lz
cuberite-e62cac07c0d74ded6109b9221045d65223b05c23.tar.xz
cuberite-e62cac07c0d74ded6109b9221045d65223b05c23.tar.zst
cuberite-e62cac07c0d74ded6109b9221045d65223b05c23.zip
Diffstat (limited to 'source/Mobs/Monster.h')
-rw-r--r--source/Mobs/Monster.h6
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