Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
monopoly::playerselection::PlayerSelectionHistory Class Referencefinal

#include <PlayerSelectionHistory.hpp>

Public Member Functions

std::expected< void, std::string > open (std::filesystem::path path)
 
std::expected< void, std::string > gameStarted (std::span< const HistoryPlayer > players)
 
std::expected< void, std::string > gameOver (std::wstring_view name, int worth, int aiLevel)
 
std::vector< HistoryEntry > highScores () const
 
std::vector< std::wstring > names () const
 
const std::array< HistoryEntry, 100 > & entries () const noexcept
 
bool configured () const noexcept
 

Detailed Description

Definition at line 24 of file PlayerSelectionHistory.hpp.

Member Function Documentation

◆ configured()

bool monopoly::playerselection::PlayerSelectionHistory::configured ( ) const
inlinenoexcept

Definition at line 33 of file PlayerSelectionHistory.hpp.

◆ entries()

const std::array< HistoryEntry, 100 > & monopoly::playerselection::PlayerSelectionHistory::entries ( ) const
inlinenoexcept

Definition at line 32 of file PlayerSelectionHistory.hpp.

◆ gameOver()

std::expected< void, std::string > monopoly::playerselection::PlayerSelectionHistory::gameOver ( std::wstring_view  name,
int  worth,
int  aiLevel 
)

Definition at line 142 of file PlayerSelectionHistory.cpp.

◆ gameStarted()

std::expected< void, std::string > monopoly::playerselection::PlayerSelectionHistory::gameStarted ( std::span< const HistoryPlayer >  players)

Definition at line 125 of file PlayerSelectionHistory.cpp.

◆ highScores()

std::vector< HistoryEntry > monopoly::playerselection::PlayerSelectionHistory::highScores ( ) const

Definition at line 159 of file PlayerSelectionHistory.cpp.

◆ names()

std::vector< std::wstring > monopoly::playerselection::PlayerSelectionHistory::names ( ) const

Definition at line 168 of file PlayerSelectionHistory.cpp.

◆ open()

std::expected< void, std::string > monopoly::playerselection::PlayerSelectionHistory::open ( std::filesystem::path  path)

Definition at line 47 of file PlayerSelectionHistory.cpp.


The documentation for this class was generated from the following files: