1 #ifndef GAME_MENUS_STORAGECURSOR_HPP
2 #define GAME_MENUS_STORAGECURSOR_HPP
4 #include <BLIB/Graphics.hpp>
5 #include <BLIB/Resources.hpp>
8 #include <SFML/Graphics.hpp>
33 void activate(bl::ecs::Entity parent);
104 bl::engine::Engine& engine;
105 sf::Vector2i position;
106 bl::rc::res::TextureRef cursorTxtr;
107 bl::gfx::Sprite cursor;
108 bl::rc::res::TextureRef pplTxtr;
109 bl::gfx::Sprite peoplemon;
118 glm::vec2 makePos()
const;
std::underlying_type_t< Control::EntityControl > EntityControl
Helper typedef to avoid too much casting boilerplate.
Parent namespace for all functionality unique to the game.
Cursor that is used to navigate the storage system boxes.
void deactivate()
Removes from the current scene.
void update(float dt)
Updates the cursor motion.
void setHidden(bool hide)
Show or hide the cursor.
void pageRight()
Updates the cursor position if the box to the right is switched to.
bool process(core::input::EntityControl cmd, bool skipAnim)
Processes user input to move the cursor.
void setHolding(core::pplmn::Id peoplemon)
Sets a Peoplemon to render with the cursor. Pass Unknown to clear.
const sf::Vector2i & getPosition() const
Returns the position of the cursor in the box.
static float TileSize()
Returns the size of a square on the grid.
void activate(bl::ecs::Entity parent)
Adds to the current overlay.
bool moving() const
Returns whether or not the cursor position is being interpolated.
void setX(int x)
Sets the x position of the cursor.
StorageCursor(bl::engine::Engine &engine)
Construct a new Storage Cursor.
void pageLeft()
Updates the cursor position if the box to the left is switched to.