blob: 73c0f972e2dac8553edd0f80be484642b53b154e (
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(cNewMonster * a_Monster);
virtual void Tick(float a_Dt, cChunk & a_Chunk) override;
virtual void Attack(float a_Dt);
};
|