-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.h
40 lines (37 loc) · 793 Bytes
/
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
#ifndef game_h
#define game_h
#include "board.h"
#include "player.h"
#include <fstream>
#include <iostream>
#include <cstdlib>
#include <sstream>
#include <string>
#include <vector>
class Game {
Board b;
Player p[4];
int curTurn;
bool loadDice;
void setBoard(const char *);
void loadGame(const char *);
void genRes();
std::string num2name(int);
int name2num(std::string);
void invalidCommand();
int gameBeginPrompt(int);
int rollDice(int);
void moveGeese(int);
void getRes(int);
void helpPrinting();
void attemptAchieve();
void attemptComplete();
void attemptImprove();
void attemptTrade();
void saveGame(std::string);
public:
Game();
~Game();
void start(int, const char *);
};
#endif /* game_h */