#include "global.hpp"
#include "playcampaign.hpp"
#include "config.hpp"
#include "filesystem.hpp"
#include "game_preferences.hpp"
#include "gamestatus.hpp"
#include "map_create.hpp"
#include "playmp_controller.hpp"
#include "playsingle_controller.hpp"
#include "replay.hpp"
#include "replay_controller.hpp"
#include "log.hpp"
#include "dialogs.hpp"
#include "gettext.hpp"
#include "game_errors.hpp"
#include "sound.hpp"
#include "wml_exception.hpp"
#include <cassert>
#include <map>
Go to the source code of this file.
Defines | |
#define | LOG_G LOG_STREAM(info, general) |
#define | LOG_NG LOG_STREAM(info, engine) |
Typedefs | |
typedef std::map< std::string, player_controller > | controller_map |
Functions | |
void | play_replay (display &disp, game_state &gamestate, const config &game_config, CVideo &video) |
static void | clean_saves (const std::string &label) |
static LEVEL_RESULT | playsingle_scenario (const config &game_config, const config *level, display &disp, game_state &state_of_game, const std::vector< config * > &story, upload_log &log, bool skip_replay) |
static LEVEL_RESULT | playmp_scenario (const config &game_config, config const *level, display &disp, game_state &state_of_game, const config::child_list &story, upload_log &log, bool skip_replay, io_type_t &io_type) |
LEVEL_RESULT | play_game (display &disp, game_state &gamestate, const config &game_config, upload_log &log, io_type_t io_type, bool skip_replay) |
Definition in file playcampaign.cpp.
#define LOG_G LOG_STREAM(info, general) |
Definition at line 41 of file playcampaign.cpp.
#define LOG_NG LOG_STREAM(info, engine) |
Definition at line 42 of file playcampaign.cpp.
typedef std::map<std::string, player_controller> controller_map [static] |
Definition at line 62 of file playcampaign.cpp.
static void clean_saves | ( | const std::string & | label | ) | [static] |
Definition at line 111 of file playcampaign.cpp.
References _, delete_game(), and get_saves_list().
Referenced by play_game().
LEVEL_RESULT play_game | ( | display & | disp, | |
game_state & | gamestate, | |||
const config & | game_config, | |||
upload_log & | log, | |||
io_type_t | io_type, | |||
bool | skip_replay | |||
) |
Definition at line 200 of file playcampaign.cpp.
References _, game_state::abbrev, config::add_child(), replay::at_end(), game_state::campaign_type, player_info::can_recruit, cfg, config::child(), clean_saves(), config::clear(), replay::clear(), preferences::client_type(), game_state::completion, lg::config, DEFEAT, preferences::delete_saves(), config::empty(), config::find_child(), config::get_children(), game_state::get_player(), dialogs::get_save_name(), player_info::gold, utils::interpolate_variables_into_string(), IO_CLIENT, IO_NONE, IO_SERVER, game_state::label, LEVEL_CONTINUE, LEVEL_CONTINUE_NO_SAVE, lexical_cast(), LOG_G, preferences::login(), message, config::error::message, gamemap::incorrect_format_exception::msg_, player_info::name, dialogs::network_receive_dialog(), game_state::next_scenario, OBSERVER_END, gui::OK_CANCEL, sound::play_no_music(), playmp_scenario(), playsingle_scenario(), QUIT, random_generate_map(), random_generate_scenario(), read_map(), recorder, game_state::replay_data, game_state::rng(), simple_rng::rotate_random(), save_game(), replay::save_game(), preferences::save_replays(), game_state::scenario, network::send_data(), game_state::set_menu_items(), replay::set_save_info(), replay::set_save_info_completion(), game_state::set_variables(), twml_exception::show(), gui::show_error_message(), game_state::snapshot, utils::split(), game_state::starting_pos, type, config::values, VICTORY, cursor::WAIT, write_game(), WRITE_SNAPSHOT_ONLY, and gui::YES_NO.
void play_replay | ( | display & | disp, | |
game_state & | gamestate, | |||
const config & | game_config, | |||
CVideo & | video | |||
) |
Definition at line 66 of file playcampaign.cpp.
References _, game_state::campaign_type, config::clear(), replay::clear(), lg::config, config::empty(), config::find_child(), game_state::label, gamemap::incorrect_format_exception::msg_, play_replay_level(), recorder, game_state::replay_data, game_state::scenario, replay::set_save_info(), twml_exception::show(), gui::show_error_message(), game_state::snapshot, game_state::starting_pos, and type.
static LEVEL_RESULT playmp_scenario | ( | const config & | game_config, | |
config const * | level, | |||
display & | disp, | |||
game_state & | state_of_game, | |||
const config::child_list & | story, | |||
upload_log & | log, | |||
bool | skip_replay, | |||
io_type_t & | io_type | |||
) | [static] |
Definition at line 156 of file playcampaign.cpp.
References _, DEFEAT, CVideo::faked(), IO_CLIENT, IO_SERVER, LEVEL_CONTINUE, LEVEL_CONTINUE_NO_SAVE, QUIT, end_level_exception::result, and display::video().
Referenced by play_game().
static LEVEL_RESULT playsingle_scenario | ( | const config & | game_config, | |
const config * | level, | |||
display & | disp, | |||
game_state & | state_of_game, | |||
const std::vector< config * > & | story, | |||
upload_log & | log, | |||
bool | skip_replay | |||
) | [static] |
Definition at line 124 of file playcampaign.cpp.
References _, DEFEAT, CVideo::faked(), LEVEL_CONTINUE, LEVEL_CONTINUE_NO_SAVE, LOG_NG, QUIT, end_level_exception::result, and display::video().
Referenced by play_game().
std::string controller |
Definition at line 58 of file playcampaign.cpp.
Referenced by get_first_human_team(), and turn_info::process_network_data().
std::string description |
Definition at line 59 of file playcampaign.cpp.
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |