State for displaying the player's inventory and selecting items.
More...
#include <BagMenu.hpp>
|
virtual | ~BagMenu ()=default |
| Destroy the Bag Menu object. More...
|
|
virtual const char * | name () const override |
| Returns "BagMenu". More...
|
|
virtual void | activate (bl::engine::Engine &) override |
| Populates the menu with the player's inventory. More...
|
|
virtual void | deactivate (bl::engine::Engine &) override |
| Unsubscribes from event and input buses. More...
|
|
virtual void | update (bl::engine::Engine &, float dt, float) override |
| Updates the menu. More...
|
|
State for displaying the player's inventory and selecting items.
Definition at line 22 of file BagMenu.hpp.
◆ Context
Represents how the menu was opened and affects how it may be used.
Definition at line 27 of file BagMenu.hpp.
◆ ~BagMenu()
virtual game::state::BagMenu::~BagMenu |
( |
| ) |
|
|
virtualdefault |
Destroy the Bag Menu object.
◆ activate()
void game::state::BagMenu::activate |
( |
bl::engine::Engine & |
engine | ) |
|
|
overridevirtual |
◆ create()
bl::engine::State::Ptr game::state::BagMenu::create |
( |
core::system::Systems & |
systems, |
|
|
Context |
ctx, |
|
|
core::item::Id * |
result = nullptr , |
|
|
int |
outNow = -1 , |
|
|
int * |
chosenPeoplemon = nullptr , |
|
|
bool * |
unpause = nullptr |
|
) |
| |
|
static |
Creates a new BagMenu.
- Parameters
-
systems | The main game systems |
ctx | Context the bag is being used from |
result | Optional item to populate with the chosen item |
outNow | Index of the currently out Peoplemon if in battle |
unpause | Pointer to boolean to set if pause menu should close after bag closes |
- Returns
- bl::engine::State::Ptr
Definition at line 73 of file BagMenu.cpp.
◆ deactivate()
void game::state::BagMenu::deactivate |
( |
bl::engine::Engine & |
engine | ) |
|
|
overridevirtual |
◆ name()
const char * game::state::BagMenu::name |
( |
| ) |
const |
|
overridevirtual |
◆ update()
void game::state::BagMenu::update |
( |
bl::engine::Engine & |
engine, |
|
|
float |
dt, |
|
|
float |
|
|
) |
| |
|
overridevirtual |
◆ systems
The documentation for this class was generated from the following files: