diff options
author | Angus <anguslmm@gmail.com> | 2024-11-10 12:28:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-10 12:28:39 +0100 |
commit | 5e258c6d95a22664e1f9bfa8e778e007e69b4ef2 (patch) | |
tree | ea9e9a5dbc28af2607223cba64e5762d80c7669b /src/Mobs/Monster.h | |
parent | Fix Block Entity Placement in Generation (#5060) (diff) | |
download | cuberite-5e258c6d95a22664e1f9bfa8e778e007e69b4ef2.tar cuberite-5e258c6d95a22664e1f9bfa8e778e007e69b4ef2.tar.gz cuberite-5e258c6d95a22664e1f9bfa8e778e007e69b4ef2.tar.bz2 cuberite-5e258c6d95a22664e1f9bfa8e778e007e69b4ef2.tar.lz cuberite-5e258c6d95a22664e1f9bfa8e778e007e69b4ef2.tar.xz cuberite-5e258c6d95a22664e1f9bfa8e778e007e69b4ef2.tar.zst cuberite-5e258c6d95a22664e1f9bfa8e778e007e69b4ef2.zip |
Diffstat (limited to 'src/Mobs/Monster.h')
-rw-r--r-- | src/Mobs/Monster.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h index 0127ec4ce..24a1d189f 100644 --- a/src/Mobs/Monster.h +++ b/src/Mobs/Monster.h @@ -146,7 +146,10 @@ public: bool BurnsInDaylight() const { return m_BurnsInDaylight; } // tolua_export double GetRelativeWalkSpeed(void) const { return m_RelativeWalkSpeed; } // tolua_export - void SetRelativeWalkSpeed(double a_WalkSpeed) { m_RelativeWalkSpeed = a_WalkSpeed; } // tolua_export + void SetRelativeWalkSpeed(double a_Speed) { m_RelativeWalkSpeed = a_Speed; } // tolua_export + + void SetBaseWalkSpeed(double a_Speed) { m_BaseWalkSpeed = a_Speed; } + void SetBaseRunSpeed(double a_Speed) { m_BaseRunSpeed = a_Speed; } // Overridables to handle ageable mobs virtual bool IsTame (void) const { return false; } @@ -326,6 +329,8 @@ protected: bool WouldBurnAt(Vector3d a_Location, cChunk & a_Chunk); bool m_BurnsInDaylight; double m_RelativeWalkSpeed; + double m_BaseWalkSpeed; + double m_BaseRunSpeed; int m_AmbientSoundTimer; |