Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
monopoly::pieces::PieceMovePlayback Class Referencefinal

#include <PieceMovePlayback.hpp>

Public Member Functions

std::expected< void, std::string > begin (PieceMovePlan plan)
 
std::expected< PieceMovePlaybackUpdate, std::string > tick (bool boardVisible, engine::SequencePlayback &playback)
 
bool active () const noexcept
 
std::size_t stackIndex () const noexcept
 
data::DataId currentSequence () const noexcept
 
std::optional< BoardCameraView > desiredCamera () const noexcept
 

Detailed Description

Definition at line 22 of file PieceMovePlayback.hpp.

Member Function Documentation

◆ active()

bool monopoly::pieces::PieceMovePlayback::active ( ) const
inlinenoexcept

Definition at line 29 of file PieceMovePlayback.hpp.

◆ begin()

std::expected< void, std::string > monopoly::pieces::PieceMovePlayback::begin ( PieceMovePlan  plan)

Definition at line 13 of file PieceMovePlayback.cpp.

◆ currentSequence()

data::DataId monopoly::pieces::PieceMovePlayback::currentSequence ( ) const
inlinenoexcept

Definition at line 31 of file PieceMovePlayback.hpp.

◆ desiredCamera()

std::optional< BoardCameraView > monopoly::pieces::PieceMovePlayback::desiredCamera ( ) const
inlinenoexcept

Definition at line 33 of file PieceMovePlayback.hpp.

◆ stackIndex()

std::size_t monopoly::pieces::PieceMovePlayback::stackIndex ( ) const
inlinenoexcept

Definition at line 30 of file PieceMovePlayback.hpp.

◆ tick()

std::expected< PieceMovePlaybackUpdate, std::string > monopoly::pieces::PieceMovePlayback::tick ( bool  boardVisible,
engine::SequencePlayback &  playback 
)

Definition at line 57 of file PieceMovePlayback.cpp.


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