summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Horse.h
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-08-29 19:41:42 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-08-29 19:41:42 +0200
commitb0696ca6217bdcc72c22ae11f8993d3d36f1c129 (patch)
tree7be48a4c5d9a81b1a9da49ac98d9bb5d181541fa /src/Mobs/Horse.h
parentImplemented sheep, mooshroom, rabbit, chicken, pig, villager (diff)
downloadcuberite-b0696ca6217bdcc72c22ae11f8993d3d36f1c129.tar
cuberite-b0696ca6217bdcc72c22ae11f8993d3d36f1c129.tar.gz
cuberite-b0696ca6217bdcc72c22ae11f8993d3d36f1c129.tar.bz2
cuberite-b0696ca6217bdcc72c22ae11f8993d3d36f1c129.tar.lz
cuberite-b0696ca6217bdcc72c22ae11f8993d3d36f1c129.tar.xz
cuberite-b0696ca6217bdcc72c22ae11f8993d3d36f1c129.tar.zst
cuberite-b0696ca6217bdcc72c22ae11f8993d3d36f1c129.zip
Diffstat (limited to 'src/Mobs/Horse.h')
-rw-r--r--src/Mobs/Horse.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Mobs/Horse.h b/src/Mobs/Horse.h
index 60e9c5b71..3c5a50671 100644
--- a/src/Mobs/Horse.h
+++ b/src/Mobs/Horse.h
@@ -1,6 +1,10 @@
#pragma once
+#include "Behaviors/BehaviorBreeder.h"
+#include "Behaviors/BehaviorItemFollower.h"
+#include "Behaviors/BehaviorCoward.h"
+#include "Behaviors/BehaviorWanderer.h"
#include "Monster.h"
@@ -39,7 +43,14 @@ public:
a_Items.Add(E_ITEM_GOLDEN_APPLE);
}
+ virtual cBehaviorBreeder * GetBehaviorBreeder() override;
+ virtual const cBehaviorBreeder * GetBehaviorBreeder() const override;
private:
+ // Tick controlling behaviors
+ cBehaviorBreeder m_BehaviorBreeder;
+ cBehaviorItemFollower m_BehaviorItemFollower;
+ cBehaviorCoward m_BehaviorCoward;
+ cBehaviorWanderer m_BehaviorWanderer;
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;