![]() |
Dauphine
0.1
A platforming/stealth game in a medieval fantasy setting, developed with SDL2.
|
The state for the initial menu screen. More...
#include <GStateMenu.h>
Public Member Functions | |
| GStateMenu () | |
| The constructor. More... | |
| virtual | ~GStateMenu () |
| The destructor. | |
| virtual void | load () |
| Loads the level. More... | |
| virtual void | update (const double dt_) |
| Updates the objects within the StateGame. More... | |
| virtual void | unload () |
| Unloads everything that was loaded. More... | |
| virtual void | render () |
| Renders the state. More... | |
| void | handleSelectorMenu () |
Public Member Functions inherited from StateGame | |
| virtual | ~StateGame () |
| The destructor. | |
| void | addEntity (Entity *const entity) |
| Adds an entity to the vector. | |
| void | cleanEntities () |
| Deletes all the entities inside the vector. | |
Private Types | |
| enum | Selection : uint8_t { NEWGAME = 0, CONTINUE, OPTIONS, CREDITS, TOTAL } |
Private Attributes | |
| Sprite * | menuImage |
| The image shown on the menu. More... | |
| Sprite * | menuSelector |
| The selector shown on the menu. More... | |
| double | passedTime |
| The time already elapsed since the beggining of the menu. More... | |
| int | currentSelection |
| int | selectorXPositionLeft [Selection::TOTAL] |
| The X position of the left selector. More... | |
| int | selectorYPositionLeft [Selection::TOTAL] |
| The Y position of the left selector. More... | |
| int | selectorXPositionRight [Selection::TOTAL] |
| The X position of the left selector. More... | |
| int | selectorYPositionRight [Selection::TOTAL] |
| The Y position of the left selector. More... | |
Additional Inherited Members | |
Protected Attributes inherited from StateGame | |
| std::vector< Entity * > | entities |
| List of all the entities in the state. More... | |
The state for the initial menu screen.
Game state that will contain the main menu.
| GStateMenu::GStateMenu | ( | ) |
The constructor.
Initializes all the attributes.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
private |
The image shown on the menu.
|
private |
The selector shown on the menu.
|
private |
The time already elapsed since the beggining of the menu.
|
private |
The X position of the left selector.
|
private |
The X position of the left selector.
|
private |
The Y position of the left selector.
|
private |
The Y position of the left selector.
1.8.4