31 int val = lexical_cast_default<int>(value);
42 return std::clamp<int>(lexical_cast_default<int>(value, ((classification && !classification->
is_normal_mp_game()) ? 1 : 2)), 1, 5);
47 return std::clamp<int>(lexical_cast_default<int>(value, 1), 0, 4);
52 return std::clamp<int>(lexical_cast_default<int>(value, 70), 30, 200);
const int turns_max
maximum number of turns
game_classification * classification
New lexcical_cast header.
bool is_normal_mp_game() const
int get_village_gold(const std::string &value, const game_classification *classification)
Gets the village gold.
const int turns_default
default number of turns
int get_village_support(const std::string &value)
Gets the village unit level support.
General settings and defaults for scenarios.
Contains the general settings which have a default.
int get_xp_modifier(const std::string &value)
Gets the xp modifier.
const int turns_min
minimum number of turns
int get_turns(const std::string &value)
Gets the number of turns.