70 std::array<ArrowPiece, 3> pieces;
115 return arrow.pieces[0].w;
123 return arrow.pieces[0].h + arrow.pieces[1].h + arrow.pieces[2].h;
131 inline const size_t getHeld()
const {
135 inline const std::array<HeldBubble, 5>& getHeldBubbles()
const {
139 void setHeldBubble(
const size_t index,
const size_t hue);
141 void shiftInHeldBubbles(
const size_t hue);
143 inline size_t heldSize()
const {
153 std::array<HeldBubble, 5> held;
156 void loadHeldBubbles();
Provides an object to manage the game HUD state.
Definition: hud.hpp:29
float getArrowWidth() const
Calculates the expected width with the current arrow layout.
Definition: hud.hpp:114
void updateHUDPosition(const float offsetX, const float offsetY)
Updates the position of the HUD.
Definition: hud.cpp:36
void updateArrowDirection(const float offsetRad)
Updates the direction of the arrow.
Definition: hud.cpp:19
float getArrowHeight() const
Calculates the expected height with the current arrow layout.
Definition: hud.hpp:122
const GameHUD::Arrow & getArrow() const
Gives readonly access to the arrow data.
Definition: hud.hpp:106
Represents a texture of the bubble shooter the player controls.
Definition: hud.hpp:47
The data structure used to handle the player's arrow.
Definition: hud.hpp:69
Describes the offset and scale of the board in reference to the window.
Definition: pboard.hpp:26