Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
TradeNamePlayback.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "DataBanks.hpp"
4#include "Display.hpp"
5#include "RuleTypes.hpp"
7#include "TradeUI.hpp"
8#include "FontRuntime.hpp"
9
10#include <array>
11#include <cstdint>
12#include <expected>
13#include <optional>
14#include <string>
15
16namespace monopoly::fonts { class Runtime; }
17
18namespace monopoly::tradeui
19{
20 inline constexpr std::uint16_t TradeNamePriority = 148;
21 inline constexpr std::array<std::int32_t, 2> TradeNameX{{56, 604}};
22 inline constexpr std::array<std::int32_t, 2> TradeNameY{{229, 229}};
23
25 {
26 public:
27 [[nodiscard]] std::expected<void, std::string> sync(
28 const State& state,
33
34 void reset() noexcept;
35
36 private:
37 std::array<std::optional<data::DataId>, 2> surfaces_{};
38 std::array<std::optional<std::string>, 2> textCache_{};
39 std::array<bool, 2> visible_{};
40 std::array<bool, 2> modernAA_{};
41 std::array<std::optional<fonts::Settings>, 2> fontSettings_{};
42 };
43}
unsigned state
unsigned index
std::expected< void, std::string > sync(const State &state, const rules::GameState &gameState, display::Screen2D desiredView, fonts::Runtime *fontRuntime, engine::SequencePlayback &playback, bool modernAA=false)
constexpr std::array< std::int32_t, 2 > TradeNameY
constexpr std::array< std::int32_t, 2 > TradeNameX
constexpr std::uint16_t TradeNamePriority