Dauphine  0.1
A platforming/stealth game in a medieval fantasy setting, developed with SDL2.
Public Member Functions | Private Attributes | List of all members
GStateGameOver Class Reference

The state for the initial menu screen. More...

#include <GStateGameOver.h>

Public Member Functions

 GStateGameOver ()
 The constructor. More...
 
virtual ~GStateGameOver ()
 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

SpritegameOverImage
 The image shown on the menu. More...
 
double passedTime
 The time already elapsed since the beggining of the menu. More...
 
double lifeTime
 The amount of time the menu will be shown. More...
 

Additional Inherited Members

- Protected Attributes inherited from StateGame
std::vector< Entity * > entities
 List of all the entities in the state. More...
 

Detailed Description

The state for the initial menu screen.

Game state that will contain the game over screen.

Constructor & Destructor Documentation

GStateGameOver::GStateGameOver ( )

The constructor.

Initializes all the attributes.

Member Function Documentation

void GStateGameOver::load ( )
virtual

Loads the level.

From the menu.lua script, loads all the necessary objects.

Implements StateGame.

void GStateGameOver::render ( )
virtual

Renders the state.

Always renders on 0,0 position.

See Also
Sprite::render

Implements StateGame.

void GStateGameOver::unload ( )
virtual

Unloads everything that was loaded.

See Also
GStateGameOver::load

Implements StateGame.

void GStateGameOver::update ( const double  dt_)
virtual

Updates the objects within the StateGame.

Parameters
dt_: Delta time. Time elapsed between one frame and the other.

Implements StateGame.

Member Data Documentation

Sprite* GStateGameOver::gameOverImage
private

The image shown on the menu.

double GStateGameOver::lifeTime
private

The amount of time the menu will be shown.

double GStateGameOver::passedTime
private

The time already elapsed since the beggining of the menu.


The documentation for this class was generated from the following files: