Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
StatsPlayerCashPlayback.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <cstddef>
6#include <expected>
7#include <string>
8#include <vector>
9
10namespace monopoly::statsui
11{
12 inline constexpr data::DataTag PlayerCashIconTag = 0x0355;
13 inline constexpr std::uint16_t PlayerCashPriority =
15 inline constexpr int PlayerCashLocalX = 5;
16 inline constexpr int PlayerCashLocalY = 30;
17
19 {
20 public:
21 struct Published
22 {
23 int x{};
24 int y{};
25 friend bool operator==(const Published&, const Published&) = default;
26 };
27 [[nodiscard]] std::expected<void, std::string> sync(
28 const State& state,
33
34 void reset() noexcept { current_.clear(); }
36 {
37 return current_.size();
38 }
39
40 private:
41 std::vector<Published> current_;
42 };
43}
unsigned state
unsigned index
std::expected< void, std::string > sync(const State &state, const rules::GameState &gameState, const PlayerPlaybackInputs &inputs, display::Screen2D desiredView, engine::SequencePlayback &playback)
std::uint16_t DataTag
Definition DataBanks.hpp:11
constexpr std::uint16_t PlayerBoxPriority
constexpr data::DataTag PlayerCashIconTag
constexpr std::uint16_t PlayerCashPriority
friend bool operator==(const Published &, const Published &)=default