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

Functions

void sellAllBuildingsForSettlement (GameState &state, std::uint8_t squareNo)
 
void transferPropertyForSettlement (GameState &state, std::uint8_t squareNo, PlayerNumber toPlayer)
 
void resetTransientState ()
 
void blindlyTransferCash (GameState &state, PlayerNumber fromPlayer, PlayerNumber toPlayer, std::int64_t amount, bool sendAnimation)
 
void addMoneyToFreeParkingPot (GameState &state, std::int64_t amount)
 
void stackDebt (GameState &state, PlayerNumber fromPlayer, PlayerNumber toPlayer, std::int64_t amount)
 
void stackDebtAndRestart (GameState &state, PlayerNumber fromPlayer, PlayerNumber toPlayer, std::int64_t amount)
 
void collectRent (GameState &state)
 
void actionBuyOrAuctionDecision (GameState &state, const actions::Message &message)
 
void actionTaxDecision (GameState &state, const actions::Message &message)
 
void actionFreeUnmortgageDone (GameState &state, const actions::Message &message)
 
void actionMortgaging (GameState &state, const actions::Message &message)
 
void actionSellBuildings (GameState &state, const actions::Message &message)
 
void actionGoBankrupt (GameState &state, const actions::Message &message)
 
void landOnIncomeTax (GameState &state)
 
void landOnLuxuryTax (GameState &state)
 
void landOnFreeParking (GameState &state)
 
bool restartEconomyPhase (GameState &state, const actions::Message &message)
 

Function Documentation

◆ actionBuyOrAuctionDecision()

void monopoly::rules::economy::actionBuyOrAuctionDecision ( GameState &  state,
const actions::Message &  message 
)

Definition at line 1510 of file RuleEconomy.cpp.

◆ actionFreeUnmortgageDone()

void monopoly::rules::economy::actionFreeUnmortgageDone ( GameState &  state,
const actions::Message &  message 
)

Definition at line 1745 of file RuleEconomy.cpp.

◆ actionGoBankrupt()

void monopoly::rules::economy::actionGoBankrupt ( GameState &  state,
const actions::Message &  message 
)

Definition at line 2266 of file RuleEconomy.cpp.

◆ actionMortgaging()

void monopoly::rules::economy::actionMortgaging ( GameState &  state,
const actions::Message &  message 
)

Definition at line 1799 of file RuleEconomy.cpp.

◆ actionSellBuildings()

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

Definition at line 2126 of file RuleEconomy.cpp.

◆ actionTaxDecision()

void monopoly::rules::economy::actionTaxDecision ( GameState &  state,
const actions::Message &  message 
)

Definition at line 1616 of file RuleEconomy.cpp.

◆ addMoneyToFreeParkingPot()

void monopoly::rules::economy::addMoneyToFreeParkingPot ( GameState &  state,
std::int64_t  amount 
)

Definition at line 919 of file RuleEconomy.cpp.

◆ blindlyTransferCash()

void monopoly::rules::economy::blindlyTransferCash ( GameState &  state,
PlayerNumber  fromPlayer,
PlayerNumber  toPlayer,
std::int64_t  amount,
bool  sendAnimation 
)

Definition at line 847 of file RuleEconomy.cpp.

◆ collectRent()

void monopoly::rules::economy::collectRent ( GameState &  state)

Definition at line 977 of file RuleEconomy.cpp.

◆ landOnFreeParking()

void monopoly::rules::economy::landOnFreeParking ( GameState &  state)

Definition at line 2673 of file RuleEconomy.cpp.

◆ landOnIncomeTax()

void monopoly::rules::economy::landOnIncomeTax ( GameState &  state)

Definition at line 2602 of file RuleEconomy.cpp.

◆ landOnLuxuryTax()

void monopoly::rules::economy::landOnLuxuryTax ( GameState &  state)

Definition at line 2652 of file RuleEconomy.cpp.

◆ resetTransientState()

void monopoly::rules::economy::resetTransientState ( )

Definition at line 841 of file RuleEconomy.cpp.

◆ restartEconomyPhase()

bool monopoly::rules::economy::restartEconomyPhase ( GameState &  state,
const actions::Message &  message 
)

Definition at line 2719 of file RuleEconomy.cpp.

◆ sellAllBuildingsForSettlement()

void monopoly::rules::economy::sellAllBuildingsForSettlement ( GameState &  state,
std::uint8_t  squareNo 
)

Definition at line 808 of file RuleEconomy.cpp.

◆ stackDebt()

void monopoly::rules::economy::stackDebt ( GameState &  state,
PlayerNumber  fromPlayer,
PlayerNumber  toPlayer,
std::int64_t  amount 
)

Definition at line 942 of file RuleEconomy.cpp.

◆ stackDebtAndRestart()

void monopoly::rules::economy::stackDebtAndRestart ( GameState &  state,
PlayerNumber  fromPlayer,
PlayerNumber  toPlayer,
std::int64_t  amount 
)

Definition at line 960 of file RuleEconomy.cpp.

◆ transferPropertyForSettlement()

void monopoly::rules::economy::transferPropertyForSettlement ( GameState &  state,
std::uint8_t  squareNo,
PlayerNumber  toPlayer 
)

Definition at line 826 of file RuleEconomy.cpp.