Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
RuleBuildings.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "Actions.hpp"
4#include "BoardRules.hpp"
5#include "RuleTypes.hpp"
6
7#include <cstdint>
8
10{
12 using PlayerSet = std::uint32_t;
13
15 {
16 std::int64_t error = 0;
17 std::int64_t errorArgument = 0;
18
19 bool buildingAHotel = false;
20
22 };
23
24
26 const GameState& state,
28 std::uint8_t squareNo,
29 bool adding
30 );
31
32
34 const GameState& state,
35 bool hotel
36 );
37
38
40 const GameState& state
41 );
42
43
46 std::uint8_t squareNo
47 );
48
49
50 void actionBuyHouse(
52 const actions::Message& message
53 );
54
55
58 const actions::Message& message
59 );
60
61
64 const actions::Message& message
65 );
66
67
70 const actions::Message& message
71 );
72
73
76 const actions::Message& message
77 );
78
79
82 );
83}
84
85
unsigned index
std::uint32_t PropertySet
PlacementCheck testBuildingPlacement(const GameState &state, PlayerNumber purchaser, std::uint8_t squareNo, bool adding)
void actionBuyHouse(GameState &state, const actions::Message &message)
PlayerSet playersWhoCanBuyBuilding(const GameState &state, bool hotel)
void actionCancelDecomposition(GameState &state, const actions::Message &message)
void buildApprovedBuilding(GameState &state, std::uint8_t squareNo)
void actionPlayerDoneBuySellMortgage(GameState &state, const actions::Message &message)
bool restartBuildingPhase(GameState &state)
void actionPlayerBuySellMortgage(GameState &state, const actions::Message &message)
board::PropertySet placeBuildingLegalSquares(const GameState &state)
void actionSellBuildings(GameState &state, const actions::Message &message)
std::uint8_t PlayerNumber
Definition RuleTypes.hpp:12
const GameState & state()