This checkup compares whether the results calculated during the original game match the ones calculated during replay. More...
#include <synced_checkup.hpp>
Public Member Functions | |
synced_checkup (config &buffer) | |
virtual | ~synced_checkup () |
virtual bool | local_checkup (const config &expected_data, config &real_data) |
Compares data to the results calculated during the original game. More... | |
Public Member Functions inherited from checkup | |
checkup () | |
virtual | ~checkup () |
Private Attributes | |
config & | buffer_ |
unsigned int | pos_ |
This checkup compares whether the results calculated during the original game match the ones calculated during replay.
Whether this checkup also compares the calculated results of different clients in a a mp game depends on whether there was already data sent about the current synced command.
Definition at line 43 of file synced_checkup.hpp.
synced_checkup::synced_checkup | ( | config & | buffer | ) |
Definition at line 54 of file synced_checkup.cpp.
|
virtual |
Definition at line 59 of file synced_checkup.cpp.
Compares data to the results calculated during the original game.
It's undefined whether this function also compares calculated results from different clients in a mp game. returns whether the two config objects are equal.
Implements checkup.
Definition at line 63 of file synced_checkup.cpp.
References config::add_child(), buffer_, config::child_count(), config::empty(), config::mandatory_child(), and pos_.
|
private |
Definition at line 50 of file synced_checkup.hpp.
Referenced by local_checkup().
|
private |
Definition at line 51 of file synced_checkup.hpp.
Referenced by local_checkup().