summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Behaviors/BehaviorDoNothing.h
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-08-29 20:06:16 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-08-29 20:06:16 +0200
commit186321d3c780e9b1937c9fb387993f7e5cd9b9b0 (patch)
tree75c8e37bc3d4aff7f66de84042648dd51efd444f /src/Mobs/Behaviors/BehaviorDoNothing.h
parentHorse (diff)
downloadcuberite-186321d3c780e9b1937c9fb387993f7e5cd9b9b0.tar
cuberite-186321d3c780e9b1937c9fb387993f7e5cd9b9b0.tar.gz
cuberite-186321d3c780e9b1937c9fb387993f7e5cd9b9b0.tar.bz2
cuberite-186321d3c780e9b1937c9fb387993f7e5cd9b9b0.tar.lz
cuberite-186321d3c780e9b1937c9fb387993f7e5cd9b9b0.tar.xz
cuberite-186321d3c780e9b1937c9fb387993f7e5cd9b9b0.tar.zst
cuberite-186321d3c780e9b1937c9fb387993f7e5cd9b9b0.zip
Diffstat (limited to 'src/Mobs/Behaviors/BehaviorDoNothing.h')
-rw-r--r--src/Mobs/Behaviors/BehaviorDoNothing.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Mobs/Behaviors/BehaviorDoNothing.h b/src/Mobs/Behaviors/BehaviorDoNothing.h
new file mode 100644
index 000000000..52c0c7c08
--- /dev/null
+++ b/src/Mobs/Behaviors/BehaviorDoNothing.h
@@ -0,0 +1,19 @@
+#pragma once
+
+// Always takes control of the tick and does nothing. Used for unimplemented mobs like squids.
+
+class cBehaviorDoNothing;
+
+#include "Behavior.h"
+
+class cBehaviorDoNothing : public cBehavior
+{
+public:
+ void AttachToMonster(cMonster & a_Parent);
+ bool IsControlDesired(std::chrono::milliseconds a_Dt, cChunk & a_Chunk);
+ void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk);
+
+private:
+ /** Our parent */
+ cMonster * m_Parent;
+};