#include <playcampaign.hpp>
Public Member Functions | |
campaign_controller (saved_game &state, bool is_unit_test=false) | |
~campaign_controller () | |
level_result::type | play_game () |
level_result::type | play_replay () |
void | set_mp_info (mp_game_metadata *mp_info) |
Private Member Functions | |
level_result::type | playsingle_scenario (end_level_data &end_level) |
level_result::type | playmp_scenario (end_level_data &end_level) |
Private Attributes | |
saved_game & | state_ |
const bool | is_unit_test_ |
bool | is_replay_ |
mp_game_metadata * | mp_info_ |
Definition at line 48 of file playcampaign.hpp.
|
inline |
Definition at line 51 of file playcampaign.hpp.
campaign_controller::~campaign_controller | ( | ) |
Definition at line 295 of file playcampaign.cpp.
References prefs::get(), and gui2::switch_theme().
level_result::type campaign_controller::play_game | ( | ) |
Definition at line 108 of file playcampaign.cpp.
References _(), prefs::add_completed_campaign(), mp_game_settings::addons, game_classification::campaign, ng::connect_engine::can_start_game(), gui2::CANCEL, saved_game::classification(), savegame::clean_saves(), saved_game::convert_to_start_save(), game_classification::difficulty, e, sound::empty_playlist(), game_classification::end_credits, saved_game::expand_carryover(), saved_game::expand_mp_events(), saved_game::expand_mp_options(), saved_game::expand_random_scenario(), saved_game::expand_scenario(), prefs::get(), saved_game::get_replay(), saved_game::get_scenario_id(), saved_game::get_starting_point(), mp::goto_mp_staging(), mp::goto_mp_wait(), utils::interpolate_variables_into_string(), mp_game_metadata::is_host, game_classification::is_multiplayer(), game_classification::is_normal_mp_game(), is_replay_, game_classification::is_scenario(), is_unit_test_, game_classification::label, LOG_NG, mp_info_, saved_game::mp_settings(), mp_game_settings::num_turns, playmp_scenario(), playsingle_scenario(), end_level_data::prescenario_save, end_level_data::proceed_to_next_level, end_level_data::replay_save, savegame::savegame::save_game_automatic(), mp_game_settings::saved_game, replay_recorder_base::set_pos(), replay_recorder_base::set_to_end(), gui2::show_error_message(), gui2::show_message(), ng::connect_engine::start_game(), state_, saved_game::update_label(), mp_game_settings::use_map_settings, saved_game::valid(), and gui2::dialogs::message::yes_no_buttons.
Referenced by game_launcher::launch_game(), play_replay(), game_launcher::play_test(), and game_launcher::single_unit_test().
|
inline |
Definition at line 62 of file playcampaign.hpp.
References is_replay_, and play_game().
Referenced by game_launcher::play_replay(), and game_launcher::single_unit_test().
|
private |
Definition at line 85 of file playcampaign.cpp.
References play_controller::all_players(), mp_game_metadata::connected_players, play_controller::get_end_level_data(), saved_game::get_starting_point(), mp_info_, playsingle_controller::play_scenario(), mp_game_metadata::skip_replay, mp_game_metadata::skip_replay_blindfolded, state_, and play_controller::update_savegame_snapshot().
Referenced by play_game().
|
private |
Definition at line 54 of file playcampaign.cpp.
References playsingle_controller::enable_replay(), play_controller::get_end_level_data(), saved_game::get_replay_starting_point(), saved_game::get_starting_point(), is_replay_, is_unit_test_, LOG_NG, playsingle_controller::play_scenario(), saved_game::set_snapshot(), state_, play_controller::timer(), and play_controller::to_config().
Referenced by play_game().
|
inline |
Definition at line 68 of file playcampaign.hpp.
References mp_info_.
|
private |
Definition at line 79 of file playcampaign.hpp.
Referenced by play_game(), play_replay(), and playsingle_scenario().
|
private |
Definition at line 78 of file playcampaign.hpp.
Referenced by play_game(), and playsingle_scenario().
|
private |
Definition at line 80 of file playcampaign.hpp.
Referenced by play_game(), playmp_scenario(), and set_mp_info().
|
private |
Definition at line 77 of file playcampaign.hpp.
Referenced by play_game(), playmp_scenario(), and playsingle_scenario().