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

The Controls dialog. More...

#include <controls_view.h>

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

Public Member Functions

 controls_view (const side &player_side)
 
void draw_impl () override
 Show the menu on-screen.
 
const auto & get_layout () const noexcept
 
const auto & get_physical_controllers () const noexcept
 
side get_player_side () const
 The player we are setting up the controls of.
 
const auto & get_selected () const noexcept
 
bool process_event_impl (sf::Event &event) override
 Process all events.
 
void process_resize_event_impl (sf::Event &event) override
 Resize.
 
void set_text_style (sf::Text &text)
 Set a uniform text style.
 
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.
 
- 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

The Controls dialog.

The Controls dialog is where the user determines which controllers (e.g. keyboard or mouse) are used.

Constructor & Destructor Documentation

◆ controls_view()

controls_view::controls_view ( const side player_side)

Member Function Documentation

◆ draw_impl()

void controls_view::draw_impl ( )
overridevirtual

Show the menu on-screen.

Implements view.

◆ get_layout()

const auto & controls_view::get_layout ( ) const
inlinenoexcept

◆ get_physical_controllers()

const auto & controls_view::get_physical_controllers ( ) const
inlinenoexcept

◆ get_player_side()

side controls_view::get_player_side ( ) const
inline

The player we are setting up the controls of.

◆ get_selected()

const auto & controls_view::get_selected ( ) const
inlinenoexcept

◆ process_event_impl()

bool controls_view::process_event_impl ( sf::Event &  event)
overridevirtual

Process all events.

Returns
if the user wants to quit

Implements view.

◆ process_resize_event_impl()

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

Resize.

Implements view.

◆ set_text_style()

void controls_view::set_text_style ( sf::Text &  text)

Set a uniform text style.

◆ start_impl()

void controls_view::start_impl ( )
overridevirtual

Prepare this window for being shown.

Implements view.

◆ stop_impl()

void controls_view::stop_impl ( )
overridevirtual

Clean up after this window has been shown.

Implements view.

◆ tick_impl()

void controls_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: