summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Components/AIAggressiveComponent.h
blob: 473a6d00d8a285ec946784623a3a0beb5e9c15cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once
#include "AIComponent.h"

class cAIAggressiveComponent : public cAIComponent {
	typedef cAIComponent super;
protected:
	enum MState{ATTACKING, IDLE, CHASING, ESCAPING} m_EMState;
	cEntity * m_Target;
public:
	cAIAggressiveComponent(cMonster * a_Monster);

	virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
	
	virtual void Attack(float a_Dt);
};