9 #ifndef TurtleBrainsExpress_HealthBar_hpp
10 #define TurtleBrainsExpress_HealthBar_hpp
12 #include <turtle_brains/graphics/tb_graphic.hpp>
13 #include <turtle_brains/graphics/tb_sprite.hpp>
14 #include <turtle_brains/graphics/tb_text.hpp>
15 #include <turtle_brains/graphics/tb_basic_shapes.hpp>
17 #include <turtle_brains/game/tb_entity_behavior_interface.hpp>
18 #include <turtle_brains/game/tb_game_timer.hpp>
113 virtual void OnUpdate(
const float deltaTime)
override;
118 virtual void OnRender(
void)
const override;
125 void GenerateBoxes(
void);
211 virtual void OnRender(
void)
const override;
284 virtual void OnUpdate(
const float deltaTime)
override;
291 float mTimePerChange;
309 virtual ~ButterflyBehavior(
void);
311 void OnAdd(
void)
override;
312 void OnSimulate(
void)
override;
Definition: tb_vector.hpp:48
Definition: tb_graphic.hpp:61
Definition: tb_entity.hpp:46
Definition: tbx_health_bar.hpp:22
void SetTotal(const tbCore::uint16 total)
void SetIcons(const tbGraphics::Sprite &fillingSprite, const tbGraphics::Sprite &backingSprite)
virtual ~HealthIcons(void)
uint16_t uint16
Unsigned integer with a size of 16 bits. Supports values from 0 to 65535.
Definition: tb_types.hpp:26
virtual void OnRender(void) const override
virtual tbGraphics::PixelSpace GetPixelHeight(void) const override
Definition: tb_entity_behavior_interface.hpp:24
A collection of objects and functions to express games quickly.
void SetCount(const tbCore::uint16 count)
void SetFillColor(const tbGraphics::Color &fillColor)
HealthBar(const tbGraphics::Color &fillColor=tbGraphics::ColorPalette::Green, const tbGraphics::Color &backColor=tbGraphics::ColorPalette::Black)
Counter(tbCore::uint16 total)
void SetCount(const tbCore::uint16 count)
virtual tbGraphics::PixelSpace GetPixelWidth(void) const override
HealthIcons(const tbGraphics::Sprite &fillingSprite, const tbGraphics::Sprite &backingSprite)
Definition: tbx_health_bar.hpp:28
Definition: tb_color.hpp:24
virtual void OnRender(void) const override
Definition: tbx_health_bar.hpp:146
const tbCore::uint16 & GetTotal(void) const
virtual void OnUpdate(const float deltaTime) override
tbCore::uint16 PixelSpace
Definition: tb_texture_manager.hpp:36
Definition: tb_text.hpp:42
void SetTotal(const tbCore::uint16 total)
const tbCore::uint16 & GetTotal(void) const
const tbCore::uint16 & GetCount(void) const
void SetCount(const tbCore::uint16 count)
const tbCore::uint16 & GetCount(void) const
const tbCore::uint16 & GetCount(void) const
Definition: tbx_health_bar.hpp:229
void SetTotal(const tbCore::uint16 total)
void SetSize(const tbGraphics::PixelSpace &width, const tbGraphics::PixelSpace &height)
const tbCore::uint16 & GetTotal(void) const
virtual void OnUpdate(const float deltaTime) override
Definition: tb_game_timer.hpp:25
Definition: tb_basic_shapes.hpp:237
Definition: tb_sprite.hpp:136