-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathai.h
50 lines (40 loc) · 1.22 KB
/
ai.h
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef __AI_H__
#define __AI_H__
#include "physics.h"
#include "snotch.h"
#include "animationmgr.h"
#include "timer.h"
#include "window.h"
#include "abilities.h"
using namespace std;
class AI
: public Physics
{
protected:
Point initLoc;
bool facingRight;
bool canJump;
bool wasWalking;
double prevX;
string currentState;
string animationState;
Snotch* snotch;
Abilities* powers;
AnimationMgr* animationMgr;
CurrentStateNode* animationId;
double armor;
public:
AI();
AI(Point, double, double, double);
~AI();
void decreaseHealth( double );
void setArmor( double );
virtual void init() = 0;
virtual void runAI() = 0;
virtual void calcState() = 0;
virtual void draw() = 0;
void adjustSize();
void update();
double health;
};
#endif