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

The lobby screen. More...

#include <lobby_view.h>

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

Public Member Functions

 lobby_view ()
 
void draw_impl () override
 Show the menu on-screen.
 
bool get_dog_mode () const noexcept
 
const auto & get_lobby_options () const noexcept
 
lobby_view_item get_selected (const side player_side) const noexcept
 Get the selected item of a player.
 
bool get_start (const side player_side) const noexcept
 Is the player ready?
 
const auto & get_layout () const noexcept
 
bool has_accepted () const noexcept
 
bool process_event_impl (sf::Event &event) override
 Process all events.
 
void process_resize_event_impl (sf::Event &event) override
 Process a resize event.
 
void set_selected (const lobby_view_item i)
 Sets the selected item.
 
void stop_impl () override
 Clean up after this window has been shown.
 
void start_impl () override
 Prepare this window for being shown.
 
void tick_impl (const delta_t dt) override
 Does the countdown.
 
- 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 lobby screen.

Constructor & Destructor Documentation

◆ lobby_view()

lobby_view::lobby_view ( )

Member Function Documentation

◆ draw_impl()

void lobby_view::draw_impl ( )
overridevirtual

Show the menu on-screen.

Implements view.

◆ get_dog_mode()

bool lobby_view::get_dog_mode ( ) const
inlinenoexcept

◆ get_layout()

const auto & lobby_view::get_layout ( ) const
inlinenoexcept

◆ get_lobby_options()

const auto & lobby_view::get_lobby_options ( ) const
inlinenoexcept

◆ get_selected()

lobby_view_item lobby_view::get_selected ( const side  player_side) const
noexcept

Get the selected item of a player.

◆ get_start()

bool lobby_view::get_start ( const side  player_side) const
noexcept

Is the player ready?

◆ has_accepted()

bool lobby_view::has_accepted ( ) const
inlinenoexcept

◆ process_event_impl()

bool lobby_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 lobby_view::process_resize_event_impl ( sf::Event &  event)
overridevirtual

Process a resize event.

Implements view.

◆ set_selected()

void lobby_view::set_selected ( const lobby_view_item  i)

Sets the selected item.

If the selected item changes, play sound

◆ start_impl()

void lobby_view::start_impl ( )
overridevirtual

Prepare this window for being shown.

Implements view.

◆ stop_impl()

void lobby_view::stop_impl ( )
overridevirtual

Clean up after this window has been shown.

Implements view.

◆ tick_impl()

void lobby_view::tick_impl ( const delta_t  dt)
overridevirtual

Does the countdown.

Implements view.


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