summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Behaviors/BehaviorCoward.h
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2017-08-23 21:31:45 +0200
committerLogicParrot <LogicParrot@users.noreply.github.com>2017-08-23 21:31:45 +0200
commita54cbf40ffa40cd72f20f6491f34e4b2338687dd (patch)
treea0b656e9b890f8268239bea23a12feb8dcaa738b /src/Mobs/Behaviors/BehaviorCoward.h
parentremoved some attack code from Monster (diff)
downloadcuberite-a54cbf40ffa40cd72f20f6491f34e4b2338687dd.tar
cuberite-a54cbf40ffa40cd72f20f6491f34e4b2338687dd.tar.gz
cuberite-a54cbf40ffa40cd72f20f6491f34e4b2338687dd.tar.bz2
cuberite-a54cbf40ffa40cd72f20f6491f34e4b2338687dd.tar.lz
cuberite-a54cbf40ffa40cd72f20f6491f34e4b2338687dd.tar.xz
cuberite-a54cbf40ffa40cd72f20f6491f34e4b2338687dd.tar.zst
cuberite-a54cbf40ffa40cd72f20f6491f34e4b2338687dd.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Behaviors/BehaviorCoward.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Mobs/Behaviors/BehaviorCoward.h b/src/Mobs/Behaviors/BehaviorCoward.h
index ed0ad3ed5..13deece61 100644
--- a/src/Mobs/Behaviors/BehaviorCoward.h
+++ b/src/Mobs/Behaviors/BehaviorCoward.h
@@ -10,14 +10,15 @@ class cItems;
class cEntity;
struct TakeDamageInfo;
-class cBehaviorCoward
+class cBehaviorCoward : cBehavior
{
public:
cBehaviorCoward(cMonster * a_Parent);
// Functions our host Monster should invoke:
- bool Tick();
- void DoTakeDamage(TakeDamageInfo & a_TDI);
+ bool IsControlDesired() override;
+ void Tick() override;
+ void DoTakeDamage(TakeDamageInfo & a_TDI) override;
private: