-
Notifications
You must be signed in to change notification settings - Fork 0
/
Game.hpp
44 lines (40 loc) · 887 Bytes
/
Game.hpp
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
/** Program Name: Game.hpp
** Author: Thomas Fattah
** Date: 2019-08-06
** Description: Header file for Game class, which simulates a Game of Earl. #includes Earl class, Space class, and
** all classes derived from Space. Contains data members for an Earl object, Space pointers, and a boolean to continue
** or stop gameplay.
*/
#ifndef GAME_HPP
#define GAME_HPP
#include <iostream>
#include "Earl.hpp"
#include "Space.hpp"
#include "House.hpp"
#include "Street.hpp"
#include "BusStation.hpp"
#include "Bus.hpp"
#include "Mall.hpp"
#include "GasStation.hpp"
#include "TacoTerrace.hpp"
class Game
{
private:
Earl earl;
Space* head;
Space* tail;
Space* tailWest;
Space* current;
bool keepPlaying;
public:
Game();
~Game();
void start();
void displayStats();
void generateWorld();
void move();
void showMap();
void gamePlay();
bool quitMenu();
};
#endif //GAME_HPP