#include "global.hpp"
#include "actions.hpp"
#include "ai_interface.hpp"
#include "dialogs.hpp"
#include "game_display.hpp"
#include "game_preferences.hpp"
#include "filesystem.hpp"
#include "game_config.hpp"
#include "game_events.hpp"
#include "log.hpp"
#include "map_label.hpp"
#include "menu_events.hpp"
#include "pathfind.hpp"
#include "replay.hpp"
#include "show_dialog.hpp"
#include "sound.hpp"
#include "statistics.hpp"
#include "unit_display.hpp"
#include "util.hpp"
#include "wesconfig.h"
#include "serialization/binary_or_text.hpp"
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <deque>
#include <iostream>
#include <set>
#include <sstream>
Go to the source code of this file.
Defines | |
#define | DBG_REPLAY LOG_STREAM(debug, replay) |
#define | LOG_REPLAY LOG_STREAM(info, replay) |
#define | WRN_REPLAY LOG_STREAM(warn, replay) |
#define | ERR_REPLAY LOG_STREAM(err, replay) |
Functions | |
static void | verify (const unit_map &units, const config &cfg) |
static void | verify_units (const config &cfg) |
replay & | get_replay_source () |
static void | check_checksums (game_display &disp, const unit_map &units, const config &cfg) |
bool | do_replay (game_display &disp, const gamemap &map, unit_map &units, std::vector< team > &teams, int team_num, const gamestatus &state, game_state &state_of_game, replay *obj) |
bool | do_replay_handle (game_display &disp, const gamemap &map, unit_map &units, std::vector< team > &teams, int team_num, const gamestatus &state, game_state &state_of_game, const std::string &do_untill) |
Variables | |
const unit_map * | unit_map_ref = NULL |
replay | recorder |
std::stringstream | message_log |
replay * | replay_src = NULL |
See http://www.wesnoth.org/wiki/ReplayWML for more info.
Definition in file replay.cpp.
Definition at line 51 of file replay.cpp.
Referenced by do_replay_handle(), replay_controller::init(), replay_controller::init_replay_display(), replay_controller::play_replay(), and replay_controller::play_side().
#define ERR_REPLAY LOG_STREAM(err, replay) |
Definition at line 54 of file replay.cpp.
Referenced by do_replay_handle(), and replay::throw_error().
#define LOG_REPLAY LOG_STREAM(info, replay) |
Definition at line 52 of file replay.cpp.
Referenced by do_replay_handle(), replay::get_next_action(), replay_controller::play_turn(), and verify().
#define WRN_REPLAY LOG_STREAM(warn, replay) |
static void check_checksums | ( | game_display & | disp, | |
const unit_map & | units, | |||
const config & | cfg | |||
) | [static] |
Definition at line 730 of file replay.cpp.
References game_display::add_chat_message(), unit_map::end(), unit_map::find(), get_checksum(), config::get_children(), game_events::get_state_of_game(), loc, message, game_display::MESSAGE_PRIVATE, game_config::mp_debug, gamemap::location::x, and gamemap::location::y.
Referenced by do_replay_handle().
bool do_replay | ( | game_display & | disp, | |
const gamemap & | map, | |||
unit_map & | units, | |||
std::vector< team > & | teams, | |||
int | team_num, | |||
const gamestatus & | state, | |||
game_state & | state_of_game, | |||
replay * | obj | |||
) |
Definition at line 754 of file replay.cpp.
References do_replay_handle(), get_replay_source(), replay::is_skipping(), log_scope, display::recalculate_minimap(), and display::video().
Referenced by replay_controller::play_side(), playsingle_controller::play_turn(), and turn_info::process_network_data().
bool do_replay_handle | ( | game_display & | disp, | |
const gamemap & | map, | |||
unit_map & | units, | |||
std::vector< team > & | teams, | |||
int | team_num, | |||
const gamestatus & | state, | |||
game_state & | state_of_game, | |||
const std::string & | do_untill | |||
) |
Definition at line 775 of file replay.cpp.
References unit_map::add(), game_display::add_chat_message(), replay::add_chat_message_location(), config::all_children(), dialogs::animate_unit_advancement(), player_info::available_units, cfg, check_checksums(), check_victory(), config::child(), map_labels::clear(), clear_shroud(), unit::clear_status_caches(), DBG_REPLAY, config::debug(), DELAY_END_LEVEL, game_display::draw(), boost::foreach_detail_::end(), unit_map::end(), ERR_REPLAY, unit_map::extract(), unit_map::find(), game_events::fire(), config::get_children(), replay::get_next_action(), game_state::get_player(), get_replay_source(), game_events::get_state_of_game(), get_village(), team::gold(), game_display::invalidate(), display::invalidate_all(), display::invalidate_game_status(), is_observer(), replay::is_skipping(), gamemap::is_village(), display::labels(), loc, LOG_REPLAY, message, preferences::message_bell(), game_display::MESSAGE_PRIVATE, game_display::MESSAGE_PUBLIC, unit_display::move_unit(), name, display::recalculate_minimap(), game_config::recall_cost, statistics::recall_unit(), statistics::recruit_unit(), recruit_unit(), team::recruits(), replay::revert_action(), paths::routes, team::save_id(), map_labels::set_label(), game_state::set_variable(), sort_units(), team::spend_gold(), THROW_END_LEVEL_DELETE, replay::throw_error(), unit_type_data::types(), verify_units(), game_display::viewing_team(), village_owner(), and WRN_REPLAY.
Referenced by do_replay().
replay& get_replay_source | ( | ) |
Definition at line 721 of file replay.cpp.
References replay_src.
Referenced by do_replay(), and do_replay_handle().
Definition at line 60 of file replay.cpp.
References unit_map::begin(), unit_map::count(), unit_map::end(), unit_map::find(), config::get_children(), game_events::get_state_of_game(), loc, LOG_REPLAY, unit_map::size(), and replay::throw_error().
Referenced by verify_units().
static void verify_units | ( | const config & | cfg | ) | [static] |
Definition at line 131 of file replay.cpp.
References unit_map_ref, and verify().
Referenced by do_replay_handle().
std::stringstream message_log |
Definition at line 476 of file replay.cpp.
Referenced by replay::build_chat_log(), and replay::clear().
Definition at line 716 of file replay.cpp.
Definition at line 151 of file replay.cpp.
Referenced by dialogs::advance_unit(), playmp_controller::after_human_turn(), ai_interface::attack_enemy(), events::mouse_handler::attack_enemy_(), events::menu_handler::autosave(), events::delete_recall_unit::button_pressed(), calculate_healing(), events::menu_handler::clear_labels(), playsingle_controller::end_turn_record(), enter_connect_mode(), enter_wait_mode(), play_controller::execute_command(), play_controller::finish_turn(), replay_controller::init(), play_controller::init(), playsingle_controller::init_gui(), play_controller::init_side(), events::menu_handler::label_terrain(), mp::level_to_gamestate(), events::mouse_handler::move_unit_along_current_route(), ai_interface::move_unit_partial(), events::menu_handler::move_unit_to_loc(), playsingle_controller::play_ai_turn(), play_game(), playmp_controller::play_human_turn(), replay_controller::play_replay(), play_replay(), playsingle_controller::play_scenario(), replay_controller::play_side(), replay_controller::play_turn(), playsingle_controller::play_turn(), mp::lobby::process_event(), turn_info::process_network_data(), events::menu_handler::recall(), ai_interface::recruit(), events::menu_handler::redo(), events::menu_handler::rename_unit(), replay_controller::replay_skip_animation(), replay_controller::reset_replay(), events::menu_handler::save_game(), events::menu_handler::send_chat_message(), events::menu_handler::show_chat_log(), mp::start_client(), mp::start_server(), and events::menu_handler::undo().
replay* replay_src = NULL [static] |
const unit_map* unit_map_ref = NULL [static] |
Definition at line 128 of file replay.cpp.
Referenced by replay::add_unit_checksum(), verification_manager::verification_manager(), verify_units(), and verification_manager::~verification_manager().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |