summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Behaviors/BehaviorAttackerSuicideBomber.h
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-09-02 00:04:33 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-09-02 00:04:33 +0200
commitabf87d7922ea9fde6720d26a67e2b8460690a3f3 (patch)
treeaf431d7b6879e71243a6ad6c9aefa9f0ec80c1b1 /src/Mobs/Behaviors/BehaviorAttackerSuicideBomber.h
parentLambda merge fix (diff)
downloadcuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar
cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.gz
cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.bz2
cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.lz
cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.xz
cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.tar.zst
cuberite-abf87d7922ea9fde6720d26a67e2b8460690a3f3.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Behaviors/BehaviorAttackerSuicideBomber.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Mobs/Behaviors/BehaviorAttackerSuicideBomber.h b/src/Mobs/Behaviors/BehaviorAttackerSuicideBomber.h
new file mode 100644
index 000000000..dc071e2f4
--- /dev/null
+++ b/src/Mobs/Behaviors/BehaviorAttackerSuicideBomber.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include "BehaviorAttacker.h"
+
+/** Grants the mob that ability to approach a target and then melee attack it.
+Use BehaviorAttackerMelee::SetTarget to attack. */
+class cBehaviorAttackerSuicideBomber : public cBehaviorAttacker
+{
+public:
+ bool StrikeTarget(int a_StrikeTickCnt) override;
+ void OnRightClicked(cPlayer & a_Player) override;
+
+private:
+
+};