34 int val = lexical_cast_default<int>(value);
50 return lexical_cast_default<int>(value, 1);
55 return lexical_cast_default<int>(value, 70);
87 return VGETTEXT(
"$login|’s game", i18n_symbols);
bool is_normal_mp_game() const
level & current_level() const
const config & data() const
std::chrono::seconds countdown_turn_bonus()
std::chrono::seconds countdown_init_time()
std::chrono::seconds countdown_action_bonus()
std::chrono::seconds countdown_reservoir_time()
game_classification & classification()
mp_game_settings & mp_settings()
Multiplayer parameters for this game.
New lexcical_cast header.
General settings and defaults for scenarios.
game_classification * classification
Contains the general settings which have a default.
bool force_lock_settings(ng::create_engine &create)
random_faction_mode::type random_faction_mode_default()
bool shuffle_sides_default()
bool shroud_game_default(ng::create_engine &create)
int village_support_default(ng::create_engine &create)
std::chrono::seconds mp_countdown_action_bonus_default()
int village_gold_default(ng::create_engine &create)
const int turns_min
minimum number of turns
int get_village_support(const std::string &value)
Gets the village unit level support.
bool allow_observers_default()
int get_turns(const std::string &value)
Gets the number of turns.
std::chrono::seconds mp_countdown_reservoir_time_default()
std::chrono::seconds mp_countdown_turn_bonus_default()
int num_turns_default(ng::create_engine &create)
bool mp_countdown_default()
bool use_map_settings_default(ng::create_engine &create)
std::string game_name_default()
int get_xp_modifier(const std::string &value)
Gets the xp modifier.
const int turns_max
maximum number of turns
const int turns_default
default number of turns
std::chrono::seconds mp_countdown_init_time_default()
bool fog_game_default(ng::create_engine &create)
bool random_start_time_default(ng::create_engine &create)
int xp_modifier_default(ng::create_engine &create)
int get_village_gold(const std::string &value, const game_classification *classification)
Gets the village gold.
void set_default_values(ng::create_engine &create)
std::map< std::string, t_string > string_map
string_enums::enum_base< random_faction_mode_defines > random_faction_mode
random_faction_mode::type mode
std::chrono::seconds mp_countdown_reservoir_time
std::chrono::seconds mp_countdown_action_bonus
std::chrono::seconds mp_countdown_init_time
static constexpr utils::optional< enum_type > get_enum(const std::string_view value)
Converts a string into its enum equivalent.