blob: 14dfc1ab0b50c68e00459ad18768d7dc83197ca3 (
plain) (
tree)
|
|
#pragma once
class cBehaviorAggressive;
#include "Behavior.h"
class cPawn;
class cMonster;
class cBehaviorChaser;
/** 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, bool a_HatesPlayer);
// TODO agression toward specific players, and specific mobtypes, etc
// Agression under specific conditions (nighttime, etc)
// Functions our host Monster should invoke:
void PreTick() override;
private:
cPawn * FindNewTarget();
// Our parent
cMonster * m_Parent;
cBehaviorChaser * m_ParentChaser;
// The mob we want to attack
cPawn * m_Target;
};
|