diff options
Diffstat (limited to 'src/Mobs/Behaviors/BehaviorChaser.h')
-rw-r--r-- | src/Mobs/Behaviors/BehaviorChaser.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/Mobs/Behaviors/BehaviorChaser.h b/src/Mobs/Behaviors/BehaviorChaser.h index fff5ebfa3..e924a9db3 100644 --- a/src/Mobs/Behaviors/BehaviorChaser.h +++ b/src/Mobs/Behaviors/BehaviorChaser.h @@ -1,12 +1,15 @@ - #pragma once +class cBehaviorChaser; + +#include "Behavior.h" + class cMonster; class cPawn; class cBehaviorStriker; -/** Grants attack capability to the mob. Note that this is not the same as agression! +/** Grants chase capability to the mob. Note that this is not the same as agression! The mob may possess this trait and not attack anyone or only attack when provoked. Unlike most traits, this one has several forms, and therefore it is an abstract type You should use one of its derived classes, and you cannot use it directly. */ @@ -17,9 +20,9 @@ public: cBehaviorChaser(cMonster * a_Parent); // Functions our host Monster should invoke: - bool ActiveTick(); - void Destroyed(); - void Tick(); + bool Tick() override; + void Destroyed() override; + void PostTick() override; // Our host monster will call these once it loads its config file void SetAttackRate(float a_AttackRate); @@ -34,12 +37,12 @@ public: virtual ~cBehaviorChaser(); protected: - virtual void ApproachTarget() = 0; + void ApproachTarget(); + // virtual void ApproachTarget() = 0; private: /** Our parent */ cMonster * m_Parent; - cBehaviorStriker * m_StrikeBehavior; // The mob we want to attack cPawn * m_Target; |