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

Enumerations

enum class  Cause : std::uint8_t {
  NetworkRefresh = 0 , GameStart = 1 , LoadGame = 2 , UndoBankruptcy = 3 ,
  UndoHotelDecomposition = 4
}
 

Functions

void sendClientState (const GameState &state, PlayerNumber toPlayer, Cause cause)
 
void sendAll (const GameState &state, PlayerNumber toPlayer, Cause cause, const archive::AIStateArray &aiStates)
 

Enumeration Type Documentation

◆ Cause

enum class monopoly::rules::resync::Cause : std::uint8_t
strong
Enumerator
NetworkRefresh 
GameStart 
LoadGame 
UndoBankruptcy 
UndoHotelDecomposition 

Definition at line 8 of file RuleResync.hpp.

Function Documentation

◆ sendAll()

void monopoly::rules::resync::sendAll ( const GameState &  state,
PlayerNumber  toPlayer,
Cause  cause,
const archive::AIStateArray &  aiStates 
)

Definition at line 266 of file RuleResync.cpp.

◆ sendClientState()

void monopoly::rules::resync::sendClientState ( const GameState &  state,
PlayerNumber  toPlayer,
Cause  cause 
)

Definition at line 239 of file RuleResync.cpp.