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

Game state for the peoplemon storage system menu. More...

#include <StorageSystem.hpp>

+ Inheritance diagram for game::state::StorageSystem:

Public Member Functions

virtual ~StorageSystem ()=default
 Destroy the Storage System object. More...
 
virtual const char * name () const override
 Returns "StorageSystem". More...
 
virtual void activate (bl::engine::Engine &engine) override
 Initializes the menu and subscribes to event buses. More...
 
virtual void deactivate (bl::engine::Engine &engine) override
 Unsubscribes from event buses and fires a StorageSystemClosed event. More...
 
virtual void update (bl::engine::Engine &engine, float dt, float) override
 Updates the menu state. More...
 

Static Public Member Functions

static bl::engine::State::Ptr create (core::system::Systems &systems)
 Create a new storage system menu. More...
 

Protected Attributes

core::system::Systemssystems
 

Detailed Description

Game state for the peoplemon storage system menu.

Definition at line 19 of file StorageSystem.hpp.

Constructor & Destructor Documentation

◆ ~StorageSystem()

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

Destroy the Storage System object.

Member Function Documentation

◆ activate()

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

Initializes the menu and subscribes to event buses.

Parameters
engineThe game engine instance

Implements game::state::State.

Definition at line 142 of file StorageSystem.cpp.

◆ create()

bl::engine::State::Ptr game::state::StorageSystem::create ( core::system::Systems systems)
static

Create a new storage system menu.

Parameters
systemsThe main game states
Returns
bl::engine::State::Ptr The new state

Definition at line 28 of file StorageSystem.cpp.

◆ deactivate()

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

Unsubscribes from event buses and fires a StorageSystemClosed event.

Parameters
engineThe game engine instance

Implements game::state::State.

Definition at line 189 of file StorageSystem.cpp.

◆ name()

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

Returns "StorageSystem".

Implements game::state::State.

Definition at line 140 of file StorageSystem.cpp.

◆ update()

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

Updates the menu state.

Parameters
engineThe game engine instance
dtTime elapsed, in seconds, since last call to update

Implements game::state::State.

Definition at line 198 of file StorageSystem.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: