![]() |
Conquer Chess
Chess and Starcraft combined
|
A replay. More...
#include <replay.h>
Public Member Functions | |
| replay (const action_history &h=action_history(), const game_controller &c=game_controller()) | |
| void | do_move (const delta_t &dt=delta_t(1.0)) |
| Do a move or do nothing, for 1 time unit. | |
| const auto & | get_action_history () const noexcept |
| Get the history of actions, from a replay. | |
| const auto & | get_game () const noexcept |
| Get the current state of the game. | |
| const auto & | get_game_controller () const noexcept |
| Get the current state of the game. | |
| const auto & | get_index () const noexcept |
| The index of the next move to do in the action history. | |
| const auto & | get_initial_game_controller () const noexcept |
| Get the current state of the game. | |
| bool | is_done () const noexcept |
| void | reset () noexcept |
| Rewind back to the start. | |
A replay.
A replay plays a game again by playing the action history of a game.
Use 'do_move' to go forward in time.
| h | the action_history}, as can be created by, e.g. create_action_history_from_pgn} or create_action_history_from_game} |
|
explicit |
|
inlinenoexcept |
Get the history of actions, from a replay.
|
inlinenoexcept |
Get the current state of the game.
|
inlinenoexcept |
Get the current state of the game.
|
inlinenoexcept |
The index of the next move to do in the action history.
|
inlinenoexcept |
Get the current state of the game.
|
noexcept |
|
noexcept |
Rewind back to the start.