added a few more pieces to the framework, overhauled main.cc
This commit is contained in:
11
src/game.h
11
src/game.h
@ -3,21 +3,22 @@
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include "constants.h"
|
||||
#include "display.h"
|
||||
#include "rng.h"
|
||||
#include "spell.h" // this is for ncurses
|
||||
#include "characters.h"
|
||||
#include "map.h"
|
||||
#include "log.h"
|
||||
|
||||
class game final {
|
||||
private:
|
||||
display &d;
|
||||
feature features;
|
||||
std::unique_ptr<RNG> rng;
|
||||
std::unique_ptr<spell> spell;
|
||||
std::unique_ptr<character> player;
|
||||
std::vector<game_map> levels;
|
||||
std::vector<level> levels;
|
||||
public:
|
||||
game(int argc = 0, char **argv = nullptr);
|
||||
void run();
|
||||
game(display &new_display, int argc, char **argv);
|
||||
game_status run();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user