![]() |
Conquer Chess
Chess and Starcraft combined
|
The collected in-game times of actions, in chrononical order. More...
#include <action_history.h>
Public Member Functions | |
| action_history (const std::vector< std::pair< in_game_time, piece_action > > &timed_actions={}) | |
| void | add_action (const in_game_time &in_game_time, const piece_action &action) noexcept |
| Add an action, when started. | |
| const auto & | get () const noexcept |
| Get the collected in-game times of actions, in chrononical order. | |
The collected in-game times of actions, in chrononical order.
With the time and the full piece action, one can perfectly replay a game.
| action_history::action_history | ( | const std::vector< std::pair< in_game_time, piece_action > > & | timed_actions = {} | ) |
|
noexcept |
Add an action, when started.
|
inlinenoexcept |
Get the collected in-game times of actions, in chrononical order.