-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.h
38 lines (32 loc) · 914 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
#ifndef DA_GAME_GAME_H
#define DA_GAME_GAME_H
#include <vector>
#include "actor.h"
#include "terminal.h"
#include "game_commands.h"
#include "environment.h"
namespace da_game {
class Game {
public:
Game();
~Game();
void initialize();
static void remove_actor(Actor &);
static void add_actor(Actor &);
static void add_environment(Environment &);
private:
static std::vector<Actor *> * actors;
static std::vector<Environment *> * envs;
void run();
void printStory();
bool playerIsAlive();
bool playerIsAlone();
void save();
void load();
void clear_game();
Terminal terminal;
GameCommands * commands;
static Player * player;
};
}
#endif // DA_GAME_GAME_H