summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Horse.h
diff options
context:
space:
mode:
authorworktycho <work.tycho@gmail.com>2015-12-15 22:53:23 +0100
committerworktycho <work.tycho@gmail.com>2015-12-15 22:53:23 +0100
commit83418e1d7a31e247b0d7892e75e70abc14b9aad8 (patch)
treebd391b7fe84756a5290f0ee0a28ab318a3a47728 /src/Mobs/Horse.h
parentMerge pull request #2750 from cuberite/wrng (diff)
parentallow horse control (still quite buggy) (diff)
downloadcuberite-83418e1d7a31e247b0d7892e75e70abc14b9aad8.tar
cuberite-83418e1d7a31e247b0d7892e75e70abc14b9aad8.tar.gz
cuberite-83418e1d7a31e247b0d7892e75e70abc14b9aad8.tar.bz2
cuberite-83418e1d7a31e247b0d7892e75e70abc14b9aad8.tar.lz
cuberite-83418e1d7a31e247b0d7892e75e70abc14b9aad8.tar.xz
cuberite-83418e1d7a31e247b0d7892e75e70abc14b9aad8.tar.zst
cuberite-83418e1d7a31e247b0d7892e75e70abc14b9aad8.zip
Diffstat (limited to 'src/Mobs/Horse.h')
-rw-r--r--src/Mobs/Horse.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Mobs/Horse.h b/src/Mobs/Horse.h
index 987ab71a9..c87d437c9 100644
--- a/src/Mobs/Horse.h
+++ b/src/Mobs/Horse.h
@@ -18,6 +18,8 @@ public:
CLASS_PROTODEF(cHorse)
virtual void GetDrops(cItems & a_Drops, cEntity * a_Killer = nullptr) override;
+ virtual void InStateIdle(std::chrono::milliseconds a_Dt) override;
+ virtual void HandleSpeedFromAttachee(float a_Forward, float a_Sideways) override;
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
virtual void OnRightClicked(cPlayer & a_Player) override;
@@ -42,6 +44,7 @@ private:
bool m_bHasChest, m_bIsEating, m_bIsRearing, m_bIsMouthOpen, m_bIsTame, m_bIsSaddled;
int m_Type, m_Color, m_Style, m_Armour, m_TimesToTame, m_TameAttemptTimes, m_RearTickCount;
+ float m_Speed;
} ;