blob: 338d311e34663c6f1db1f260089cfa7409b3f254 (
plain) (
tree)
|
|
#pragma once
#include "AIComponent.h"
class cAIAgressiveComponent : public cAIComponent {
protected:
cEntity * m_Target;
public:
cAIAgressiveComponent(cMonster * a_Monster) : cAIComponent(a_Monster), m_Target(null){}
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
virtual void InStateChasing(float a_Dt);
virtual void EventSeePlayer(cEntity *);
virtual void Attack(float a_Dt);
protected:
bool IsMovingToTargetPosition();
}
|