#include <replay_recorder_base.hpp>
Public Member Functions | |
replay_recorder_base () | |
~replay_recorder_base () | |
void | swap (replay_recorder_base &other) |
int | get_pos () const |
int | size () const |
config & | get_command_at (int pos) |
config & | add_child () |
config & | get_upload_log () |
void | remove_command (int index) |
config & | insert_command (int index) |
void | set_to_end () |
void | set_pos (int pos) |
void | append_config (const config &data) |
void | append_config (config &data) |
Clears the passed config. More... | |
void | write (config_writer &out) const |
void | write (config &out) const |
void | delete_upcoming_commands () |
Protected Attributes | |
config | upload_log_ |
boost::ptr_vector< config > | commands_ |
int | pos_ |
Definition at line 8 of file replay_recorder_base.hpp.
replay_recorder_base::replay_recorder_base | ( | void | ) |
Definition at line 5 of file replay_recorder_base.cpp.
replay_recorder_base::~replay_recorder_base | ( | void | ) |
Definition at line 14 of file replay_recorder_base.cpp.
config & replay_recorder_base::add_child | ( | ) |
Definition at line 42 of file replay_recorder_base.cpp.
References commands_, pos_, and size().
Referenced by replay::add_command(), and replay::redo().
Definition at line 84 of file replay_recorder_base.cpp.
References config::child(), config::child_range(), commands_, and upload_log_.
Referenced by saved_game::set_data().
Clears the passed config.
Definition at line 96 of file replay_recorder_base.cpp.
References config::child(), config::child_range(), commands_, config::swap(), and upload_log_.
void replay_recorder_base::delete_upcoming_commands | ( | ) |
Definition at line 127 of file replay_recorder_base.cpp.
References commands_, and pos_.
Referenced by replay::delete_upcoming_commands().
Definition at line 36 of file replay_recorder_base.cpp.
References commands_, pos, and size().
Referenced by replay::add_chat_message_location(), replay::add_start_if_not_there_yet(), and replay::command().
int replay_recorder_base::get_pos | ( | ) | const |
Definition at line 26 of file replay_recorder_base.cpp.
References pos_.
Referenced by replay::add_chat_message_location(), replay::add_nonundoable_command(), replay::add_start_if_not_there_yet(), replay::at_end(), replay::get_last_real_command(), replay::get_next_action(), replay::redo(), replay::revert_action(), and play_controller::to_config().
config & replay_recorder_base::get_upload_log | ( | ) |
Definition at line 58 of file replay_recorder_base.cpp.
References upload_log_.
Referenced by replay::add_log_data().
Definition at line 73 of file replay_recorder_base.cpp.
References commands_, pos_, and size().
Referenced by replay::add_config(), replay::add_nonundoable_command(), replay::add_start_if_not_there_yet(), and replay::speak().
Definition at line 63 of file replay_recorder_base.cpp.
References commands_, pos_, and size().
Referenced by replay::remove_command().
Definition at line 49 of file replay_recorder_base.cpp.
References pos, pos_, and size().
Referenced by replay::add_nonundoable_command(), replay::get_next_action(), campaign_controller::play_game(), play_controller::reset_gamestate(), replay::revert_action(), and replay::start_replay().
void replay_recorder_base::set_to_end | ( | ) |
Definition at line 54 of file replay_recorder_base.cpp.
Referenced by campaign_controller::play_game(), replay::redo(), saved_game::set_data(), and replay::set_to_end().
int replay_recorder_base::size | ( | ) | const |
Definition at line 31 of file replay_recorder_base.cpp.
References commands_.
Referenced by add_child(), replay::add_config(), get_command_at(), insert_command(), replay::ncommands(), remove_command(), set_pos(), set_to_end(), and replay::speak().
void replay_recorder_base::swap | ( | replay_recorder_base & | other | ) |
Definition at line 19 of file replay_recorder_base.cpp.
References commands_, pos_, swap(), config::swap(), and upload_log_.
Referenced by saved_game::swap().
void replay_recorder_base::write | ( | config_writer & | out | ) | const |
Definition at line 110 of file replay_recorder_base.cpp.
References commands_, i, pos_, upload_log_, and config_writer::write_child().
Referenced by saved_game::to_config(), saved_game::write_config(), savegame::ingame_savegame::write_game(), and savegame::replay_savegame::write_game().
Definition at line 119 of file replay_recorder_base.cpp.
References config::add_child(), commands_, i, pos_, and upload_log_.
|
protected |
Definition at line 44 of file replay_recorder_base.hpp.
Referenced by add_child(), append_config(), delete_upcoming_commands(), get_command_at(), insert_command(), remove_command(), size(), swap(), and write().
|
protected |
Definition at line 45 of file replay_recorder_base.hpp.
Referenced by add_child(), delete_upcoming_commands(), get_pos(), insert_command(), remove_command(), set_pos(), set_to_end(), swap(), and write().
|
protected |
Definition at line 43 of file replay_recorder_base.hpp.
Referenced by append_config(), get_upload_log(), swap(), and write().