group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
KillFeed Struct Reference

#include <KillFeed.hpp>

Inheritance diagram for KillFeed:
[legend]
Collaboration diagram for KillFeed:
[legend]

Classes

struct  Entry

Public Member Functions

 KillFeed ()
void update (float dt, const HudGameState &state, HudTweenPool &tweens) override
 Called each frame before draw(). Update animation, consume events.
void draw (HudContext &ctx, float drawX, float drawY) override
 Emit geometry into the draw context.
Public Member Functions inherited from HudWidget
virtual ~HudWidget ()=default

Public Attributes

float entryHeight = 26.f
float entryPadding = 4.f
float entryLifetime = 5.f
float fontSize = 18.f
float fadeOutDuration = 0.5f
int maxEntries = 6
Public Attributes inherited from HudWidget
bool visible = true
HudAnchor anchor = HudAnchor::TopLeft
float offsetX = 0.f
float offsetY = 0.f
float width = 0.f
float height = 0.f
float uiScale_ = 1.f
 Set by Hud each frame (screenH / 1080).

Private Attributes

std::vector< Entryentries_

Constructor & Destructor Documentation

◆ KillFeed()

KillFeed::KillFeed ( )

Member Function Documentation

◆ draw()

void KillFeed::draw ( HudContext & ctx,
float drawX,
float drawY )
overridevirtual

Emit geometry into the draw context.

Parameters
ctxImmediate-mode draw API.
drawXResolved pixel X (anchor + offset already applied).
drawYResolved pixel Y.

Implements HudWidget.

Here is the call graph for this function:

◆ update()

void KillFeed::update ( float dt,
const HudGameState & state,
HudTweenPool & tweens )
overridevirtual

Called each frame before draw(). Update animation, consume events.

Implements HudWidget.

Member Data Documentation

◆ entries_

std::vector<Entry> KillFeed::entries_
private

◆ entryHeight

float KillFeed::entryHeight = 26.f

◆ entryLifetime

float KillFeed::entryLifetime = 5.f

◆ entryPadding

float KillFeed::entryPadding = 4.f

◆ fadeOutDuration

float KillFeed::fadeOutDuration = 0.5f

◆ fontSize

float KillFeed::fontSize = 18.f

◆ maxEntries

int KillFeed::maxEntries = 6

The documentation for this struct was generated from the following files: