summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Behaviors/BehaviorAggressive.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Mobs/Behaviors/BehaviorAggressive.h')
-rw-r--r--src/Mobs/Behaviors/BehaviorAggressive.h41
1 files changed, 25 insertions, 16 deletions
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;
};