|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#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
|
|
|