Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
LocalPlayers.cpp File Reference
#include "LocalPlayers.hpp"
#include "LegacyTextIds.hpp"
#include "Messaging.hpp"
#include <array>
#include <cstddef>
#include <cstdint>
#include <string>
#include <string_view>
Include dependency graph for LocalPlayers.cpp:

Go to the source code of this file.

Namespaces

namespace  monopoly
 
namespace  monopoly::ui
 
namespace  monopoly::ui::localplayers
 

Functions

void monopoly::ui::localplayers::reset ()
 
std::size_t monopoly::ui::localplayers::count ()
 
std::size_t monopoly::ui::localplayers::humanCount ()
 
PlayerNumber monopoly::ui::localplayers::slotAt (std::size_t localIndex)
 
bool monopoly::ui::localplayers::slotIsLocalPlayer (PlayerNumber slot)
 
bool monopoly::ui::localplayers::slotIsLocalHumanPlayer (PlayerNumber slot)
 
bool monopoly::ui::localplayers::slotIsLocalAIPlayer (PlayerNumber slot)
 
bool monopoly::ui::localplayers::isLocalRecipient (PlayerNumber recipient)
 
PlayerNumber monopoly::ui::localplayers::currentUIPlayer ()
 
void monopoly::ui::localplayers::setCurrentUIPlayerFromPlayerNumber (PlayerNumber player)
 
void monopoly::ui::localplayers::setCurrentUIPlayerFromPlayerSet (const GameState &uiState, std::uint32_t playerSet)
 
PlayerNumber monopoly::ui::localplayers::anyLocalPlayer (const GameState &uiState)
 
PlayerNumber monopoly::ui::localplayers::tradeSourcePlayer (const GameState &uiState, PlayerNumber iBarCurrentPlayer)
 
PlayerNumber monopoly::ui::localplayers::housingShortageIBarPlayer (const GameState &uiState, PlayerNumber originalBuyer, std::uint32_t allowedPlayers)
 
PlayerNumber monopoly::ui::localplayers::tradeAcceptanceIBarPlayer (const GameState &uiState, PlayerNumber tradeBPlayer, std::uint32_t pendingPlayers)
 
bool monopoly::ui::localplayers::requestAddLocalPlayer (const GameState &uiState, std::wstring_view name, std::uint8_t token, std::uint8_t colour, std::uint8_t aiLevel, bool takeOverAI)
 
bool monopoly::ui::localplayers::requestRemoveLocalPlayer (const GameState &uiState, PlayerNumber player)
 
void monopoly::ui::localplayers::processRuleMessage (GameState &uiState, const actions::Message &message)
 

Variable Documentation

◆ name

std::wstring name {}

Definition at line 31 of file LocalPlayers.cpp.

◆ slot

PlayerNumber slot
Initial value:
=
NobodyPlayer

Definition at line 33 of file LocalPlayers.cpp.