Replay control code. More...
Go to the source code of this file.
Classes | |
class | chat_msg |
class | replay |
Enumerations | |
enum class | REPLAY_ACTION_TYPE { UNSYNCED , DEPENDENT , SYNCED , INVALID } |
enum | REPLAY_RETURN { REPLAY_RETURN_AT_END , REPLAY_FOUND_DEPENDENT , REPLAY_FOUND_END_TURN , REPLAY_FOUND_INIT_TURN , REPLAY_FOUND_END_MOVE , REPLAY_FOUND_END_LEVEL } |
Functions | |
REPLAY_ACTION_TYPE | get_replay_action_type (const config &command) |
REPLAY_RETURN | do_replay (bool one_move=false) |
REPLAY_RETURN | do_replay_handle (bool one_move=false) |
Replay control code.
Definition in file replay.hpp.
|
strong |
Enumerator | |
---|---|
UNSYNCED | |
DEPENDENT | |
SYNCED | |
INVALID |
Definition at line 46 of file replay.hpp.
enum REPLAY_RETURN |
Enumerator | |
---|---|
REPLAY_RETURN_AT_END | |
REPLAY_FOUND_DEPENDENT | |
REPLAY_FOUND_END_TURN | |
REPLAY_FOUND_INIT_TURN | |
REPLAY_FOUND_END_MOVE | |
REPLAY_FOUND_END_LEVEL |
Definition at line 166 of file replay.hpp.
REPLAY_RETURN do_replay | ( | bool | one_move = false | ) |
Definition at line 707 of file replay.cpp.
References resources::controller, do_replay_handle(), display::get_singleton(), log_scope, and display::recalculate_minimap().
Referenced by replay_controller::play_side_impl(), and playmp_controller::process_network_turn_impl().
REPLAY_RETURN do_replay_handle | ( | bool | one_move | ) |
Definition at line 724 of file replay.cpp.
References _(), display_chat_manager::add_chat_message(), config::all_children_count(), config::all_children_view(), map_labels::clear(), resources::controller, play_controller::current_side(), data, DBG_REPLAY, config::debug(), play_controller::do_init_side(), ERR_REPLAY, unit_map::find(), resources::gameboard, game_state::gamedata_, play_controller::gamestate(), prefs::get(), game_display::get_chat_manager(), replay::get_next_action(), display::get_singleton(), game_display::get_singleton(), synced_context::get_synced_state(), game_board::get_team(), get_time(), config::has_child(), synced_context::is_synced(), label, display::labels(), LOG_REPLAY, prefs::message_bell(), events::chat_handler::MESSAGE_PRIVATE, events::chat_handler::MESSAGE_PUBLIC, game_state::next_player_number_, config::optional_child(), replay::process_error(), resources::recorder, REPLAY_FOUND_DEPENDENT, REPLAY_FOUND_END_LEVEL, REPLAY_FOUND_END_MOVE, REPLAY_FOUND_END_TURN, REPLAY_FOUND_INIT_TURN, REPLAY_RETURN_AT_END, replay::revert_action(), synced_context::run(), team::set_countdown_time(), map_labels::set_label(), game_data::set_phase(), utf8::size(), game_data::TURN_ENDED, game_board::units(), synced_context::UNSYNCED, unit_map::iterator_base< iter_types >::valid(), verify(), and WRN_REPLAY.
Referenced by synced_context::ask_server_choice(), do_replay(), user_choice_manager::pull(), user_choice_manager::search_in_replay(), and user_choice_manager::user_choice_manager().
REPLAY_ACTION_TYPE get_replay_action_type | ( | const config & | command | ) |
Definition at line 692 of file replay.cpp.
References _(), config::all_children_count(), config::all_children_view(), DEPENDENT, INVALID, SYNCED, and UNSYNCED.
Referenced by playmp_controller::process_network_data(), and playmp_controller::process_network_turn_impl().