Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
game::state::LoadGame Class Reference

Provides a menu to select a save and loads the selected save. More...

#include <LoadGame.hpp>

+ Inheritance diagram for game::state::LoadGame:

Public Member Functions

virtual ~LoadGame ()=default
 Destroy the New Game state. More...
 
virtual const char * name () const override
 Returns "LoadGame". More...
 
virtual void activate (bl::engine::Engine &engine) override
 Activates the state. More...
 
virtual void deactivate (bl::engine::Engine &engine) override
 Deactivates the state. More...
 
virtual void update (bl::engine::Engine &engine, float dt, float) override
 Updates the state and menus and whatnot. More...
 

Static Public Member Functions

static bl::engine::State::Ptr create (core::system::Systems &systems)
 Creates the load game state. More...
 

Protected Attributes

core::system::Systemssystems
 

Detailed Description

Provides a menu to select a save and loads the selected save.

Definition at line 19 of file LoadGame.hpp.

Constructor & Destructor Documentation

◆ ~LoadGame()

virtual game::state::LoadGame::~LoadGame ( )
virtualdefault

Destroy the New Game state.

Member Function Documentation

◆ activate()

void game::state::LoadGame::activate ( bl::engine::Engine &  engine)
overridevirtual

Activates the state.

Parameters
engineThe game engine

Implements game::state::State.

Definition at line 28 of file LoadGame.cpp.

◆ create()

LoadGame::Ptr game::state::LoadGame::create ( core::system::Systems systems)
static

Creates the load game state.

Parameters
systemsThe primary systems object
Returns
bl::engine::State::Ptr The new state

Definition at line 18 of file LoadGame.cpp.

◆ deactivate()

void game::state::LoadGame::deactivate ( bl::engine::Engine &  engine)
overridevirtual

Deactivates the state.

Parameters
engineThe game engine

Implements game::state::State.

Definition at line 78 of file LoadGame.cpp.

◆ name()

const char * game::state::LoadGame::name ( ) const
overridevirtual

Returns "LoadGame".

Implements game::state::State.

Definition at line 26 of file LoadGame.cpp.

◆ update()

void game::state::LoadGame::update ( bl::engine::Engine &  engine,
float  dt,
float   
)
overridevirtual

Updates the state and menus and whatnot.

Parameters
engineThe game engine
dtTime elapsed in seconds

Implements game::state::State.

Definition at line 84 of file LoadGame.cpp.

Member Data Documentation

◆ systems

core::system::Systems& game::state::State::systems
protectedinherited

Definition at line 66 of file State.hpp.


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