group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
EquipmentSlots.hpp
Go to the documentation of this file.
1
14
15#pragma once
16
17#include "hud/HudWidget.hpp"
18
20{
21 float slotSize = 64.f;
22 float slotGap = 6.f;
23 float keyFontSize = 8.f;
24 float countFontSize = 14.f;
25 float statusFontSize = 10.f;
26
28 void update(float dt, const HudGameState& state, HudTweenPool& tweens) override;
29 void draw(HudContext& ctx, float drawX, float drawY) override;
30
31private:
33};
Base struct for all HUD widgets.
Accumulates HUD geometry during a frame for batch rendering.
Definition HudContext.hpp:18
Fixed-size tween pool. No heap allocations.
Definition HudTween.hpp:35
void update(float dt, const HudGameState &state, HudTweenPool &tweens) override
Called each frame before draw(). Update animation, consume events.
Definition EquipmentSlots.cpp:22
float statusFontSize
Definition EquipmentSlots.hpp:25
EquipmentSlots()
Definition EquipmentSlots.cpp:15
float countFontSize
Definition EquipmentSlots.hpp:24
void draw(HudContext &ctx, float drawX, float drawY) override
Emit geometry into the draw context.
Definition EquipmentSlots.cpp:31
float slotSize
Definition EquipmentSlots.hpp:21
HudEquipmentState state_
Definition EquipmentSlots.hpp:32
float keyFontSize
Definition EquipmentSlots.hpp:23
float slotGap
Definition EquipmentSlots.hpp:22
Equipment slot state — drives the bottom-center grapple/grenade/tactical row.
Definition HudTypes.hpp:157
Snapshot of game state consumed by the HUD each frame.
Definition HudTypes.hpp:192
Base class for a retained HUD element.
Definition HudWidget.hpp:16