-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGame.h
More file actions
38 lines (28 loc) · 789 Bytes
/
Game.h
File metadata and controls
38 lines (28 loc) · 789 Bytes
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
#ifndef GAME_H
#define GAME_H
#include <memory>
#include "Room.h"
#include "Player.h"
class Game {
Room *entryRoom;
string configuration_file;
vector<Room*> rooms;
int roomCounter;
unique_ptr<Player> playerEntity;
public:
//constructors
Game();
Game(const string PlayerFirstChar, const string& configurationFile, int amountOfLife, int damage);
//destructor
~Game();
//delete all method
void cleanAndClear();
void addRoomToArray(Room *room);
Room *getRoomByID(const string& roomID) const;
//parse methods
void parseFile(const string& configurationFile);
void parseLine(const string& line);
void initializer();//Game initializer
void run();//execute method
};
#endif