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>
|
| | 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 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.
|
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.
◆ TnlStreakGemFX()
| TnlStreakGemFX::TnlStreakGemFX |
( |
int | nTrack, |
|
|
int | nPlayer ) |
Construct a hidden arrow of a track.
- Parameters
-
| nTrack | The track. |
| nPlayer | The 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
◆ Hide()
| void TnlStreakGemFX::Hide |
( |
bool | bNow | ) |
|
Fade the arrow out.
- Parameters
-
| bNow | Whether 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
-
| flTick | The tick of the gem. |
| nSlot | The 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
-
- 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
-
- 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
-
| flDelta | The time since the last update. |
| pTunnel | The 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
◆ 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
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: