added option to read level data from file

This commit is contained in:
2024-07-21 00:42:10 -04:00
parent 25477c2cf8
commit 401b5b00b5
14 changed files with 366 additions and 58 deletions

View File

@ -18,8 +18,10 @@ private:
static const size_t MIN_LEVEL_CNT = 30;
static const size_t DEFAULT_MAX_LEVEL = 5;
static const size_t MAX_MSG_LENGTH = 300;
inline static const float SHADE_SCORE_MUL = 1.5f;
const feature enabled_features;
const std::vector<level_data> &lvls;
input *in;
output *out;
@ -43,7 +45,8 @@ public:
const feature enabled_features,
input *new_in,
output *new_out,
RNG *new_rng);
RNG *new_rng,
const std::vector<level_data> &lvls);
game_result run();
size_t get_curr_level() const;
size_t get_curr_turn() const;
@ -53,6 +56,7 @@ private:
void new_level();
character *move_enemies();
enemy_list sort_enemies(const enemy_list &elist);
std::string str_score() const;
};
#endif