21 #define DBG_REPLAY LOG_STREAM(debug, log_replay)
22 #define LOG_REPLAY LOG_STREAM(info, log_replay)
23 #define WRN_REPLAY LOG_STREAM(warn, log_replay)
24 #define ERR_REPLAY LOG_STREAM(err, log_replay)
49 assert(real_data.
empty());
50 LOG_REPLAY <<
"ignored_checkup::local_checkup called";
55 : buffer_(buffer), pos_(0)
65 assert(real_data.
empty());
71 return real_data == expected_data;
87 checkup_choice(
const config& cfg) : cfg_(cfg)
90 virtual ~checkup_choice()
95 throw "not implemented";
119 assert(real_data.
empty());
120 real_data =
get_user_choice(
"mp_checkup", checkup_choice(expected_data));
121 return real_data == expected_data;
A class to check whether the results that were calculated in the replay match the results calculated ...
A config object defines a single node in a WML file, with access to child nodes.
config & mandatory_child(config_key_type key, int n=0)
Returns the nth child with the given key, or throws an error if there is none.
std::size_t child_count(config_key_type key) const
config & add_child(config_key_type key)
virtual ~ignored_checkup()
virtual bool local_checkup(const config &expected_data, config &real_data)
always returns true
virtual ~mp_debug_checkup()
virtual bool local_checkup(const config &expected_data, config &real_data)
Compares data to the results calculated during the original game.
synced_checkup(config &buffer)
virtual bool local_checkup(const config &expected_data, config &real_data)
Compares data to the results calculated during the original game.
virtual ~synced_checkup()
Standard logging facilities (interface).
config get_user_choice(const std::string &name, const user_choice &uch, int side=0)
Interface for querying local choices.
virtual config query_user(int side) const =0
virtual bool is_visible() const
whether the choice is visible for the user like an advancement choice a non-visible choice is for exa...
virtual config random_choice(int side) const =0
checkup * checkup_instance
static lg::log_domain log_replay("replay")
static ignored_checkup default_instnce