![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Parent to all game states. Provides some commonly required data like core game systems. More...
#include <State.hpp>
Public Member Functions | |
virtual | ~State ()=default |
Destroy the State object. More... | |
virtual const char * | name () const override=0 |
Return the name of the state. More... | |
virtual void | activate (bl::engine::Engine &engine) override=0 |
Make the state active. This is called before update() or render() and called exactly once until deactivate() is called. More... | |
virtual void | deactivate (bl::engine::Engine &engine) override=0 |
The state is now not the current state. Called after activate() More... | |
virtual void | update (bl::engine::Engine &engine, float dt, float realDt) override=0 |
Perform all update logic as required in here. More... | |
Protected Member Functions | |
State (core::system::Systems &systems, bl::engine::StateMask::V mask) | |
Initialize the state. More... | |
Protected Attributes | |
core::system::Systems & | systems |
Parent to all game states. Provides some commonly required data like core game systems.
|
virtualdefault |
Destroy the State object.
|
protected |
|
overridepure virtual |
Make the state active. This is called before update() or render() and called exactly once until deactivate() is called.
engine | The active engine |
Implemented in game::state::StoreMenu, game::state::StorageSystem, game::state::SettingsMenu, game::state::SaveGame, game::state::PeoplemonMenu, game::state::PeoplemonInfo, game::state::Peopledex, game::state::NewGame, game::state::MapExplorer, game::state::MainMenu, game::state::MainGame, game::state::LoadGame, game::state::FlyMap, game::state::Evolution, game::state::BattleWrapperState, game::state::PauseMenu, game::state::BattleState, and game::state::BagMenu.
|
overridepure virtual |
The state is now not the current state. Called after activate()
engine | The active engine |
Implemented in game::state::StoreMenu, game::state::StorageSystem, game::state::SettingsMenu, game::state::SaveGame, game::state::PeoplemonMenu, game::state::PeoplemonInfo, game::state::Peopledex, game::state::NewGame, game::state::MapExplorer, game::state::MainMenu, game::state::MainGame, game::state::LoadGame, game::state::FlyMap, game::state::Evolution, game::state::BattleWrapperState, game::state::PauseMenu, game::state::BattleState, and game::state::BagMenu.
|
overridepure virtual |
Return the name of the state.
Implemented in game::state::StoreMenu, game::state::StorageSystem, game::state::SettingsMenu, game::state::SaveGame, game::state::PeoplemonMenu, game::state::PeoplemonInfo, game::state::Peopledex, game::state::PauseMenu, game::state::NewGame, game::state::MapExplorer, game::state::MainMenu, game::state::MainGame, game::state::LoadGame, game::state::FlyMap, game::state::Evolution, game::state::BattleWrapperState, game::state::BattleState, and game::state::BagMenu.
|
overridepure virtual |
Perform all update logic as required in here.
engine | The active engine |
dt | The elapsed simulated time since the last call to update |
realDt | The elapsed real time since the last call to update |
Implemented in game::state::StoreMenu, game::state::StorageSystem, game::state::SettingsMenu, game::state::SaveGame, game::state::PeoplemonInfo, game::state::Peopledex, game::state::NewGame, game::state::MapExplorer, game::state::MainGame, game::state::LoadGame, game::state::FlyMap, game::state::Evolution, game::state::BattleWrapperState, game::state::PeoplemonMenu, game::state::PauseMenu, game::state::MainMenu, game::state::BattleState, and game::state::BagMenu.
|
protected |