Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
StatsFutureImmunityUI.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "Display.hpp"
4#include "RuleTypes.hpp"
5#include "StatsUI.hpp"
6#include "UIMessages.hpp"
7
8#include <cstdint>
9#include <vector>
10
11namespace monopoly::statsui
12{
13 enum class FutureImmunityKind : std::uint8_t
14 {
15 Future = 0,
17 };
18
27
35 {
36 std::vector<FutureImmunityIcon> icons;
37 std::vector<FutureImmunityRow> rows;
41 bool upEnabled{};
43 bool open{};
44 };
45
46 inline constexpr Rect FutureImmunityPopupRect{601, 3, 798, 226};
47 inline constexpr Rect FutureImmunityDownRect{770, 188, 798, 226};
48 inline constexpr Rect FutureImmunityUpRect{770, 63, 798, 99};
49
50 void resetFutureImmunity(FutureImmunityState& state) noexcept;
52 FutureImmunityState& state,
53 std::vector<FutureImmunityIcon> icons);
55 FutureImmunityState& state,
56 const rules::GameState& gameState) noexcept;
58 FutureImmunityState& state, Screen statsScreen,
59 display::Screen2D view) noexcept;
60
62 FutureImmunityState& state,
66 const uimsg::Message& message) noexcept;
67}
unsigned state
unsigned index
std::uint8_t PlayerNumber
Definition RuleTypes.hpp:12
constexpr PlayerNumber NobodyPlayer
Definition RuleTypes.hpp:16
void setFutureImmunityIcons(FutureImmunityState &state, std::vector< FutureImmunityIcon > icons)
constexpr Rect FutureImmunityPopupRect
bool processFutureImmunityInput(FutureImmunityState &state, const rules::GameState &gameState, Screen statsScreen, display::Screen2D view, const uimsg::Message &message) noexcept
void refreshFutureImmunity(FutureImmunityState &state, const rules::GameState &gameState) noexcept
constexpr Rect FutureImmunityDownRect
void resetFutureImmunity(FutureImmunityState &state) noexcept
constexpr Rect FutureImmunityUpRect
void syncFutureImmunityView(FutureImmunityState &state, Screen statsScreen, display::Screen2D view) noexcept
friend bool operator==(const FutureImmunityIcon &, const FutureImmunityIcon &)=default
std::vector< FutureImmunityRow > rows
std::vector< FutureImmunityIcon > icons