-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGame.hpp
More file actions
46 lines (41 loc) · 1.31 KB
/
Game.hpp
File metadata and controls
46 lines (41 loc) · 1.31 KB
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
/******************************************************************************
**Program Name: Queue. pp
**Author: Long Mach
**Date: 11/04/19
** Description: This is the header file for Game class, including:
- playGame: run the game
- action: to run action that player choose
- result: result from above action
- cont: ask player if she wants to continue the game or not
- check: to check if win or lose.
*******************************************************************************/
#ifndef GAME_hpp
#define GAME_hpp
#include <string>
#include <iomanip>
#include <algorithm>
#include "Queue.hpp"
#include "Player.hpp"
class Game
{
protected:
Queue *newLife;
Player *newPlayer;
int timeTravel; // check if player chose the time travel option or not
int degree; // check if player went to college or not
int career; // check if player started a new carreer or not
int marriage; // check if player married or not
int work; // check if player work or not in this space
int treasureCount;
public:
Game();
~Game();
void playGame();
Space::stat action(int option);
void result(Space::stat newStat);
void print();
int cont();
bool check();
bool checkTreasure(string newTreasure);
};
#endif