-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.h
68 lines (58 loc) · 1.54 KB
/
game.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
#ifndef GAME_H
#define GAME_H
#include "map.h"
#include "player.h"
#include "state.h"
#include "subject.h"
#include "deckOfTiles.h"
class Game : public Subject
{
public:
~Game();
static Game *getInstance();
Map *getMap();
int getNumOfPlayers();
void setNumOfPlayers(int n);
void createPlayers();
Player *getPlayers();
void setPlayer(int number, string name, string monster, string region, int type);
State getState();
void setState(State);
void Startup();
int getTurn();
string getPlayerName(int);
string getPlayerVP(int);
string getPlayerHealth(int);
string getPlayerEnergy(int);
void decreasePlayerEnergy(int);
void registerStartupRoll(int playerNum, int attacks);
void advanceGame();
int playersInRegion(int regionNumber);
int getRegionNumberFromStr(string s);
void movePlayer(int playerNumber, int regionNumber);
string resolveDice(int diceNum,int numOfDice, int tileNumber);
string attack(int);
bool buyCard(int, int, int, int, int, int);
bool getCards(int, int);
bool isEmptyMainRegion();
int checkGameOver();
void createTiles();
string resolveOuch(int num);
void ouchOnePlayer(int num);
DeckOfTiles *getDeckOfTiles();
//void setUI(Ui::MainWindow *ui);
private:
Game();
static Game *instance;
void increaseTurn();
Map *map;
DeckOfTiles *deckOfTiles;
int numOfPlayers;
Player *players;
int *startupRoll;
State state;
int turn;
int firstTurn;
//Ui::MainWindow *ui;
};
#endif // GAME_H