Pacman Torben Petré
Loading...
Searching...
No Matches
GameOverState Class Referencefinal

#include <GameOverState.h>

Inheritance diagram for GameOverState:
Collaboration diagram for GameOverState:

Public Member Functions

 GameOverState (StateManager &context)
 This State determines the GameOver menu when the Player has lost all their lives.
void handleInput (const sf::Event::KeyEvent &keyPressed) override
 Will return to the Menu when a specific key is pressed.
void resized () override
 Will resize the contents of the GameOver state.
void update (double dt) override
 Update the GameOverState, is used for UI animations.
void render () override
 Renders the GameOver State.
Public Member Functions inherited from State
virtual ~State ()=default

Additional Inherited Members

Protected Member Functions inherited from State
 State (StateManager &ctx)
 Creates the base State object.
Protected Attributes inherited from State
StateManagercontext

Constructor & Destructor Documentation

◆ GameOverState()

GameOverState::GameOverState ( StateManager & context)
explicit

This State determines the GameOver menu when the Player has lost all their lives.

Parameters
contextStateManager

Member Function Documentation

◆ handleInput()

void GameOverState::handleInput ( const sf::Event::KeyEvent & keyPressed)
overridevirtual

Will return to the Menu when a specific key is pressed.

Parameters
keyPressedKeyPressed event

Implements State.

◆ render()

void GameOverState::render ( )
overridevirtual

Renders the GameOver State.

Implements State.

◆ resized()

void GameOverState::resized ( )
overridevirtual

Will resize the contents of the GameOver state.

Implements State.

◆ update()

void GameOverState::update ( double dt)
overridevirtual

Update the GameOverState, is used for UI animations.

Parameters
dtDeltatime

Implements State.


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