![]() |
Conquer Chess
Chess and Starcraft combined
|
The Game dialog. More...
#include <game_view.h>


Public Member Functions | |
| game_view () | |
| void | draw_impl () override |
| Show the game on-screen. | |
| void | tick_impl (delta_t dt) override |
| Run the game, until the user quits. | |
| double | get_elapsed_time_secs () const noexcept |
| The the elapsed time in seconds. | |
| const auto & | get_game () const noexcept |
| const auto & | get_game_controller () const noexcept |
| const auto & | get_game_options () const noexcept |
| const auto & | get_layout () const noexcept |
| const auto & | get_log () const noexcept |
| Get the text log, i.e. things pieces have to say. | |
| const auto & | get_physical_controllers () const noexcept |
| replay | get_replay () const |
| bool | process_event_impl (sf::Event &event) override |
| Process all events. | |
| void | process_resize_event_impl (sf::Event &event) override |
| Process a resize events. | |
| void | set_game_options (const game_options &go) noexcept |
| void | set_lobby_options (const lobby_options &lo) noexcept |
| void | start_impl () override |
| Prepare this window for being shown. | |
| void | stop_impl () override |
| Clean up after this window has been shown. | |
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. | |
The Game dialog.
The Game dialog shows the game and displays the game} class. Here is where most of the action happens.
|
explicit |
|
overridevirtual |
Show the game on-screen.
Implements view.
|
noexcept |
The the elapsed time in seconds.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Get the text log, i.e. things pieces have to say.
|
inlinenoexcept |
| replay game_view::get_replay | ( | ) | const |
|
overridevirtual |
|
overridevirtual |
Process a resize events.
Implements view.
|
inlinenoexcept |
|
noexcept |
|
overridevirtual |
Prepare this window for being shown.
Implements view.
|
overridevirtual |
Clean up after this window has been shown.
Implements view.
|
overridevirtual |
Run the game, until the user quits.
Implements view.