-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgame.h
More file actions
50 lines (46 loc) · 1014 Bytes
/
Copy pathgame.h
File metadata and controls
50 lines (46 loc) · 1014 Bytes
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
/*
* Project name: Food collection
* Version 4
* Student : Albert Eduard Merino Pulido
*/
#ifndef game_h
#define game_h
#include "agent.h"
#include "strategies.h"
#include <list>
class Game {
public:
// Constructors
Game();
Game(int, int, float, StrategyType, StrategyType);
// Getters
int getHeight();
int getWidth();
bool isPaused();
void draw();
void drawText(const char *, bool);
void resetGame();
void newGame();
Strategy * getStrategyByType(CellType, StrategyType);
void pauseGame();
void integrate(long);
void integrate(Agent *, long);
void finish();
bool playerWin();
void showGameResults(bool);
void moveAgent(CellType, Direction);
void shoot(CellType);
private:
void newMap();
protected:
int height, width;
Agent * player;
Agent * enemy;
int level;
bool pause;
float seed;
StrategyType strategyTypePlayer;
StrategyType strategyTypeEnemy;
Map * map;
};
#endif // ifndef game_h