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

#include <PieceMoveIngress.hpp>

Public Types

using RandomBitSource = std::function< std::uint8_t()>
 

Public Member Functions

 PieceMoveIngress ()
 
 PieceMoveIngress (RandomBitSource randomBit)
 
void reset () noexcept
 
std::expected< PieceMoveIngressResult, PieceMoveIngressError > process (rules::GameState &uiState, const actions::Message &message, bool animationsEnabled)
 
bool hasPendingPlan () const noexcept
 
bool hasPendingSpecial () const noexcept
 
std::optional< PieceMovePlan > takePlan ()
 
std::optional< PieceMoveSpecialRequest > takeSpecial ()
 

Detailed Description

Definition at line 45 of file PieceMoveIngress.hpp.

Member Typedef Documentation

◆ RandomBitSource

Definition at line 48 of file PieceMoveIngress.hpp.

Constructor & Destructor Documentation

◆ PieceMoveIngress() [1/2]

monopoly::pieces::PieceMoveIngress::PieceMoveIngress ( )

Definition at line 25 of file PieceMoveIngress.cpp.

◆ PieceMoveIngress() [2/2]

monopoly::pieces::PieceMoveIngress::PieceMoveIngress ( RandomBitSource  randomBit)
explicit

Definition at line 30 of file PieceMoveIngress.cpp.

Member Function Documentation

◆ hasPendingPlan()

bool monopoly::pieces::PieceMoveIngress::hasPendingPlan ( ) const
inlinenoexcept

Definition at line 58 of file PieceMoveIngress.hpp.

◆ hasPendingSpecial()

bool monopoly::pieces::PieceMoveIngress::hasPendingSpecial ( ) const
inlinenoexcept

Definition at line 60 of file PieceMoveIngress.hpp.

◆ process()

std::expected< PieceMoveIngressResult, PieceMoveIngressError > monopoly::pieces::PieceMoveIngress::process ( rules::GameState &  uiState,
const actions::Message &  message,
bool  animationsEnabled 
)

Definition at line 75 of file PieceMoveIngress.cpp.

◆ reset()

void monopoly::pieces::PieceMoveIngress::reset ( )
noexcept

Definition at line 34 of file PieceMoveIngress.cpp.

◆ takePlan()

std::optional< PieceMovePlan > monopoly::pieces::PieceMoveIngress::takePlan ( )

Definition at line 61 of file PieceMoveIngress.cpp.

◆ takeSpecial()

std::optional< PieceMoveSpecialRequest > monopoly::pieces::PieceMoveIngress::takeSpecial ( )

Definition at line 67 of file PieceMoveIngress.cpp.


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