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