summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Behaviors/BehaviorItemDropper.h
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-08-29 18:53:06 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-08-29 18:53:06 +0200
commita53d1051d9033a1be708b76b8a50bca6f5d2bbd9 (patch)
tree698439a8455592d4d9cbf6b23835eea5e0ca8a18 /src/Mobs/Behaviors/BehaviorItemDropper.h
parentMerge branch 'master' into mobs2 (diff)
downloadcuberite-a53d1051d9033a1be708b76b8a50bca6f5d2bbd9.tar
cuberite-a53d1051d9033a1be708b76b8a50bca6f5d2bbd9.tar.gz
cuberite-a53d1051d9033a1be708b76b8a50bca6f5d2bbd9.tar.bz2
cuberite-a53d1051d9033a1be708b76b8a50bca6f5d2bbd9.tar.lz
cuberite-a53d1051d9033a1be708b76b8a50bca6f5d2bbd9.tar.xz
cuberite-a53d1051d9033a1be708b76b8a50bca6f5d2bbd9.tar.zst
cuberite-a53d1051d9033a1be708b76b8a50bca6f5d2bbd9.zip
Diffstat (limited to 'src/Mobs/Behaviors/BehaviorItemDropper.h')
-rw-r--r--src/Mobs/Behaviors/BehaviorItemDropper.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/Mobs/Behaviors/BehaviorItemDropper.h b/src/Mobs/Behaviors/BehaviorItemDropper.h
index 8b1378917..320b0c8d8 100644
--- a/src/Mobs/Behaviors/BehaviorItemDropper.h
+++ b/src/Mobs/Behaviors/BehaviorItemDropper.h
@@ -1 +1,15 @@
+#pragma once
+// mobTodo a more generic, not chickenspecific dropper
+#include "Behavior.h"
+
+class cBehaviorItemDropper : cBehavior
+{
+public:
+ void AttachToMonster(cMonster & a_Parent);
+ void PostTick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override;
+
+private:
+ cMonster * m_Parent; // Our Parent
+ int m_EggDropTimer;
+};