Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
monopoly::rules::phases Namespace Reference

Functions

bool push (GameState &state, GamePhase phase, PlayerNumber fromPlayer, PlayerNumber toPlayer, std::int64_t amount)
 
bool pop (GameState &state)
 
void switchTo (GameState &state, GamePhase phase, PlayerNumber fromPlayer, PlayerNumber toPlayer, std::int64_t amount)
 
void saveCurrent (GameState &state)
 
bool hasCurrentSnapshot (const GameState &state)
 
bool hasSnapshots (const GameState &state)
 
bool currentStateChanged (const GameState &state)
 
bool restoreCurrent (GameState &state)
 
const PendingPhase & current (const GameState &state)
 

Function Documentation

◆ current()

const PendingPhase & monopoly::rules::phases::current ( const GameState &  state)

Definition at line 168 of file PhaseStack.cpp.

◆ currentStateChanged()

bool monopoly::rules::phases::currentStateChanged ( const GameState &  state)

Definition at line 133 of file PhaseStack.cpp.

◆ hasCurrentSnapshot()

bool monopoly::rules::phases::hasCurrentSnapshot ( const GameState &  state)

Definition at line 121 of file PhaseStack.cpp.

◆ hasSnapshots()

bool monopoly::rules::phases::hasSnapshots ( const GameState &  state)

Definition at line 126 of file PhaseStack.cpp.

◆ pop()

bool monopoly::rules::phases::pop ( GameState &  state)

Definition at line 56 of file PhaseStack.cpp.

◆ push()

bool monopoly::rules::phases::push ( GameState &  state,
GamePhase  phase,
PlayerNumber  fromPlayer,
PlayerNumber  toPlayer,
std::int64_t  amount 
)

Definition at line 20 of file PhaseStack.cpp.

◆ restoreCurrent()

bool monopoly::rules::phases::restoreCurrent ( GameState &  state)

Definition at line 158 of file PhaseStack.cpp.

◆ saveCurrent()

void monopoly::rules::phases::saveCurrent ( GameState &  state)

Definition at line 113 of file PhaseStack.cpp.

◆ switchTo()

void monopoly::rules::phases::switchTo ( GameState &  state,
GamePhase  phase,
PlayerNumber  fromPlayer,
PlayerNumber  toPlayer,
std::int64_t  amount 
)

Definition at line 90 of file PhaseStack.cpp.