The main Menu dialog.
More...
#include <menu_view.h>
◆ menu_view()
◆ draw_impl()
| void menu_view::draw_impl |
( |
| ) |
|
|
overridevirtual |
Show the menu on-screen.
Implements view.
◆ get_background_image_index()
| int menu_view::get_background_image_index |
( |
| ) |
const |
|
inlinenoexcept |
Get the index of the background image.
There are multiple possible background images and the one displayed is chosen randomly.
◆ get_layout()
| const auto & menu_view::get_layout |
( |
| ) |
const |
|
inlinenoexcept |
◆ get_selected()
| const auto & menu_view::get_selected |
( |
| ) |
const |
|
inlinenoexcept |
◆ process_event_impl()
| bool menu_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 menu_view::process_resize_event_impl |
( |
sf::Event & |
event | ) |
|
|
overridevirtual |
Process a resize event.
Implements view.
◆ set_selected()
Sets the selected item.
If the selected item changes, play sound
◆ start_impl()
| void menu_view::start_impl |
( |
| ) |
|
|
overridevirtual |
Start displaying this window.
Implements view.
◆ stop_impl()
| void menu_view::stop_impl |
( |
| ) |
|
|
overridevirtual |
Clean up after this window has been shown.
Implements view.
◆ tick_impl()
| void menu_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: