-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAIControl.h
More file actions
33 lines (29 loc) · 745 Bytes
/
Copy pathAIControl.h
File metadata and controls
33 lines (29 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
//#include "GameControl.h"
#include "ActorStateMachine.h"
#include <vector>
#define MOVE_DISTANCE 5
#define KEEP_TRACK_DISTANCE 800
#define BOSS_KEEP_TRACK_DISTANCE 2000
#define ATTACK_DISTANCE 100
#define NPC_MOVE_OFFSET 150
#define GUARD_RATE 40
//class AIControl :
//public GameControl
class AIControl
{
public:
AIControl(ACTORid id);
std::vector<ActorStateMachine *> npcStateMachineList;
ActorStateMachine * bossStateMachine;
AIControl(void);
virtual ~AIControl(void);
int AddNPC(ACTORid ncp, char * ActionFilename);
int AddBossNPC(ACTORid ncp, char * ActionFilename);
void PlayAction(int skip);
void moveTowardLyubu();
private:
ACTORid lyubuId;
//ACTORid boss;
std::vector<ActorStateMachine *> npcDropList;
};