Game state for the peoplemon storage system menu.
More...
#include <StorageSystem.hpp>
|
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...
|
|
Game state for the peoplemon storage system menu.
Definition at line 19 of file StorageSystem.hpp.
◆ ~StorageSystem()
virtual game::state::StorageSystem::~StorageSystem |
( |
| ) |
|
|
virtualdefault |
Destroy the Storage System object.
◆ activate()
void game::state::StorageSystem::activate |
( |
bl::engine::Engine & |
engine | ) |
|
|
overridevirtual |
◆ create()
Create a new storage system menu.
- Parameters
-
systems | The 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
-
engine | The game engine instance |
Implements game::state::State.
Definition at line 189 of file StorageSystem.cpp.
◆ name()
const char * game::state::StorageSystem::name |
( |
| ) |
const |
|
overridevirtual |
◆ update()
void game::state::StorageSystem::update |
( |
bl::engine::Engine & |
engine, |
|
|
float |
dt, |
|
|
float |
|
|
) |
| |
|
overridevirtual |
Updates the menu state.
- Parameters
-
engine | The game engine instance |
dt | Time elapsed, in seconds, since last call to update |
Implements game::state::State.
Definition at line 198 of file StorageSystem.cpp.
◆ systems
The documentation for this class was generated from the following files: