added a few more pieces to the framework, overhauled main.cc

This commit is contained in:
2024-07-03 11:08:55 -04:00
parent 97ff14cd26
commit 6cbeb42144
17 changed files with 416 additions and 61 deletions

View File

@ -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