11#include <SFML/Graphics.hpp>
42 const auto&
get_layout() const noexcept {
return m_layout; }
Definition controls_bar.h:12
A change of in_game_time}.
Definition delta_t.h:12
Definition game_statistics_in_time.h:8
The layout of a 'Played game' dialog.
Definition replay_view_layout.h:33
Dialog to view a played Conquer Chess game.
Definition replay_view.h:16
void process_resize_event_impl(sf::Event &event) override
Process a resize event.
Definition replay_view.cpp:47
void stop_impl() override
Clean up after this window has been shown.
Definition replay_view.cpp:83
const auto & get_layout() const noexcept
Definition replay_view.h:42
void set_replay(const replay &r)
Definition replay_view.cpp:69
const auto & get_replayer() const noexcept
The played game.
Definition replay_view.h:45
void draw_impl() override
Draw the menu on the main window.
Definition replay_view.cpp:58
void tick_impl(const delta_t dt) override
Run the game, until the user quits.
Definition replay_view.cpp:90
void start_impl() override
Prepare this window for being shown.
Definition replay_view.cpp:76
const auto & get_statistics() const noexcept
Definition replay_view.h:47
bool process_event_impl(sf::Event &e) override
Process an event.
Definition replay_view.cpp:22
const auto & get_game() const noexcept
Definition replay_view.h:40
replay_view()
Definition replay_view.cpp:17
A replay.
Definition replay.h:23
const auto & get_game() const noexcept
Get the current state of the game.
Definition replay.h:37
The abstract base class of all other views.
Definition view.h:26
void draw_board(replay_view &v)
Draw the board.
Definition replay_view.cpp:98
void draw_statistics(replay_view &v)
Draw the statistics.
Definition replay_view.cpp:114