group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
PrematchBanner.hpp
Go to the documentation of this file.
1
3#pragma once
4
5#include "hud/HudWidget.hpp"
7
9{
11 void update(float dt, const HudGameState& state, HudTweenPool& tweens) override;
12 void draw(HudContext& ctx, float drawX, float drawY) override;
13
14private:
16 float timeRemaining_ = 0.f;
17 bool matchWon_ = false;
18};
Base struct for all HUD widgets.
Shared definitions for match status and state synchronization between server and clients.
MatchPhase
Definition MatchStatus.hpp:8
@ IN_PROGRESS
Definition MatchStatus.hpp:12
Accumulates HUD geometry during a frame for batch rendering.
Definition HudContext.hpp:19
Fixed-size tween pool. No heap allocations.
Definition HudTween.hpp:35
Snapshot of game state consumed by the HUD each frame.
Definition HudTypes.hpp:367
Base class for a retained HUD element.
Definition HudWidget.hpp:16
bool matchWon_
Definition PrematchBanner.hpp:17
void draw(HudContext &ctx, float drawX, float drawY) override
Emit geometry into the draw context.
Definition PrematchBanner.cpp:39
PrematchBanner()
Definition PrematchBanner.cpp:12
void update(float dt, const HudGameState &state, HudTweenPool &tweens) override
Called each frame before draw(). Update animation, consume events.
Definition PrematchBanner.cpp:19
float timeRemaining_
Definition PrematchBanner.hpp:16
MatchPhase phase_
Definition PrematchBanner.hpp:15