32 int val = lexical_cast_default<int>(
value);
38 return lexical_cast_in_range<int>
44 return lexical_cast_in_range<int>(
value, ((classification && !classification->
is_normal_mp_game()) ? 1 : 2), 1, 5);
49 return lexical_cast_in_range<int>(
value, 1, 0, 4);
54 return lexical_cast_in_range<int>(
value, 70, 30, 200);
const int turns_max
maximum number of turns
game_classification * classification
int get_village_gold(const std::string &value, const game_classification *classification)
Gets the village gold.
GLuint const GLfloat * val
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.
GLsizei const GLfloat * value
Templates and utility-routines for strings and numbers.
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
bool is_normal_mp_game() const
int get_turns(const std::string &value)
Gets the number of turns.
GLsizei const GLcharARB ** string