#include <menu.h>
Public Member Functions | |
| StartMenu (int _padding, Tile _border) | |
| Menu * | make_selection () |
Public Member Functions inherited from Menu | |
| bool | out_of_bounds (int row) |
| Menu (int _padding, Tile _border) | |
| void | move_selection (int direction) |
| void | add_item (string new_item) |
| bool | should_exit () |
| int | get_selection () |
| void | toggle_exit () |
| Screen | get_screen () |
| int | get_id () |
| int | num_extra_lines () |
| vector< string > | get_extra_lines () |
Additional Inherited Members | |
Public Attributes inherited from Menu | |
| Game * | game |
| Screen | next_screen |
| int | selection |
| string | title |
| Tile | border |
| vector< string > | options |
| bool | exit |
| int | id |
| int | padding |
| vector< string > | extra_lines |
The menu displayed for the opening screen.
| StartMenu::StartMenu | ( | int | _padding, |
| Tile | _border | ||
| ) |
Constructor for the start_menu.
| _padding | Sets the padding for the menu. |
| _border | Sets the border for the menu. |
|
virtual |
The function that handles when a selection is made in the menu. This is the most important function. There are four possibilities:
Implements Menu.
1.8.8