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

Sixteen copies of the grid meshes that march down one player's tunnel track. More...

#include <tnlgridmarkers.h>

Classes

class  Marker
 One marker, 8 bytes. More...

Public Member Functions

 TnlGridMarkers (AppTunnel *pTunnel, int nPlayerNum)
 Build the markers into the player's grid view on track 0.
void SetTrack (int nTrack)
 Move every marker onto another track at its current song position.
void Update (float flFrame)
 Recycle the markers behind the song position and fade and show each one.

Detailed Description

Sixteen copies of the grid meshes that march down one player's tunnel track.

The class is not polymorphic and emits no RTTI, and no allocation tag or file path identifies it. The name is inferred from the view it fills, "grid<n>.view", and the two meshes it copies, "grid4" and "grid8".

The markers start 240 frames apart from frame 0. A marker on a beat is a copy of "grid4" and every other marker a copy of "grid8". Update() moves a marker more than 480 frames behind the song position forward by 3840 frames, the length of the whole row, and hides a marker whose bar AppTunnel::IsTrackBarLocked() reports for mTrack.

TnlPlayer embeds one, 0x14 bytes, at +0x114. The destructor at 0x00454970 is the implicit one and is not written.

Constructor & Destructor Documentation

◆ TnlGridMarkers()

TnlGridMarkers::TnlGridMarkers ( AppTunnel * pTunnel,
int nPlayerNum )

Build the markers into the player's grid view on track 0.

Builds nothing when "grid<n>.view" does not resolve. The view's draw list is cleared first.

Parameters
pTunnelThe tunnel, queried by Update().
nPlayerNumThe player number, selecting the view.
Ghidra address:
NTSC-U/C: 0x00439150
Ghidra address:
PAL: 0x00474fa0

Member Function Documentation

◆ SetTrack()

void TnlGridMarkers::SetTrack ( int nTrack)

Move every marker onto another track at its current song position.

The image has no caller.

Parameters
nTrackThe tunnel track.
Ghidra address:
NTSC-U/C: 0x004550c8
Ghidra address:
PAL: 0x004925f8

◆ Update()

void TnlGridMarkers::Update ( float flFrame)

Recycle the markers behind the song position and fade and show each one.

A marker's alpha is (3840 - mFrame + flFrame) / 1920, capped at 0.8.

Parameters
flFrameThe song position.
Ghidra address:
NTSC-U/C: 0x00439718
Ghidra address:
PAL: 0x004755b8

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