28 , parameters_(state_.mp_settings())
29 , initial_(initial ? initial : &state_.get_starting_point())
61 return VGETTEXT(
"$login|’s game", i18n_symbols);
123 ?
initial_cfg()[
"random_start_time"].to_bool(
false)
172 scenario[
"random_start_time"] =
true;
175 scenario[
"random_start_time"] =
false;
188 if(side[
"fog"].empty()) {
192 if(side[
"shroud"].empty()) {
196 if(side[
"village_gold"].empty()) {
200 if(side[
"village_support"].empty()) {
A config object defines a single node in a WML file, with access to child nodes.
bool is_normal_mp_game() const
std::chrono::seconds countdown_turn_bonus()
std::chrono::seconds countdown_init_time()
void set_options(const config &values)
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.
config & get_starting_point()
static bool is_start_ToD(const std::string &)
General settings and defaults for scenarios.
int get_village_support(const std::string &value)
Gets the village unit level support.
int get_turns(const std::string &value)
Gets the number of turns.
int get_xp_modifier(const std::string &value)
Gets the xp modifier.
int get_village_gold(const std::string &value, const game_classification *classification)
Gets the village gold.
std::map< std::string, t_string > string_map
string_enums::enum_base< random_faction_mode_defines > random_faction_mode
static constexpr utils::optional< enum_type > get_enum(const std::string_view value)
Converts a string into its enum equivalent.