1 #ifndef GAME_STATES_PEOPLEDEX_HPP
2 #define GAME_STATES_PEOPLEDEX_HPP
4 #include <BLIB/Graphics.hpp>
5 #include <BLIB/Interfaces/Menu.hpp>
20 ,
public bl::input::Listener {
38 virtual const char*
name()
const override;
45 virtual void activate(bl::engine::Engine& engine)
override;
52 virtual void deactivate(bl::engine::Engine& engine)
override;
60 virtual void update(bl::engine::Engine& engine,
float dt,
float)
override;
66 bl::rc::res::TextureRef bgndTxtr;
67 bl::gfx::Sprite background;
71 bl::rc::res::TextureRef upTxtr;
72 bl::gfx::Sprite upArrow;
73 bl::rc::res::TextureRef downTxtr;
74 bl::gfx::Sprite downArrow;
76 bl::rc::res::TextureRef seenTxtr;
77 bl::gfx::Sprite seenBox;
78 bl::gfx::Text seenLabel;
80 bl::rc::res::TextureRef ownedTxtr;
81 bl::gfx::Sprite ownedBox;
82 bl::gfx::Text ownedLabel;
84 bl::rc::res::TextureRef thumbTxtr;
85 bl::gfx::Sprite thumbnail;
86 bl::gfx::Text nameLabel;
87 bl::gfx::Text descLabel;
88 bl::gfx::Text locationLabel;
95 virtual bool observe(
const bl::input::Actor&,
unsigned int activatedControl,
96 bl::input::DispatchType,
bool eventTriggered)
override;
bl::menu::TriggerDriver< Control::MoveUp, Control::MoveRight, Control::MoveDown, Control::MoveLeft, Control::Interact > MenuDriver
Helper typedef for Peoplemon specific menu driving.
Parent namespace for all functionality unique to the game.
Owns all primary systems and a reference to the engine.
The peopledex menu state.
virtual void deactivate(bl::engine::Engine &engine) override
Deactivates the state.
virtual void update(bl::engine::Engine &engine, float dt, float) override
Updates the state and menus and whatnot.
virtual void activate(bl::engine::Engine &engine) override
Activates the state.
static bl::engine::State::Ptr create(core::system::Systems &systems)
Create a new Peopledex state.
virtual ~Peopledex()=default
Destroy the Peopledex object.
virtual const char * name() const override
Returns "Peopledex".
Parent to all game states. Provides some commonly required data like core game systems.
core::system::Systems & systems