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

The frame that marks the gems ahead of a player's cursor on its track. More...

#include <tnlseeker.h>

Public Member Functions

 TnlSeeker (TnlGeom *pGeom, int nPlayer, const char *pszColor)
 Find the materials and create the mesh of a player's frame.
 ~TnlSeeker ()
 Delete the mesh and the curves.
void LoadConfig (DataArray *pConfig, DataArray *pDefaults, GfxTunnel *pTunnel, int nOption)
 Load the shape of the frame from the seeker_frame section and build the mesh.
void SetTarget (char nTrack, float flStartTick, float flEndTick)
 Start the glide to a new track and window.
void StartMultiplier (float flEndTick)
 Draw with the multiplier material, shrinking the frame until a tick.
void StopMultiplier ()
 Return to the normal material.
void SetWindow (char nTrack, float flStartTick, float flEndTick)
 Receive the window the cursor fades in on.
void OnRangeChanged (const TnlTrackRange *pRange)
 Mark the mesh for rebuilding when the tunnel changes a range that overlaps the frame.
void Poll (float flDelta, float flAlpha)
 Advance the glide and rebuild the mesh when the frame moves.

Static Public Attributes

static float sFadeSpeed
 The fade speed of the cursor, seeker_fade_speed over 1000.

Detailed Description

The frame that marks the gems ahead of a player's cursor on its track.

The class is not polymorphic, and the name is inferred from its seeker materials and mesh. The object is 0x78 bytes. The frame is a mesh of two prongs at each end of a window of ticks, joined by rails along the track. It glides to a new track and window over a time that grows with the distance, first across the tracks and then along them.

Constructor & Destructor Documentation

◆ TnlSeeker()

TnlSeeker::TnlSeeker ( TnlGeom * pGeom,
int nPlayer,
const char * pszColor )

Find the materials and create the mesh of a player's frame.

Parameters
pGeomThe geometry of the tunnel.
nPlayerThe player. The constructor does not read it.
pszColorThe colour of the player, which selects the materials and titles the mesh.
Ghidra address:
NTSC-U/C: 0x001fb6a0
Ghidra address:
PAL: 0x00204440

◆ ~TnlSeeker()

TnlSeeker::~TnlSeeker ( )

Delete the mesh and the curves.

Ghidra address:
NTSC-U/C: 0x001fb9d0
Ghidra address:
PAL: 0x00204770

Member Function Documentation

◆ LoadConfig()

void TnlSeeker::LoadConfig ( DataArray * pConfig,
DataArray * pDefaults,
GfxTunnel * pTunnel,
int nOption )

Load the shape of the frame from the seeker_frame section and build the mesh.

Parameters
pConfigThe configuration.
pDefaultsThe defaults of the configuration.
pTunnelThe tunnel. The routine does not read it.
nOptionThe fourth argument every loader of a player's tunnel graphics receives. The routine does not read it.
Ghidra address:
NTSC-U/C: 0x001fba80
Ghidra address:
PAL: 0x00204820

◆ SetTarget()

void TnlSeeker::SetTarget ( char nTrack,
float flStartTick,
float flEndTick )

Start the glide to a new track and window.

The first target is taken at once.

Parameters
nTrackThe track.
flStartTickThe start of the window.
flEndTickThe end of the window.
Ghidra address:
NTSC-U/C: 0x001fcad8
Ghidra address:
PAL: 0x00205878

◆ StartMultiplier()

void TnlSeeker::StartMultiplier ( float flEndTick)

Draw with the multiplier material, shrinking the frame until a tick.

Parameters
flEndTickThe tick the multiplier ends at. A tick already passed is ignored.
Ghidra address:
NTSC-U/C: 0x001fccb8
Ghidra address:
PAL: 0x00205a58

◆ StopMultiplier()

void TnlSeeker::StopMultiplier ( )

Return to the normal material.

Ghidra address:
NTSC-U/C: 0x001fcd28
Ghidra address:
PAL: 0x00205ac8

◆ SetWindow()

void TnlSeeker::SetWindow ( char nTrack,
float flStartTick,
float flEndTick )

Receive the window the cursor fades in on.

The body is empty.

Parameters
nTrackThe track.
flStartTickThe start of the window.
flEndTickThe end of the window.
Ghidra address:
NTSC-U/C: 0x001fcd50
Ghidra address:
PAL: 0x00205af0

◆ OnRangeChanged()

void TnlSeeker::OnRangeChanged ( const TnlTrackRange * pRange)

Mark the mesh for rebuilding when the tunnel changes a range that overlaps the frame.

Parameters
pRangeThe range that changed.
Ghidra address:
NTSC-U/C: 0x001fcd58
Ghidra address:
PAL: 0x00205af8

◆ Poll()

void TnlSeeker::Poll ( float flDelta,
float flAlpha )

Advance the glide and rebuild the mesh when the frame moves.

The frame is hidden once its end is more than 960 ticks behind the song.

Parameters
flDeltaThe ticks since the last poll. The routine does not read it.
flAlphaThe opacity of the cursor. The routine does not read it.
Ghidra address:
NTSC-U/C: 0x001fcdb0
Ghidra address:
PAL: 0x00205b50

Member Data Documentation

◆ sFadeSpeed

float TnlSeeker::sFadeSpeed
static

The fade speed of the cursor, seeker_fade_speed over 1000.

TnlCursor loads it. A glide over the longest distance lasts 2 over this speed.

Ghidra address:
NTSC-U/C: 0x003afc10
Ghidra address:
PAL: 0x0042eaa8

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