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

The Loading screen. More...

#include <loading_view.h>

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

Public Member Functions

 loading_view ()
 
void draw_impl () override
 Displays this window.
 
void tick_impl (const delta_t dt) override
 Go to the next state (if any).
 
bool process_event_impl (sf::Event &event) override
 Process an event.
 
void process_resize_event_impl (sf::Event &event) override
 Process a resize event.
 
void set_text_style (sf::Text &t)
 Set the text to a uniform style.
 
void start_impl () override
 Prepare this window for being shown.
 
void stop_impl () override
 End displaying this class.
 
- 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 Loading screen.

The Loading screen loads the game resources and shows the progress in doing so.

Constructor & Destructor Documentation

◆ loading_view()

loading_view::loading_view ( )

Member Function Documentation

◆ draw_impl()

void loading_view::draw_impl ( )
overridevirtual

Displays this window.

Implements view.

◆ process_event_impl()

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

Process an event.

Returns
true if the user wants to quit the program

Implements view.

◆ process_resize_event_impl()

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

Process a resize event.

Implements view.

◆ set_text_style()

void loading_view::set_text_style ( sf::Text &  t)

Set the text to a uniform style.

◆ start_impl()

void loading_view::start_impl ( )
overridevirtual

Prepare this window for being shown.

Implements view.

◆ stop_impl()

void loading_view::stop_impl ( )
overridevirtual

End displaying this class.

Implements view.

◆ tick_impl()

void loading_view::tick_impl ( const delta_t  dt)
overridevirtual

Go to the next state (if any).

For this screen, the textures are loaded.

Implements view.


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