summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Behaviors/BehaviorItemFollower.h
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-08-22 12:23:03 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-08-22 19:55:30 +0200
commit80d9c26c12a5be619a757d0251525664bf7065a6 (patch)
tree66d4f553ae12fd90dd94ffde9b85f595319ba5cb /src/Mobs/Behaviors/BehaviorItemFollower.h
parentAdded check in cEntity::TickBurning for whether the entity is planning to change worlds. (#3943) (diff)
downloadcuberite-80d9c26c12a5be619a757d0251525664bf7065a6.tar
cuberite-80d9c26c12a5be619a757d0251525664bf7065a6.tar.gz
cuberite-80d9c26c12a5be619a757d0251525664bf7065a6.tar.bz2
cuberite-80d9c26c12a5be619a757d0251525664bf7065a6.tar.lz
cuberite-80d9c26c12a5be619a757d0251525664bf7065a6.tar.xz
cuberite-80d9c26c12a5be619a757d0251525664bf7065a6.tar.zst
cuberite-80d9c26c12a5be619a757d0251525664bf7065a6.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Behaviors/BehaviorItemFollower.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/Mobs/Behaviors/BehaviorItemFollower.h b/src/Mobs/Behaviors/BehaviorItemFollower.h
new file mode 100644
index 000000000..ed47dab04
--- /dev/null
+++ b/src/Mobs/Behaviors/BehaviorItemFollower.h
@@ -0,0 +1,29 @@
+#pragma once
+
+// Makes the mob follow specific held items
+
+class cBehaviorItemFollower;
+class iBehaviorItemFollower;
+
+//fwds
+class cMonster;
+class cItems;
+
+
+
+
+
+class cBehaviorItemFollower
+{
+public:
+ cBehaviorItemFollower(iBehaviorItemFollower * a_Parent);
+
+ // Functions our host Monster should invoke:
+ bool ActiveTick();
+
+
+private:
+ /** Our parent */
+ iBehaviorItemFollower * m_ParentInterface;
+ cMonster * m_Parent;
+};