#include <mp_game_settings.hpp>
Classes | |
struct | addon_version_info |
Public Member Functions | |
mp_game_settings () | |
mp_game_settings (const config &cfg) | |
config | to_config () const |
MAKE_ENUM (RANDOM_FACTION_MODE,(DEFAULT, N_("Independent"))(NO_MIRROR, N_("No Mirror"))(NO_ALLY_MIRROR, N_("No Ally Mirror"))) RANDOM_FACTION_MODE random_faction_mode | |
void | update_addon_requirements (const config &addon_cfg) |
Public Attributes | |
std::string | name |
std::string | password |
std::string | hash |
std::string | mp_era |
std::string | mp_scenario |
std::string | mp_scenario_name |
std::string | mp_campaign |
std::vector< std::string > | active_mods |
std::map< std::string, std::string > | side_users |
bool | show_connect |
int | num_turns |
int | village_gold |
int | village_support |
int | xp_modifier |
int | mp_countdown_init_time |
int | mp_countdown_reservoir_time |
int | mp_countdown_turn_bonus |
int | mp_countdown_action_bonus |
bool | mp_countdown |
bool | use_map_settings |
bool | random_start_time |
bool | fog_game |
bool | shroud_game |
bool | allow_observers |
bool | registered_users_only |
bool | shuffle_sides |
bool | saved_game |
config | options |
std::map< std::string, addon_version_info > | addons |
Definition at line 27 of file mp_game_settings.hpp.
mp_game_settings::mp_game_settings | ( | ) |
Definition at line 31 of file mp_game_settings.cpp.
mp_game_settings::mp_game_settings | ( | const config & | cfg | ) |
Definition at line 64 of file mp_game_settings.cpp.
References addons, and config::child_range().
mp_game_settings::MAKE_ENUM | ( | RANDOM_FACTION_MODE | , |
(DEFAULT, N_("Independent"))(NO_MIRROR, N_("No Mirror"))(NO_ALLY_MIRROR, N_("No Ally Mirror")) | |||
) |
config mp_game_settings::to_config | ( | ) | const |
Definition at line 103 of file mp_game_settings.cpp.
References active_mods, config::add_child(), addons, allow_observers, fog_game, hash, utils::join(), utils::join_map(), mp_campaign, mp_countdown, mp_countdown_action_bonus, mp_countdown_init_time, mp_countdown_reservoir_time, mp_countdown_turn_bonus, mp_era, mp_scenario, mp_scenario_name, name, num_turns, options, preferences::random_faction_mode(), random_start_time, registered_users_only, saved_game, show_connect, shroud_game, shuffle_sides, side_users, use_map_settings, village_gold, village_support, and xp_modifier.
Referenced by game_lua_kernel::impl_game_config_get(), saved_game::to_config(), and saved_game::write_general_info().
Definition at line 167 of file mp_game_settings.cpp.
References addons, config::debug(), mp_game_settings::addon_version_info::min_version, mp_game_settings::addon_version_info::version, and WRN_NG.
Referenced by saved_game::expand_scenario(), and saved_game::load_mod().
std::vector<std::string> mp_game_settings::active_mods |
Definition at line 43 of file mp_game_settings.hpp.
Referenced by ng::create_engine::active_mods(), mp::configure::configure(), ng::create_engine::create_engine(), saved_game::expand_mp_events(), saved_game::expand_mp_options(), ng::create_engine::init_active_mods(), mp::initial_level_config(), to_config(), and ng::create_engine::toggle_current_mod().
std::map<std::string, addon_version_info> mp_game_settings::addons |
Definition at line 85 of file mp_game_settings.hpp.
Referenced by mp_game_settings(), to_config(), and update_addon_requirements().
bool mp_game_settings::allow_observers |
Definition at line 61 of file mp_game_settings.hpp.
Referenced by ng::configure_engine::allow_observers(), ng::configure_engine::set_allow_observers(), and to_config().
bool mp_game_settings::fog_game |
Definition at line 59 of file mp_game_settings.hpp.
Referenced by ng::configure_engine::fog_game(), ng::configure_engine::set_fog_game(), to_config(), and ng::configure_engine::write_parameters().
std::string mp_game_settings::hash |
Definition at line 38 of file mp_game_settings.hpp.
Referenced by saved_game::expand_scenario(), ng::create_engine::prepare_for_other(), ng::configure_engine::set_scenario(), and to_config().
std::string mp_game_settings::mp_campaign |
Definition at line 42 of file mp_game_settings.hpp.
Referenced by to_config().
bool mp_game_settings::mp_countdown |
Definition at line 56 of file mp_game_settings.hpp.
Referenced by playmp_controller::after_human_turn(), play_controller::init(), ng::configure_engine::mp_countdown(), playmp_controller::play_human_turn(), ng::configure_engine::set_mp_countdown(), play_controller::start_game(), and to_config().
int mp_game_settings::mp_countdown_action_bonus |
Definition at line 55 of file mp_game_settings.hpp.
Referenced by playmp_controller::after_human_turn(), ng::configure_engine::mp_countdown_action_bonus(), ng::configure_engine::set_mp_countdown_action_bonus(), and to_config().
int mp_game_settings::mp_countdown_init_time |
Definition at line 52 of file mp_game_settings.hpp.
Referenced by ng::configure_engine::mp_countdown_init_time(), ng::configure_engine::set_mp_countdown_init_time(), play_controller::start_game(), and to_config().
int mp_game_settings::mp_countdown_reservoir_time |
Definition at line 53 of file mp_game_settings.hpp.
Referenced by playmp_controller::after_human_turn(), ng::configure_engine::mp_countdown_reservoir_time(), ng::configure_engine::set_mp_countdown_reservoir_time(), and to_config().
int mp_game_settings::mp_countdown_turn_bonus |
Definition at line 54 of file mp_game_settings.hpp.
Referenced by playmp_controller::after_human_turn(), ng::configure_engine::mp_countdown_turn_bonus(), ng::configure_engine::set_mp_countdown_turn_bonus(), and to_config().
std::string mp_game_settings::mp_era |
Definition at line 39 of file mp_game_settings.hpp.
Referenced by mp::configure::configure(), saved_game::expand_mp_events(), saved_game::expand_mp_options(), ng::create_engine::get_parameters(), game_lua_kernel::impl_game_config_get(), mp::initial_level_config(), game_launcher::play_test(), game_launcher::set_tutorial(), mp::start_local_game_commandline(), and to_config().
std::string mp_game_settings::mp_scenario |
Definition at line 40 of file mp_game_settings.hpp.
Referenced by events::console_handler::do_choose_level(), and to_config().
std::string mp_game_settings::mp_scenario_name |
Definition at line 41 of file mp_game_settings.hpp.
Referenced by to_config().
std::string mp_game_settings::name |
Definition at line 36 of file mp_game_settings.hpp.
Referenced by sp::enter_connect_mode(), enter_connect_mode(), ng::configure_engine::game_name(), campaign_controller::play_game(), ng::create_engine::prepare_for_saved_game(), ng::connect_engine::send_level_data(), ng::configure_engine::set_game_name(), mp::start_local_game_commandline(), and to_config().
int mp_game_settings::num_turns |
Definition at line 48 of file mp_game_settings.hpp.
Referenced by ng::configure_engine::num_turns(), campaign_controller::play_game(), ng::configure_engine::set_num_turns(), mp::start_local_game_commandline(), to_config(), and ng::configure_engine::write_parameters().
config mp_game_settings::options |
Definition at line 75 of file mp_game_settings.hpp.
Referenced by ng::configure_engine::options(), ng::configure_engine::set_options(), and to_config().
std::string mp_game_settings::password |
Definition at line 37 of file mp_game_settings.hpp.
Referenced by mp::configure::process_event_impl(), and ng::connect_engine::send_level_data().
bool mp_game_settings::random_start_time |
Definition at line 58 of file mp_game_settings.hpp.
Referenced by ng::configure_engine::random_start_time(), ng::configure_engine::set_random_start_time(), to_config(), and ng::configure_engine::write_parameters().
bool mp_game_settings::registered_users_only |
Definition at line 62 of file mp_game_settings.hpp.
Referenced by ng::configure_engine::registered_users_only(), ng::configure_engine::set_registered_users_only(), and to_config().
bool mp_game_settings::saved_game |
Definition at line 65 of file mp_game_settings.hpp.
Referenced by ng::connect_engine::connect_engine(), ng::create_engine::create_engine(), mp::initial_level_config(), ng::side_engine::new_config(), campaign_controller::play_game(), ng::create_engine::prepare_for_saved_game(), ng::side_engine::reset(), ng::side_engine::resolve_random(), mp::connect::side::side(), ng::side_engine::side_engine(), and to_config().
bool mp_game_settings::show_connect |
Definition at line 46 of file mp_game_settings.hpp.
Referenced by ng::create_engine::create_engine(), sp::enter_connect_mode(), mp::level_to_gamestate(), game_launcher::new_campaign(), game_launcher::play_test(), gui2::tcampaign_settings::post_show(), gui2::tcampaign_settings::pre_show(), game_launcher::set_tutorial(), and to_config().
bool mp_game_settings::shroud_game |
Definition at line 60 of file mp_game_settings.hpp.
Referenced by ng::configure_engine::set_shroud_game(), ng::configure_engine::shroud_game(), to_config(), and ng::configure_engine::write_parameters().
bool mp_game_settings::shuffle_sides |
Definition at line 63 of file mp_game_settings.hpp.
Referenced by ng::configure_engine::set_shuffle_sides(), ng::configure_engine::shuffle_sides(), ng::connect_engine::start_game(), and to_config().
std::map<std::string, std::string> mp_game_settings::side_users |
Definition at line 44 of file mp_game_settings.hpp.
Referenced by to_config().
bool mp_game_settings::use_map_settings |
Definition at line 57 of file mp_game_settings.hpp.
Referenced by ng::connect_engine::connect_engine(), ng::side_engine::new_config(), campaign_controller::play_game(), ng::configure_engine::set_use_map_settings(), mp::connect::side::side(), mp::start_local_game_commandline(), to_config(), ng::configure_engine::use_map_settings(), and ng::configure_engine::write_parameters().
int mp_game_settings::village_gold |
Definition at line 49 of file mp_game_settings.hpp.
Referenced by ng::configure_engine::set_village_gold(), mp::start_local_game_commandline(), to_config(), ng::configure_engine::village_gold(), and ng::configure_engine::write_parameters().
int mp_game_settings::village_support |
Definition at line 50 of file mp_game_settings.hpp.
Referenced by ng::configure_engine::set_village_support(), mp::start_local_game_commandline(), to_config(), ng::configure_engine::village_support(), and ng::configure_engine::write_parameters().
int mp_game_settings::xp_modifier |
Definition at line 51 of file mp_game_settings.hpp.
Referenced by ng::configure_engine::set_xp_modifier(), mp::start_local_game_commandline(), to_config(), ng::configure_engine::write_parameters(), and ng::configure_engine::xp_modifier().