File size: 1,163 Bytes
0ef7a64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/*

Name:Wong Pui Shan

Sdutent ID:52611804

program: AScISD

Name: HAR Chiu Kwong Samson

Sdutent ID:52629360

program: AScISD

Name: LAM Cheuk Man 

Sdutent ID:52621140

program: AScISD

Name:KO Jeffrey KO

Sdutent ID:525 695 30

program: AScISD



*/
#ifndef GHOST_H
#define GHOST_H
#include "Ghost.h"
#include "Utilities.h"
#include "Maze.h"
#include "Pacman.h"
#include "Game.h"
#include <iostream>
#include <climits>
#include <ctime>
using namespace std;
class Ghost{
private:
	int ax;
	int ay;
	int direction;
	int d;
	string g;
	int OrgX;
	int OrgY;
	int limit;
	int speed;
	int reduceLimit;
public:
	Ghost();
	Ghost(int ax, int ay, string GhostG);
	void increaseSpeed(int &dot);
	~Ghost();
	void ChangePosition();
	void Ghost::showGhost(Utilities a);
	void Move(Maze &m, Utilities a);
	void slowMove(Maze &m, Utilities a);
	void EatPacman(Pacman &p, Game &g, Utilities &a, Utilities &u,Utilities &j, Utilities &k, Utilities &l, Ghost &o, Ghost &m, Ghost &n);
	void ResetGhost(Utilities &a);
	void ResetLocation();
	void RechangePosition();
	int GetGhostX();
	int GetGhostY();
	string GetGhostMember();
};
#endif