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

The arrow that marks the next gem of a streak on a track, with a text, which blinks out of its old place and into its new one. More...

#include <tnlstreakgemfx.h>

Collaboration diagram for TnlStreakGemFX:

Public Member Functions

 TnlStreakGemFX (int nTrack, int nPlayer)
 Construct a hidden arrow of a track.
 ~TnlStreakGemFX ()
 Destroy the arrow.
void Hide (bool bNow)
 Fade the arrow out.
void Show (float flTick, int nSlot)
 Move the arrow to a gem, fading it out of its old place first.
void SetText (const char *pszText)
 Set the text of the arrows, or queue it while an arrow is shown.
void Refresh (GfxTunnel *pTunnel)
 Place the shown arrow again where the tunnel changed under it.
void Poll (float flDelta, GfxTunnel *pTunnel)
 Advance the blink of the arrow.
void Draw ()
 Draw the arrow, faded by its blink and by its distance ahead of the song.

Static Public Attributes

static float sBlinkRate
 The blink per millisecond, the reciprocal of streak_arrow_fade_ms clamped to 0 to 1.
static char sPendingText [16]
 The text that waits for no arrow to be shown, or empty.
static unsigned char sShownMask
 The bit of each shown arrow.
static LinearInterpolator sDistanceFade
 The fade of an arrow by its ticks ahead of the song.

Detailed Description

The arrow that marks the next gem of a streak on a track, with a text, which blinks out of its old place and into its new one.

The RTTI identifies the class, which is not polymorphic. The object is 0x74 bytes. The arrows of all tracks share one text. A new text waits in sPendingText while an arrow is shown.

Constructor & Destructor Documentation

◆ TnlStreakGemFX()

TnlStreakGemFX::TnlStreakGemFX ( int nTrack,
int nPlayer )

Construct a hidden arrow of a track.

Parameters
nTrackThe track.
nPlayerThe player whose colour the arrow takes.
Ghidra address:
NTSC-U/C: 0x001f0968
Ghidra address:
PAL: 0x001f9708

◆ ~TnlStreakGemFX()

TnlStreakGemFX::~TnlStreakGemFX ( )

Destroy the arrow.

Ghidra address:
NTSC-U/C: 0x001f0bf8
Ghidra address:
PAL: 0x001f9998

Member Function Documentation

◆ Hide()

void TnlStreakGemFX::Hide ( bool bNow)

Fade the arrow out.

Parameters
bNowWhether the arrow vanishes at once and gives up its place in sShownMask.
Ghidra address:
NTSC-U/C: 0x001f0c20
Ghidra address:
PAL: 0x001f99c0

◆ Show()

void TnlStreakGemFX::Show ( float flTick,
int nSlot )

Move the arrow to a gem, fading it out of its old place first.

Parameters
flTickThe tick of the gem.
nSlotThe slot of the gem across the track.
Ghidra address:
NTSC-U/C: 0x001f0c68
Ghidra address:
PAL: 0x001f9a08

◆ SetText()

void TnlStreakGemFX::SetText ( const char * pszText)

Set the text of the arrows, or queue it while an arrow is shown.

Parameters
pszTextThe text.
Ghidra address:
NTSC-U/C: 0x001f0ca0
Ghidra address:
PAL: 0x001f9a40

◆ Refresh()

void TnlStreakGemFX::Refresh ( GfxTunnel * pTunnel)

Place the shown arrow again where the tunnel changed under it.

Parameters
pTunnelThe tunnel.
Ghidra address:
NTSC-U/C: 0x001f0d00
Ghidra address:
PAL: 0x001f9aa0

◆ Poll()

void TnlStreakGemFX::Poll ( float flDelta,
GfxTunnel * pTunnel )

Advance the blink of the arrow.

Parameters
flDeltaThe time since the last update.
pTunnelThe tunnel.
Ghidra address:
NTSC-U/C: 0x001f0d60
Ghidra address:
PAL: 0x001f9b00

◆ Draw()

void TnlStreakGemFX::Draw ( )

Draw the arrow, faded by its blink and by its distance ahead of the song.

Ghidra address:
NTSC-U/C: 0x001f0eb8
Ghidra address:
PAL: 0x001f9c58

Member Data Documentation

◆ sBlinkRate

float TnlStreakGemFX::sBlinkRate
static

The blink per millisecond, the reciprocal of streak_arrow_fade_ms clamped to 0 to 1.

Ghidra address:
NTSC-U/C: 0x003afb20
Ghidra address:
PAL: 0x0042e9b8

◆ sPendingText

char TnlStreakGemFX::sPendingText[16]
static

The text that waits for no arrow to be shown, or empty.

Ghidra address:
NTSC-U/C: 0x003afb78
Ghidra address:
PAL: 0x0042ea10

◆ sShownMask

unsigned char TnlStreakGemFX::sShownMask
static

The bit of each shown arrow.

Ghidra address:
NTSC-U/C: 0x003afb88
Ghidra address:
PAL: 0x0042ea20

◆ sDistanceFade

LinearInterpolator TnlStreakGemFX::sDistanceFade
static

The fade of an arrow by its ticks ahead of the song.

Ghidra address:
NTSC-U/C: 0x0043b5c8

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