added: list of arguments
edit: future framework of main
This commit is contained in:
13
src/game.h
13
src/game.h
@ -4,7 +4,7 @@
|
||||
#include <vector>
|
||||
#include "constants.h"
|
||||
#include "display.h"
|
||||
#include "cursor.h"
|
||||
#include "input.h"
|
||||
#include "rng.h"
|
||||
#include "characters.h"
|
||||
#include "map.h"
|
||||
@ -12,14 +12,17 @@
|
||||
|
||||
class game final {
|
||||
private:
|
||||
display &out;
|
||||
cursor &curse;
|
||||
std::unique_ptr<input> ∈
|
||||
std::unique_ptr<display> &out;
|
||||
std::unique_ptr<logger> &log;
|
||||
feature features;
|
||||
std::unique_ptr<RNG> rng;
|
||||
std::unique_ptr<character> player;
|
||||
std::vector<level> levels;
|
||||
public:
|
||||
game(cursor &new_curse, display &new_display, int argc, char **argv);
|
||||
game(const feature enabled_features,
|
||||
std::unique_ptr<input> &new_in,
|
||||
std::unique_ptr<display> &new_out,
|
||||
std::unique_ptr<logger> &new_log);
|
||||
game_status run();
|
||||
private:
|
||||
int getcmd() const;
|
||||
|
Reference in New Issue
Block a user