summaryrefslogblamecommitdiffstats
path: root/src/Mobs/Components/AIAggressiveComponent.h
blob: d6a76e3d9d7e1b4dcb485e5bf97084c485eca50e (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                  
                                                     
 
                                                                     

                                        
  
#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);
};