The abstract base class of all other views.
More...
#include <view.h>
The abstract base class of all other views.
◆ view()
◆ ~view()
◆ clear_next_state()
| void view::clear_next_state |
( |
| ) |
|
◆ draw()
Draw the menu on the main window.
◆ get_next_state()
| const auto & view::get_next_state |
( |
| ) |
const |
|
inlinenoexcept |
The next state to go to, if any.
◆ is_active()
| bool view::is_active |
( |
| ) |
const |
|
inlinenoexcept |
Is this window active?
It can be activated by 'start' and deactivated by 'stop'
◆ process_event()
| bool view::process_event |
( |
sf::Event & |
e | ) |
|
◆ process_resize_event()
| void view::process_resize_event |
( |
sf::Event & |
event | ) |
|
◆ set_is_active()
| void view::set_is_active |
( |
const bool |
is_active | ) |
|
Set if this window is active.
◆ set_next_state()
Set the next state to go to.
Use clear_next_state} to clear the next state
◆ start()
Prepare this window for being shown.
◆ stop()
Clean up after this window has been shown.
◆ tick()
| void view::tick |
( |
const delta_t |
dt | ) |
|
Run the game, until the user quits.
The documentation for this class was generated from the following files: