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

The overlay of a slowdown, a mesh over the screen whose animations run from the deployment of the slowdown to the tick the song is back at its speed. More...

#include <tnlslowdownfx.h>

Public Member Functions

 TnlSlowdownFX (const char *pszName, GfxTunnel *pTunnel)
 Find the objects of the overlay, scale its animation and place its mesh to cover the screen, and hide it.
 ~TnlSlowdownFX ()
 Destroy the overlay.
void LoadConfig (DataArray *pConfig, DataArray *pDefaults, GfxTunnel *pTunnel, int nOption)
 Load the settings of the overlay.
void Reset ()
 Hide the overlay and stop its animation.
void Start (float flStartTick, float flEndTick, float flStopTick)
 Show the overlay and run its animation from the song tick to the end of a slowdown.
void Update ()
 Move the animations of the overlay to the song tick, unless the slowdown has ended.
void Draw ()
 Draw the mesh of the overlay.

Detailed Description

The overlay of a slowdown, a mesh over the screen whose animations run from the deployment of the slowdown to the tick the song is back at its speed.

The class is not polymorphic, and the name is inferred from the slowdown_shell entry the tunnel creates it with and from the slowdown overlay objects it finds. The object is 0x30 bytes.

Constructor & Destructor Documentation

◆ TnlSlowdownFX()

TnlSlowdownFX::TnlSlowdownFX ( const char * pszName,
GfxTunnel * pTunnel )

Find the objects of the overlay, scale its animation and place its mesh to cover the screen, and hide it.

Parameters
pszNameThe entry of the overlay in the configuration of the tunnel.
pTunnelThe tunnel.
Ghidra address:
NTSC-U/C: 0x001d6058
Ghidra address:
PAL: 0x001dedf8

◆ ~TnlSlowdownFX()

TnlSlowdownFX::~TnlSlowdownFX ( )

Destroy the overlay.

Ghidra address:
NTSC-U/C: 0x001d6280
Ghidra address:
PAL: 0x001df020

Member Function Documentation

◆ LoadConfig()

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

Load the settings of the overlay.

The overlay has none, and the routine does nothing.

Parameters
pConfigThe configuration.
pDefaultsThe defaults of the configuration.
pTunnelThe tunnel.
nOptionThe fourth argument every loader of the tunnel receives.
Ghidra address:
NTSC-U/C: 0x001d62b0
Ghidra address:
PAL: 0x001df050

◆ Reset()

void TnlSlowdownFX::Reset ( )

Hide the overlay and stop its animation.

Ghidra address:
NTSC-U/C: 0x001d62b8
Ghidra address:
PAL: 0x001df058

◆ Start()

void TnlSlowdownFX::Start ( float flStartTick,
float flEndTick,
float flStopTick )

Show the overlay and run its animation from the song tick to the end of a slowdown.

Parameters
flStartTickThe tick the song reaches the slow speed. The overlay does not read it.
flEndTickThe tick the song starts to speed up again. The overlay does not read it.
flStopTickThe tick the song is back at its speed.
Ghidra address:
NTSC-U/C: 0x001d6320
Ghidra address:
PAL: 0x001df0c0

◆ Update()

void TnlSlowdownFX::Update ( )

Move the animations of the overlay to the song tick, unless the slowdown has ended.

Ghidra address:
NTSC-U/C: 0x001d6380
Ghidra address:
PAL: 0x001df120

◆ Draw()

void TnlSlowdownFX::Draw ( )

Draw the mesh of the overlay.

Ghidra address:
NTSC-U/C: 0x001d6410
Ghidra address:
PAL: 0x001df1b0

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