Functions | |
bool | select_campaign (saved_game &state, jump_to_campaign_info jump_to_campaign) |
bool | configure_campaign (saved_game &state, ng::create_engine &create_eng) |
bool sp::configure_campaign | ( | saved_game & | state, |
ng::create_engine & | create_eng | ||
) |
Definition at line 135 of file singleplayer.cpp.
References ng::create_engine::current_level(), ng::level::data(), gui2::dialogs::sp_options_configure::execute(), ng::create_engine::get_parameters(), ng::create_engine::get_state(), ng::create_engine::prepare_for_new_level(), ng::connect_engine::start_game(), and ng::configure_engine::update_initial_cfg().
Referenced by select_campaign().
bool sp::select_campaign | ( | saved_game & | state, |
jump_to_campaign_info | jump_to_campaign | ||
) |
Definition at line 34 of file singleplayer.cpp.
References _(), jump_to_campaign_info::campaign_id, saved_game::classification(), configure_campaign(), e, ERR_NG, gui2::dialogs::campaign_selection::get_difficulty(), ng::create_engine::get_levels_by_type_unfiltered(), gui2::dialogs::modal_dialog::get_retval(), gui2::dialogs::campaign_selection::get_rng_mode(), saved_game::get_scenario_id(), game_config::images::level, manage_addons(), gui2::OK, gui2::dialogs::campaign_selection::OPEN_ADDON_MANAGER, ng::create_engine::prepare_for_campaign(), ng::create_engine::prepare_for_era_and_mods(), game_classification::random_mode, gui2::dialogs::campaign_selection::RNG_BIASED, gui2::dialogs::campaign_selection::RNG_DEFAULT, gui2::dialogs::campaign_selection::RNG_SAVE_SEED, jump_to_campaign_info::scenario_id, saved_game::set_carryover_sides_start(), ng::create_engine::set_current_level(), ng::create_engine::set_current_level_type(), gui2::dialogs::modal_dialog::show(), gui2::show_error_message(), and saved_game::valid().
Referenced by game_launcher::new_campaign().