From 978663b725dd2a7b756b4fcecf0453e42ce16b79 Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Wed, 23 Aug 2017 19:08:48 +0300 Subject: d --- src/Mobs/Behaviors/BehaviorAggressive.h | 41 ++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 16 deletions(-) (limited to 'src/Mobs/Behaviors/BehaviorAggressive.h') diff --git a/src/Mobs/Behaviors/BehaviorAggressive.h b/src/Mobs/Behaviors/BehaviorAggressive.h index ca2ad577b..14dfc1ab0 100644 --- a/src/Mobs/Behaviors/BehaviorAggressive.h +++ b/src/Mobs/Behaviors/BehaviorAggressive.h @@ -1,31 +1,40 @@ -// The mob is agressive toward specific mobtypes, or toward the player. -// This Behavior has a dependency on BehaviorChaser. #pragma once + + +class cBehaviorAggressive; + +#include "Behavior.h" + class cPawn; class cMonster; class cBehaviorChaser; -class cBehaviorAggressive + + + + +/** The mob is agressive toward specific mobtypes, or toward the player. +This Behavior has a dependency on BehaviorChaser. */ +class cBehaviorAggressive : public cBehavior { public: - cBehaviorAggressive(cMonster * a_Parent); + cBehaviorAggressive(cMonster * a_Parent); - // cBehaviorAggressive(cMonster * a_Parent, bool a_HatesPlayer); - // TODO agression toward specific players, and specific mobtypes, etc - // Agression under specific conditions (nighttime, etc) + // cBehaviorAggressive(cMonster * a_Parent, bool a_HatesPlayer); + // TODO agression toward specific players, and specific mobtypes, etc + // Agression under specific conditions (nighttime, etc) - // Functions our host Monster should invoke: - bool ActiveTick(); - void Destroyed(); + // Functions our host Monster should invoke: + void PreTick() override; private: - cPawn * FindNewTarget(); + cPawn * FindNewTarget(); - // Our parent - cMonster * m_Parent; - cBehaviorChaser * m_ParentChaser; + // Our parent + cMonster * m_Parent; + cBehaviorChaser * m_ParentChaser; - // The mob we want to attack - cPawn * m_Target; + // The mob we want to attack + cPawn * m_Target; }; -- cgit v1.2.3