-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGhost_types.h
70 lines (65 loc) · 1.42 KB
/
Ghost_types.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#pragma once
#include "PlayerPac.h"
#include "Ghost.h"
#include "Ghost_draw.h"
using namespace std;
class Blinky :public Ghost
{
private:
char color;
Position pos;//we will store pacman's cordinates here so we can use it for finding the distance.
/*int bx;
int by;*/
public:
int bx;
int by;
Blinky(Position pos);
void initVariables();
void scatter_mode();
void chase_mode(Position pos); //agrressive mode for blinky.
char getColor();
int getbx();
int getby();
};
class Pinky : public Ghost
{
private:
char color;
Position pos;//we will store pacman's cordinates here so we can use it for finding the distance.
//Ghost_draw* pink;
public:
Pinky(Position pos);
void scatter_mode();
void chase_mode(Position pos);
char getColor();
int getpx();
int getpy();
//ambus mode for pinky.
};
class Clyde : public Ghost
{
private:
char color;
Position pos;//we will store pacman's cordinates here so we can use it for finding the distance.
//Ghost_draw* cy;
public:
Clyde(Position pos);
char getColor();
void scatter_mode();
void saw_pac(Position pos);
void chase_mode(Position pos); //mode for clyde.
};
class Inky : public Ghost
{
private:
char color;
Position pos;//we will store pacman's cordinates here so we can use it for finding the distance.
//Ghost_draw* in;
char direction;
public:
Inky(Position pos);
void scatter_mode();
void chase_mode(Position pos); //mode for clyde.
char getColor();
//void renderInky();
};