17 side_cfg_(state_.get_starting_pos().child_or_empty(
"side"))
20 std::stringstream
msg;
21 msg <<
"Configure Engine: No sides found in scenario, aborting.";
22 std::cerr << msg.str();
23 std::cerr <<
"Full scenario config:\n";
127 return vgettext(
"$login|’s game", i18n_symbols);
215 scenario[
"random_start_time"] =
true;
219 scenario[
"random_start_time"] =
false;
221 scenario[
"experience_modifier"] = params.
xp_modifier;
child_itors child_range(const std::string &key)
std::string random_faction_mode()
std::string get_tagname() const
const mp_game_settings * mp_settings
void set_scenario(config scenario)
static l_noret error(LoadState *S, const char *why)
int get_village_gold(const std::string &value, const game_classification *classification)
Gets the village gold.
GLuint const GLfloat * val
std::string debug() const
int countdown_init_time()
int get_village_support(const std::string &value)
Gets the village unit level support.
bool has_child(const std::string &key) const
Determine whether a config has a child or not.
static game_config_manager * get()
int countdown_turn_bonus()
std::map< std::string, t_string > string_map
General settings and defaults for scenarios.
int mp_countdown_action_bonus
int countdown_reservoir_time()
bool registered_users_only()
config & get_starting_pos()
int mp_countdown_reservoir_time
int mp_countdown_init_time
const config & game_config() const
int get_xp_modifier(const std::string &value)
Gets the xp modifier.
static void msg(const char *act, debug_info &i, const char *to="", const char *result="")
static bool is_start_ToD(const std::string &)
game_classification & classification()
bool is_normal_mp_game() const
int countdown_action_bonus()
int mp_countdown_turn_bonus
A config object defines a single node in a WML file, with access to child nodes.
mp_game_settings & mp_settings()
Multiplayer parameters for this game.
bool registered_users_only
int get_turns(const std::string &value)
Gets the number of turns.
GLsizei const GLcharARB ** string