Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
StatsUI.hpp File Reference
#include "Display.hpp"
#include "IBarLayout.hpp"
#include "IBarRuleState.hpp"
#include "RuleTypes.hpp"
#include "UIMessages.hpp"
#include <array>
#include <cstddef>
#include <cstdint>
#include <optional>
Include dependency graph for StatsUI.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  monopoly::statsui::Rect
 
struct  monopoly::statsui::State
 

Namespaces

namespace  monopoly
 
namespace  monopoly::statsui
 

Enumerations

enum class  monopoly::statsui::Screen : std::uint8_t { monopoly::statsui::Player = 0 , monopoly::statsui::Deed = 1 , monopoly::statsui::Bank = 2 }
 
enum class  monopoly::statsui::BankDeedState : std::uint8_t { monopoly::statsui::Hidden = 0 , monopoly::statsui::Available , monopoly::statsui::Sold , monopoly::statsui::Mortgaged }
 

Functions

constexpr Rect monopoly::statsui::categoryRect (std::uint8_t index) noexcept
 
constexpr Rect monopoly::statsui::sortRect (std::uint8_t index) noexcept
 
void monopoly::statsui::reset (State &state) noexcept
 
void monopoly::statsui::refresh (State &state, const rules::GameState &gameState) noexcept
 
void monopoly::statsui::syncView (State &state, const rules::GameState &gameState, display::Screen2D view) noexcept
 
bool monopoly::statsui::selectCategory (State &state, Screen screen, const rules::GameState &gameState) noexcept
 
bool monopoly::statsui::selectSort (State &state, std::uint8_t sortIndex, const rules::GameState &gameState) noexcept
 
std::optional< Screen > monopoly::statsui::categoryHit (int x, int y) noexcept
 
std::optional< std::uint8_t > monopoly::statsui::sortHit (int x, int y) noexcept
 
void monopoly::statsui::setPropertyActionContext (State &state, ibar::RuleMode mode, rules::PlayerNumber player, bool localHuman, ibar::layout::PropertyMask buildProperties, ibar::layout::PropertyMask sellProperties, ibar::layout::PropertyMask mortgageProperties, bool modernPlayerLayout) noexcept
 
bool monopoly::statsui::modernPlayerGridActive (const State &state, const rules::GameState &gameState, rules::PlayerNumber player) noexcept
 
std::optional< Rect > monopoly::statsui::playerPropertyRect (const State &state, const rules::GameState &gameState, std::size_t column, int square) noexcept
 
std::optional< int > monopoly::statsui::propertyActionHit (const State &state, const rules::GameState &gameState, int x, int y) noexcept
 
bool monopoly::statsui::processInput (State &state, const rules::GameState &gameState, display::Screen2D view, const uimsg::Message &message) noexcept
 
int monopoly::statsui::historyScrollInput (State &state, display::Screen2D view, const uimsg::Message &message) noexcept