A RAII object to enter the synced context, cannot be called if we are already in a synced context. More...
#include <synced_context.hpp>
Public Member Functions | |
set_scontext_synced () | |
set_scontext_synced (int num) | |
Use this constructor if you have multiple synced_context but only one replay entry. More... | |
~set_scontext_synced () | |
int | get_random_calls () |
void | do_final_checkup (bool dont_throw=false) |
Private Member Functions | |
void | init () |
Private Member Functions inherited from set_scontext_synced_base | |
set_scontext_synced_base () | |
~set_scontext_synced_base () | |
Static Private Member Functions | |
static checkup * | generate_checkup (const std::string &tagname) |
Private Attributes | |
checkup * | old_checkup_ |
const std::unique_ptr< checkup > | new_checkup_ |
events::command_disabler | disabler_ |
bool | did_final_checkup_ |
Private Attributes inherited from set_scontext_synced_base | |
std::shared_ptr< randomness::rng > | new_rng_ |
randomness::rng * | old_rng_ |
A RAII object to enter the synced context, cannot be called if we are already in a synced context.
Definition at line 186 of file synced_context.hpp.
set_scontext_synced::set_scontext_synced | ( | ) |
Definition at line 380 of file synced_context.cpp.
References init().
set_scontext_synced::set_scontext_synced | ( | int | num | ) |
Use this constructor if you have multiple synced_context but only one replay entry.
Definition at line 388 of file synced_context.cpp.
References init().
set_scontext_synced::~set_scontext_synced | ( | ) |
Definition at line 455 of file synced_context.cpp.
References checkup_instance, did_final_checkup_, LOG_REPLAY, new_checkup_, and old_checkup_.
void set_scontext_synced::do_final_checkup | ( | bool | dont_throw = false | ) |
Definition at line 416 of file synced_context.cpp.
References checkup_instance, config::debug(), did_final_checkup_, ERR_REPLAY, resources::gameboard, n_unit::id_manager::get_save_id(), checkup::local_checkup(), wfl::msg(), set_scontext_synced_base::new_rng_, replay::process_error(), and game_board::unit_id_manager().
Referenced by play_controller::do_init_side(), play_controller::finish_side_turn_events(), play_controller::finish_turn(), synced_context::run(), and play_controller::start_game().
|
staticprivate |
Definition at line 396 of file synced_context.cpp.
References resources::classification, and resources::recorder.
int set_scontext_synced::get_random_calls | ( | ) |
Definition at line 465 of file synced_context.cpp.
References set_scontext_synced_base::new_rng_.
|
private |
Definition at line 408 of file synced_context.cpp.
References checkup_instance, did_final_checkup_, LOG_REPLAY, new_checkup_, and old_checkup_.
Referenced by set_scontext_synced().
|
private |
Definition at line 206 of file synced_context.hpp.
Referenced by do_final_checkup(), init(), and ~set_scontext_synced().
|
private |
Definition at line 205 of file synced_context.hpp.
|
private |
Definition at line 204 of file synced_context.hpp.
Referenced by init(), and ~set_scontext_synced().
|
private |
Definition at line 203 of file synced_context.hpp.
Referenced by init(), and ~set_scontext_synced().