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:
16
src/game.h
16
src/game.h
@ -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;
|
||||
|
Reference in New Issue
Block a user