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

#include <PausedState.h>

Inheritance diagram for PausedState:
Collaboration diagram for PausedState:

Public Member Functions

 PausedState (StateManager &context)
 This State determines the Paused menu when pausing the actual Pacman game.
void handleInput (const sf::Event::KeyEvent &keyPressed) override
 Goes back to the LevelState when specific keys are pressed.
void resized () override
 Will resize the contents of the Paused state.
void update (double dt) override
 This is used for UI animations.
void render () override
 Renders the PausedState.
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

◆ PausedState()

PausedState::PausedState ( StateManager & context)
explicit

This State determines the Paused menu when pausing the actual Pacman game.

Parameters
contextStateManager

Member Function Documentation

◆ handleInput()

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

Goes back to the LevelState when specific keys are pressed.

Parameters
keyPressedKeyPressed event

Implements State.

◆ render()

void PausedState::render ( )
overridevirtual

Renders the PausedState.

Implements State.

◆ resized()

void PausedState::resized ( )
overridevirtual

Will resize the contents of the Paused state.

Implements State.

◆ update()

void PausedState::update ( double dt)
overridevirtual

This is used for UI animations.

Parameters
dtDeltatime

Implements State.


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