wavelength 1.0.0
Loading...
Searching...
No Matches
HudPoints Class Reference

Points a player is building on the current phrase, and the points that fly off when the phrase is captured or lost. More...

#include <hudpoints.h>

Public Member Functions

 HudPoints (int nIndex)
 Construct an empty display of a player.
 ~HudPoints ()=default
 Destroy the display.
void Reset ()
 Empty the display.
void SetEnabled (bool bEnabled)
 Enable or disable the display, and empty it.
void Poll (float fUnused, float fDelta)
 Advance the flight of the exiting points and the glow of the pending points.
void ScaleText (RndTransformable *pText)
 Scale a text by the size of the points and the swell of the glow.
void ShowPoints (int nPoints, const char *pszText)
 Show the pending points.
void SetMultiplier (int nMultiplier, int bHot, const char *pszText)
 Show the multiplier of the pending points, or hide it for an empty text.
void HideMultiplier ()
 Hide the multiplier.
void Flash (float fMinSwell)
 Flash the pending points, swelling them from a minimum size.
void End (int nResult)
 End the pending points: fly off the points multiplied, fly off the plain points, or clear them.

Static Public Attributes

static constexpr float kExitRestFrame = 100.0f
 The frame of the exit animation at which it rests.

Detailed Description

Points a player is building on the current phrase, and the points that fly off when the phrase is captured or lost.

The class is not polymorphic and emits no RTTI. The object is 0x58 bytes. The title follows the points display of the previous game, which shares the scene objects.

Constructor & Destructor Documentation

◆ HudPoints()

HudPoints::HudPoints ( int nIndex)
explicit

Construct an empty display of a player.

The scene objects are <hud> pts_exit<n>.blur, <hud> pts_exit<n>.view, <hud> pts_exit<n>.txt, <hud> pts<n>.txt, and <hud> ptsmult<n>.txt. An online game uses the HUDn objects of number 0.

Parameters
nIndexThe number of the display, from 0.
Ghidra address:
NTSC-U/C: 0x001be398
Ghidra address:
PAL: 0x001c7138

◆ ~HudPoints()

HudPoints::~HudPoints ( )
default

Destroy the display.

Ghidra address:
NTSC-U/C: 0x001be840
Ghidra address:
PAL: 0x001c75e0

Member Function Documentation

◆ Reset()

void HudPoints::Reset ( )

Empty the display.

Ghidra address:
NTSC-U/C: 0x001be770
Ghidra address:
PAL: 0x001c7510

◆ SetEnabled()

void HudPoints::SetEnabled ( bool bEnabled)

Enable or disable the display, and empty it.

Parameters
bEnabledWhether the display is enabled.
Ghidra address:
NTSC-U/C: 0x001be820
Ghidra address:
PAL: 0x001c75c0

◆ Poll()

void HudPoints::Poll ( float fUnused,
float fDelta )

Advance the flight of the exiting points and the glow of the pending points.

Parameters
fUnusedNot read.
fDeltaThe time since the last poll.
Ghidra address:
NTSC-U/C: 0x001be890
Ghidra address:
PAL: 0x001c7630

◆ ScaleText()

void HudPoints::ScaleText ( RndTransformable * pText)

Scale a text by the size of the points and the swell of the glow.

Parameters
pTextThe text.
Ghidra address:
NTSC-U/C: 0x001be9f8
Ghidra address:
PAL: 0x001c7798

◆ ShowPoints()

void HudPoints::ShowPoints ( int nPoints,
const char * pszText )

Show the pending points.

Parameters
nPointsThe points.
pszTextThe text of the points.
Ghidra address:
NTSC-U/C: 0x001bea88
Ghidra address:
PAL: 0x001c7828

◆ SetMultiplier()

void HudPoints::SetMultiplier ( int nMultiplier,
int bHot,
const char * pszText )

Show the multiplier of the pending points, or hide it for an empty text.

Parameters
nMultiplierThe multiplier.
bHotWhether the points take the hot colour.
pszTextThe text of the multiplier.
Ghidra address:
NTSC-U/C: 0x001beaf8
Ghidra address:
PAL: 0x001c7898

◆ HideMultiplier()

void HudPoints::HideMultiplier ( )

Hide the multiplier.

Ghidra address:
NTSC-U/C: 0x001beb90
Ghidra address:
PAL: 0x001c7930

◆ Flash()

void HudPoints::Flash ( float fMinSwell)

Flash the pending points, swelling them from a minimum size.

Parameters
fMinSwellThe swell the points shrink back to.
Ghidra address:
NTSC-U/C: 0x001bebc0
Ghidra address:
PAL: 0x001c7960

◆ End()

void HudPoints::End ( int nResult)

End the pending points: fly off the points multiplied, fly off the plain points, or clear them.

A lost phrase of a duel flies off like a captured one, 200 frames later.

Parameters
nResultOne of GfxManager::PendingPointsResult.
Ghidra address:
NTSC-U/C: 0x001bebe8
Ghidra address:
PAL: 0x001c7988

Member Data Documentation

◆ kExitRestFrame

float HudPoints::kExitRestFrame = 100.0f
staticconstexpr

The frame of the exit animation at which it rests.


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