Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
RuleResync.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "RuleArchive.hpp"
4#include "RuleTypes.hpp"
5
7{
8 enum class Cause : std::uint8_t
9 {
11 GameStart = 1,
12 LoadGame = 2,
15 };
16
17
18 // Only the compact mutable client state; no identity/configuration or restart.
19 void sendClientState(const GameState& state, PlayerNumber toPlayer, Cause cause);
20
21 void sendAll(
22 const GameState& state,
23 PlayerNumber toPlayer,
24 Cause cause,
26 );
27}
unsigned index
std::array< std::vector< std::uint8_t >, MaxPlayers > AIStateArray
void sendClientState(const GameState &state, PlayerNumber toPlayer, Cause cause)
void sendAll(const GameState &state, PlayerNumber toPlayer, Cause cause, const archive::AIStateArray &aiStates)
std::uint8_t PlayerNumber
Definition RuleTypes.hpp:12
const GameState & state()