resonance 1.0.1
Loading...
Searching...
No Matches
HudPowerup Class Reference

Powerup indicator of one player's track display on the head-up display. More...

#include <hudpowerup.h>

Public Member Functions

 HudPowerup (int nIndex)
 Resolve the container and the six powerup views, and show nothing.
void Show (int nKind)
 Show the view of one item kind, or nothing.

Detailed Description

Powerup indicator of one player's track display on the head-up display.

The class is not polymorphic and emits no RTTI. No descriptor, tag, or file path identifies it, and its name is inferred from the pup objects it resolves. HudTrack embeds one at +0x0c.

The indicator is one container view, <layout> pup<n>.view, whose scene Show() refills with the view of one powerup kind. The six kinds with a view are the five powerups and the multiplier.

Constructor & Destructor Documentation

◆ HudPowerup()

HudPowerup::HudPowerup ( int nIndex)

Resolve the container and the six powerup views, and show nothing.

Shows the indicator's mesh, <layout> pup<n>.mesh, only in kPlayModeGame.

Parameters
nIndexThe track display number that fills <n> and the views' d.
Ghidra address:
NTSC-U/C: 0x004167d0
Ghidra address:
PAL: 0x004503d0

Member Function Documentation

◆ Show()

void HudPowerup::Show ( int nKind)

Show the view of one item kind, or nothing.

Empties the container's draw, transform, and animation lists, then adds the kind's view to all three after showing it. For a kind with no view, the container stays empty. The title is inferred.

Parameters
nKindThe PowerupType to show, or kHudItemNone.
Ghidra address:
NTSC-U/C: 0x004299a0
Ghidra address:
PAL: 0x00464fe0

The documentation for this class was generated from the following file: