|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef GAME_H
|
|
#define GAME_H
|
|
|
|
#include<iostream>
|
|
#include "Utilities.h"
|
|
#include "Maze.h"
|
|
using namespace std;
|
|
class Game
|
|
{
|
|
private:
|
|
int level;
|
|
int life;
|
|
int point;
|
|
int addLife;
|
|
bool loopGame;
|
|
bool replay;
|
|
|
|
public:
|
|
Game();
|
|
void setPoint(int x);
|
|
int getPoint();
|
|
void print1();
|
|
void print2();
|
|
void Move(Maze m,Utilities u);
|
|
friend class Ghost;
|
|
int GetLife();
|
|
void setLife();
|
|
void extraLife();
|
|
bool getLoopGameBool();
|
|
void setLoopGameBool(bool temp);
|
|
void checkForUpLevel(Maze &m);
|
|
void setGameLevel();
|
|
int getGameLevel();
|
|
void setReplayBool(bool temp);
|
|
bool getReplayBool();
|
|
void gameReset();
|
|
};
|
|
#endif |