Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Public Member Functions | List of all members
replay_view Class Reference

Dialog to view a played Conquer Chess game. More...

#include <replay_view.h>

Inheritance diagram for replay_view:
Inheritance graph
[legend]
Collaboration diagram for replay_view:
Collaboration graph
[legend]

Public Member Functions

 replay_view ()
 
void draw_impl () override
 Draw the menu on the main window.
 
bool process_event_impl (sf::Event &e) override
 Process an event.
 
void process_resize_event_impl (sf::Event &event) override
 Process a resize event.
 
void set_replay (const replay &r)
 
void start_impl () override
 Prepare this window for being shown.
 
void stop_impl () override
 Clean up after this window has been shown.
 
void tick_impl (const delta_t dt) override
 Run the game, until the user quits.
 
const auto & get_game () const noexcept
 
const auto & get_layout () const noexcept
 
const auto & get_replayer () const noexcept
 The played game.
 
const auto & get_statistics () const noexcept
 
- Public Member Functions inherited from view
 view ()
 
virtual ~view ()
 
void clear_next_state ()
 Clear the next state.
 
void draw ()
 Draw the menu on the main window.
 
const auto & get_next_state () const noexcept
 The next state to go to, if any.
 
bool is_active () const noexcept
 Is this window active?
 
bool process_event (sf::Event &e)
 Process an event.
 
void process_resize_event (sf::Event &event)
 Process a resize event.
 
void set_is_active (const bool is_active)
 Set if this window is active.
 
void set_next_state (const program_state next_state)
 Set the next state to go to.
 
void start ()
 Prepare this window for being shown.
 
void stop ()
 Clean up after this window has been shown.
 
void tick (const delta_t dt)
 Run the game, until the user quits.
 

Detailed Description

Dialog to view a played Conquer Chess game.

Constructor & Destructor Documentation

◆ replay_view()

replay_view::replay_view ( )

Member Function Documentation

◆ draw_impl()

void replay_view::draw_impl ( )
overridevirtual

Draw the menu on the main window.

Implements view.

◆ get_game()

const auto & replay_view::get_game ( ) const
inlinenoexcept

◆ get_layout()

const auto & replay_view::get_layout ( ) const
inlinenoexcept

◆ get_replayer()

const auto & replay_view::get_replayer ( ) const
inlinenoexcept

The played game.

◆ get_statistics()

const auto & replay_view::get_statistics ( ) const
inlinenoexcept

◆ process_event_impl()

bool replay_view::process_event_impl ( sf::Event &  e)
overridevirtual

Process an event.

Implements view.

◆ process_resize_event_impl()

void replay_view::process_resize_event_impl ( sf::Event &  event)
overridevirtual

Process a resize event.

Implements view.

◆ set_replay()

void replay_view::set_replay ( const replay r)

◆ start_impl()

void replay_view::start_impl ( )
overridevirtual

Prepare this window for being shown.

Implements view.

◆ stop_impl()

void replay_view::stop_impl ( )
overridevirtual

Clean up after this window has been shown.

Implements view.

◆ tick_impl()

void replay_view::tick_impl ( const delta_t  dt)
overridevirtual

Run the game, until the user quits.

Implements view.


The documentation for this class was generated from the following files: