Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
AITradeSendRuntime.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "AITradeUtility.hpp"
4
6{
7 enum class SendingTradeState : std::uint8_t
8 {
9 Nothing = 0,
14 };
15
21
26 bool tradeAccept,
27 rules::PlayerNumber proposedPlayer,
28 TradeSendRuntimeState& runtime) noexcept;
29
31 TradeSendRuntimeState& runtime,
32 actions::Type action,
33 bool success) noexcept;
34}
unsigned state
unsigned index
bool sendProposedTrade(const rules::GameState &state, rules::PlayerNumber player, const TradeProposalList &proposals, bool tradeAccept, rules::PlayerNumber proposedPlayer, TradeSendRuntimeState &runtime) noexcept
void processTradeSendActionCompleted(TradeSendRuntimeState &runtime, actions::Type action, bool success) noexcept
std::array< TradeProposalRecord, rules::MaxPlayers > TradeProposalList
std::uint8_t PlayerNumber
Definition RuleTypes.hpp:12