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 sended about the current synced command.
Definition at line 44 of file synced_checkup.hpp.
synced_checkup::synced_checkup | ( | config & | buffer | ) |
Definition at line 55 of file synced_checkup.cpp.
|
virtual |
Definition at line 60 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 64 of file synced_checkup.cpp.
References config::add_child(), buffer_, config::child(), config::child_count(), config::empty(), and pos_.
|
private |
Definition at line 51 of file synced_checkup.hpp.
Referenced by local_checkup().
|
private |
Definition at line 52 of file synced_checkup.hpp.
Referenced by local_checkup().