The Options dialog.
More...
#include <options_view.h>
◆ options_view()
| options_view::options_view |
( |
| ) |
|
|
explicit |
◆ draw_impl()
| void options_view::draw_impl |
( |
| ) |
|
|
overridevirtual |
Draw the menu on the main window.
Implements view.
◆ get_game_options()
| const auto & options_view::get_game_options |
( |
| ) |
const |
|
inlinenoexcept |
◆ get_layout()
| const auto & options_view::get_layout |
( |
| ) |
const |
|
inlinenoexcept |
◆ get_physical_controllers()
| const auto & options_view::get_physical_controllers |
( |
| ) |
const |
|
inlinenoexcept |
◆ get_selected()
◆ has_accepted()
| bool options_view::has_accepted |
( |
| ) |
const |
|
inlinenoexcept |
Has the user accepted these settings?
This is signalled by how this window is closed:
- Enter: yes, accept
- Escape: no, reject, keep old game options
◆ process_event_impl()
| bool options_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 options_view::process_resize_event_impl |
( |
sf::Event & |
event | ) |
|
|
overridevirtual |
Process a resize event.
Implements view.
◆ set_game_options()
| void options_view::set_game_options |
( |
const game_options & |
go | ) |
|
|
inlinenoexcept |
Set the game options.
This is used by the main window, that holds the game options that are used in the rest of the game.
◆ set_selected()
Select an item.
Play a sound when the selected item changes
◆ start_impl()
| void options_view::start_impl |
( |
| ) |
|
|
overridevirtual |
Prepare this window for being shown.
Implements view.
◆ stop_impl()
| void options_view::stop_impl |
( |
| ) |
|
|
overridevirtual |
Clean up after this window has been shown.
Implements view.
◆ tick_impl()
| void options_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: