Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Classes | Functions
replay.h File Reference
#include "ccfwd.h"
#include "delta_t.h"
#include "in_game_time.h"
#include "game_controller.h"
#include "action_history.h"
#include "game_statistics_in_time.h"
#include <iosfwd>
Include dependency graph for replay.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  replay
 A replay. More...
 

Functions

game_statistics_in_time extract_game_statistics_in_time (const replay &r, const delta_t &dt)
 Extract the game statistics over time.
 
const in_game_timeget_in_game_time (const replay &r) noexcept
 
int get_n_moves (const replay &r) noexcept
 Get the number of moves in the replay.
 
replay get_played_scholars_mate ()
 
bool is_piece_at (const replay &r, const square &coordinat)
 Determine if there is a piece at the coordinat.
 
void test_replay ()
 Test this class and its free functions.
 
bool operator== (const replay &lhs, const replay &rhs) noexcept
 
std::ostream & operator<< (std::ostream &os, const replay &r) noexcept
 

Function Documentation

◆ extract_game_statistics_in_time()

game_statistics_in_time extract_game_statistics_in_time ( const replay r,
const delta_t dt 
)

Extract the game statistics over time.

Parameters
ra replayer
dtthe interval at which the statistics are extracted

◆ get_in_game_time()

const in_game_time & get_in_game_time ( const replay r)
noexcept

◆ get_n_moves()

int get_n_moves ( const replay r)
noexcept

Get the number of moves in the replay.

◆ get_played_scholars_mate()

replay get_played_scholars_mate ( )

◆ is_piece_at()

bool is_piece_at ( const replay r,
const square coordinat 
)

Determine if there is a piece at the coordinat.

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const replay r 
)
noexcept

◆ operator==()

bool operator== ( const replay lhs,
const replay rhs 
)
noexcept

◆ test_replay()

void test_replay ( )

Test this class and its free functions.