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

The look of one bar of a track waiting to be applied to its panel, either once the track is no longer captured or by a reveal that sweeps the panel along the bar. More...

#include <gfxtunnelpanel.h>

Public Member Functions

 GfxTunnelPanel (GfxTunnel *pTunnel, int nTrack, const GfxTunnel::BarData *pBar, const Color *pColor)
 Copy the look of a bar and resolve the state of its panel.
void SetDeferred (int bDeferred, float flRevealTick)
 Choose whether the panel waits for its track, and the tick its reveal starts at.
void ResolveState ()
 Choose the transparency, the pickability, and the checkpoint material from the flags, the owner, and the song mapping of the bar.
void Apply ()
 Give the panel its state, and in a remix the checkpoint material of the bar of track 0.
void Refresh ()
 Finish a running reveal at once.
bool Update (GfxTunnel *pTunnel, float flTick)
 Advance the panel.

Detailed Description

The look of one bar of a track waiting to be applied to its panel, either once the track is no longer captured or by a reveal that sweeps the panel along the bar.

The RTTI identifies the class, an element of the list of panels of the tunnel. The class is not polymorphic, and the object is 0x3c bytes.

Constructor & Destructor Documentation

◆ GfxTunnelPanel()

GfxTunnelPanel::GfxTunnelPanel ( GfxTunnel * pTunnel,
int nTrack,
const GfxTunnel::BarData * pBar,
const Color * pColor )

Copy the look of a bar and resolve the state of its panel.

Parameters
pTunnelThe tunnel.
nTrackThe track.
pBarThe bar.
pColorThe colour of the panel.
Ghidra address:
NTSC-U/C: 0x001d6ef0
Ghidra address:
PAL: 0x001dfc90

Member Function Documentation

◆ SetDeferred()

void GfxTunnelPanel::SetDeferred ( int bDeferred,
float flRevealTick )

Choose whether the panel waits for its track, and the tick its reveal starts at.

Parameters
bDeferredWhether the panel waits until its track is no longer captured.
flRevealTickThe tick the reveal starts at.
Ghidra address:
NTSC-U/C: 0x001d6f80
Ghidra address:
PAL: 0x001dfd20

◆ ResolveState()

void GfxTunnelPanel::ResolveState ( )

Choose the transparency, the pickability, and the checkpoint material from the flags, the owner, and the song mapping of the bar.

Ghidra address:
NTSC-U/C: 0x001d6f90
Ghidra address:
PAL: 0x001dfd30

◆ Apply()

void GfxTunnelPanel::Apply ( )

Give the panel its state, and in a remix the checkpoint material of the bar of track 0.

Ghidra address:
NTSC-U/C: 0x001d7040
Ghidra address:
PAL: 0x001dfde0

◆ Refresh()

void GfxTunnelPanel::Refresh ( )

Finish a running reveal at once.

Ghidra address:
NTSC-U/C: 0x001d70e0
Ghidra address:
PAL: 0x001dfe80

◆ Update()

bool GfxTunnelPanel::Update ( GfxTunnel * pTunnel,
float flTick )

Advance the panel.

Parameters
pTunnelThe tunnel, which reports whether the track is captured.
flTickThe tick of the song.
Returns
Whether the panel still waits; false once it is applied or dropped.
Ghidra address:
NTSC-U/C: 0x001d7128
Ghidra address:
PAL: 0x001dfec8

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