![]() |
Dauphine
0.1
A platforming/stealth game in a medieval fantasy setting, developed with SDL2.
|
The state for the initial splash screen. More...
#include <GStateSplash.h>
Public Member Functions | |
| GStateSplash () | |
| The constructor. More... | |
| virtual | ~GStateSplash () |
| 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... | |
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 Attributes | |
| int | current |
| Determines which is the current splash image. More... | |
| double | passedTime |
| The time already elapsed since the beggining of the splash. More... | |
| double | lifeTime |
| The amount of time the splash will be shown. More... | |
| Sprite * | images [NUMBER_OF_SPLASH_IMAGES] |
| Contains all the splash images. More... | |
| double | ix |
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 splash screen.
Game state that will contain the initial splash images, before the main menu state is called.
| GStateSplash::GStateSplash | ( | ) |
The constructor.
Initializes all the attributes.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
private |
Determines which is the current splash image.
|
private |
Contains all the splash images.
|
private |
The amount of time the splash will be shown.
|
private |
The time already elapsed since the beggining of the splash.
1.8.4