diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-08-30 12:44:54 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-08-30 12:44:54 +0200 |
commit | d7ee2245e89ce9e71f0172d5a0edf605060bcf2a (patch) | |
tree | ce2cacbe53770fd5f9905a6193c423a5da82b362 /src/Mobs/Monster.h | |
parent | Merge branch 'master' into Effects (diff) | |
download | cuberite-d7ee2245e89ce9e71f0172d5a0edf605060bcf2a.tar cuberite-d7ee2245e89ce9e71f0172d5a0edf605060bcf2a.tar.gz cuberite-d7ee2245e89ce9e71f0172d5a0edf605060bcf2a.tar.bz2 cuberite-d7ee2245e89ce9e71f0172d5a0edf605060bcf2a.tar.lz cuberite-d7ee2245e89ce9e71f0172d5a0edf605060bcf2a.tar.xz cuberite-d7ee2245e89ce9e71f0172d5a0edf605060bcf2a.tar.zst cuberite-d7ee2245e89ce9e71f0172d5a0edf605060bcf2a.zip |
Diffstat (limited to 'src/Mobs/Monster.h')
-rw-r--r-- | src/Mobs/Monster.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h index cdbd26c09..6db8435e2 100644 --- a/src/Mobs/Monster.h +++ b/src/Mobs/Monster.h @@ -138,6 +138,9 @@ public: /// Sets whether the mob burns in daylight. Only evaluated at next burn-decision tick void SetBurnsInDaylight(bool a_BurnsInDaylight) { m_BurnsInDaylight = a_BurnsInDaylight; } + double GetWalkSpeed(void) const { return m_WalkSpeed; } // tolua_export + void SetWalkSpeed(double a_WalkSpeed) { m_WalkSpeed = a_WalkSpeed; } // tolua_export + // Overridables to handle ageable mobs virtual bool IsBaby (void) const { return false; } virtual bool IsTame (void) const { return false; } @@ -248,6 +251,8 @@ protected: void HandleDaylightBurning(cChunk & a_Chunk); bool m_BurnsInDaylight; + double m_WalkSpeed; + /** Adds a random number of a_Item between a_Min and a_Max to itemdrops a_Drops*/ void AddRandomDropItem(cItems & a_Drops, unsigned int a_Min, unsigned int a_Max, short a_Item, short a_ItemHealth = 0); |