The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
mp_debug_checkup Class Reference

This checkup always compares the results in from different clients in a mp game but it also causes more network overhead. More...

#include <synced_checkup.hpp>

Inheritance diagram for mp_debug_checkup:
Inheritance graph

Public Member Functions

 mp_debug_checkup ()
 
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. More...
 
- Public Member Functions inherited from checkup
 checkup ()
 
virtual ~checkup ()
 

Detailed Description

This checkup always compares the results in from different clients in a mp game but it also causes more network overhead.

Definition at line 68 of file synced_checkup.hpp.

Constructor & Destructor Documentation

mp_debug_checkup::mp_debug_checkup ( )

Definition at line 110 of file synced_checkup.cpp.

mp_debug_checkup::~mp_debug_checkup ( )
virtual

Definition at line 114 of file synced_checkup.cpp.

Member Function Documentation

bool mp_debug_checkup::local_checkup ( const config expected_data,
config real_data 
)
virtual

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 118 of file synced_checkup.cpp.

References config::empty(), and mp_sync::get_user_choice().


The documentation for this class was generated from the following files: