-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.hpp
53 lines (44 loc) · 1.08 KB
/
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
45
46
47
48
49
50
51
/*********************************************************************
** Author: Jose Cisneros
** Date: 3/21/2017
** Description: game.hpp is the Game class interface file.
*********************************************************************/
#ifndef GAME_HPP
#define GAME_HPP
#include <vector>
#include "space.hpp"
#include "shipgateroom.hpp"
#include "basegateroom.hpp"
#include "shipresearchroom.hpp"
#include "shipbridge.hpp"
#include "shipengineeringroom.hpp"
#include "shipobservationroom.hpp"
// Defines the interface of the Game class
class Game
{
private:
// Player values
int playerHealth;
vector<string> inventory;
Space* currentLocation;
// Ship values
int energy;
int oxygenLevel;
// Spaces
Space* baseGateRoom;
Space* shipGateRoom;
Space* shipResearchRoom;
Space* shipEngineeringRoom;
Space* shipObservationRoom;
Space* shipBridge;
// Helper functions
bool gameOver;
void updateGameState();
void getInventory();
public:
Game();
~Game();
void menu();
void runGame();
};
#endif