added option to read level data from file
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user