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

Classes

struct  PlacementCheck
 

Typedefs

using PlayerSet = std::uint32_t
 

Functions

void resetTransientState ()
 
PlacementCheck testBuildingPlacement (const GameState &state, PlayerNumber purchaser, std::uint8_t squareNo, bool adding)
 
PlayerSet playersWhoCanBuyBuilding (const GameState &state, bool hotel)
 
board::PropertySet placeBuildingLegalSquares (const GameState &state)
 
void buildApprovedBuilding (GameState &state, std::uint8_t squareNo)
 
void actionBuyHouse (GameState &state, const actions::Message &message)
 
void actionSellBuildings (GameState &state, const actions::Message &message)
 
void actionCancelDecomposition (GameState &state, const actions::Message &message)
 
void actionPlayerBuySellMortgage (GameState &state, const actions::Message &message)
 
void actionPlayerDoneBuySellMortgage (GameState &state, const actions::Message &message)
 
bool restartBuildingPhase (GameState &state)
 

Typedef Documentation

◆ PlayerSet

Definition at line 12 of file RuleBuildings.hpp.

Function Documentation

◆ actionBuyHouse()

void monopoly::rules::buildings::actionBuyHouse ( GameState &  state,
const actions::Message &  message 
)

Definition at line 750 of file RuleBuildings.cpp.

◆ actionCancelDecomposition()

void monopoly::rules::buildings::actionCancelDecomposition ( GameState &  state,
const actions::Message &  message 
)

Definition at line 1355 of file RuleBuildings.cpp.

◆ actionPlayerBuySellMortgage()

void monopoly::rules::buildings::actionPlayerBuySellMortgage ( GameState &  state,
const actions::Message &  message 
)

Definition at line 1399 of file RuleBuildings.cpp.

◆ actionPlayerDoneBuySellMortgage()

void monopoly::rules::buildings::actionPlayerDoneBuySellMortgage ( GameState &  state,
const actions::Message &  message 
)

Definition at line 1511 of file RuleBuildings.cpp.

◆ actionSellBuildings()

void monopoly::rules::buildings::actionSellBuildings ( GameState &  state,
const actions::Message &  message 
)

Definition at line 1035 of file RuleBuildings.cpp.

◆ buildApprovedBuilding()

void monopoly::rules::buildings::buildApprovedBuilding ( GameState &  state,
std::uint8_t  squareNo 
)

Definition at line 726 of file RuleBuildings.cpp.

◆ placeBuildingLegalSquares()

board::PropertySet monopoly::rules::buildings::placeBuildingLegalSquares ( const GameState &  state)

Definition at line 668 of file RuleBuildings.cpp.

◆ playersWhoCanBuyBuilding()

PlayerSet monopoly::rules::buildings::playersWhoCanBuyBuilding ( const GameState &  state,
bool  hotel 
)

Definition at line 610 of file RuleBuildings.cpp.

◆ resetTransientState()

void monopoly::rules::buildings::resetTransientState ( )

Definition at line 250 of file RuleBuildings.cpp.

◆ restartBuildingPhase()

bool monopoly::rules::buildings::restartBuildingPhase ( GameState &  state)

Definition at line 1561 of file RuleBuildings.cpp.

◆ testBuildingPlacement()

PlacementCheck monopoly::rules::buildings::testBuildingPlacement ( const GameState &  state,
PlayerNumber  purchaser,
std::uint8_t  squareNo,
bool  adding 
)

Definition at line 256 of file RuleBuildings.cpp.