Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Public Member Functions | List of all members
action_history Class Reference

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.
 

Detailed Description

The collected in-game times of actions, in chrononical order.

With the time and the full piece action, one can perfectly replay a game.

Constructor & Destructor Documentation

◆ action_history()

action_history::action_history ( const std::vector< std::pair< in_game_time, piece_action > > &  timed_actions = {})

Member Function Documentation

◆ add_action()

void action_history::add_action ( const in_game_time in_game_time,
const piece_action action 
)
noexcept

Add an action, when started.

◆ get()

const auto & action_history::get ( ) const
inlinenoexcept

Get the collected in-game times of actions, in chrononical order.


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