changed unique_ptr access to using raw pointers to denote non-ownership

added new flag -e for extra stuff (potions/races)
IMPORTANT: main.cc is undergoing rework
This commit is contained in:
2024-07-12 09:58:30 -04:00
parent b3300b8e7c
commit c9e96b5e6e
8 changed files with 26 additions and 22 deletions

View File

@ -13,19 +13,19 @@
class game final {
private:
feature features;
input ∈
display &out;
logger &log;
RNG &rng;
input *in;
display *out;
logger *log;
RNG *rng;
// IMPORTANT: during player generation,
std::unique_ptr<character> player;
public:
game(const feature enabled_features,
input &new_in,
display &new_out,
logger &new_log,
RNG &new_rng);
input *new_in,
display *new_out,
logger *new_log,
RNG *new_rng);
game_status run();
private:
int getcmd() const;