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

#include <VictoryState.h>

Inheritance diagram for VictoryState:
Collaboration diagram for VictoryState:

Public Member Functions

 VictoryState (StateManager &context)
 This State determines the Victory menu at the end of a single Pacman level.
void handleInput (const sf::Event::KeyEvent &keyPressed) override
 Will load the next level regardless of what key was pressed.
void resized () override
 Will resize the contents of the Victory state.
void update (double dt) override
 This is used for UI animations.
void render () override
 Renders the Victory 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

◆ VictoryState()

VictoryState::VictoryState ( StateManager & context)
explicit

This State determines the Victory menu at the end of a single Pacman level.

Parameters
contextStateManager

Member Function Documentation

◆ handleInput()

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

Will load the next level regardless of what key was pressed.

Parameters
keyPressedKeyPressed event

Implements State.

◆ render()

void VictoryState::render ( )
overridevirtual

Renders the Victory State.

Implements State.

◆ resized()

void VictoryState::resized ( )
overridevirtual

Will resize the contents of the Victory state.

Implements State.

◆ update()

void VictoryState::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: