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

#include <StatsAccountRuntime.hpp>

Public Member Functions

std::expected< void, std::string > open (std::filesystem::path historyPath)
 
std::expected< void, std::string > resetGame ()
 
std::expected< void, std::string > processRuleMessage (const actions::Message &message, const rules::GameState &previous, rules::PlayerNumber iBarPlayer, int city, const data::ResourceSnapshot &resources)
 
void recordDividend () noexcept
 
void recordBankError () noexcept
 
void scroll (int lines) noexcept
 
void setScrollLimit (int lines) noexcept
 
const AccountState & state () const noexcept
 

Detailed Description

Definition at line 38 of file StatsAccountRuntime.hpp.

Member Function Documentation

◆ open()

std::expected< void, std::string > monopoly::statsui::AccountRuntime::open ( std::filesystem::path  historyPath)

Definition at line 52 of file StatsAccountRuntime.cpp.

◆ processRuleMessage()

std::expected< void, std::string > monopoly::statsui::AccountRuntime::processRuleMessage ( const actions::Message &  message,
const rules::GameState &  previous,
rules::PlayerNumber  iBarPlayer,
int  city,
const data::ResourceSnapshot &  resources 
)

Definition at line 113 of file StatsAccountRuntime.cpp.

◆ recordBankError()

void monopoly::statsui::AccountRuntime::recordBankError ( )
inlinenoexcept

Definition at line 51 of file StatsAccountRuntime.hpp.

◆ recordDividend()

void monopoly::statsui::AccountRuntime::recordDividend ( )
inlinenoexcept

Definition at line 50 of file StatsAccountRuntime.hpp.

◆ resetGame()

std::expected< void, std::string > monopoly::statsui::AccountRuntime::resetGame ( )

Definition at line 91 of file StatsAccountRuntime.cpp.

◆ scroll()

void monopoly::statsui::AccountRuntime::scroll ( int  lines)
noexcept

Definition at line 100 of file StatsAccountRuntime.cpp.

◆ setScrollLimit()

void monopoly::statsui::AccountRuntime::setScrollLimit ( int  lines)
noexcept

Definition at line 107 of file StatsAccountRuntime.cpp.

◆ state()

const AccountState & monopoly::statsui::AccountRuntime::state ( ) const
inlinenoexcept

Definition at line 54 of file StatsAccountRuntime.hpp.


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