summaryrefslogtreecommitdiffstats
path: root/src/Entities/Compoments/AIAgressiveComponent.h
blob: 338d311e34663c6f1db1f260089cfa7409b3f254 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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();
}