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

The boundary across the tunnel at the start of each section of a song, with the name of the section and a flash when the camera looks through it. More...

#include <tnldivider.h>

Collaboration diagram for TnlDivider:

Classes

struct  Section
 One boundary, 0xc bytes. More...

Public Member Functions

 TnlDivider ()
 Construct the boundary from its objects and fit them to the layout.
void ScaleParticles (float flScale)
 Scale the emission rates of the particles of the boundary.
void Reset ()
 Remove every boundary.
void AddSection (float flTick, const char *pszLabel, float flTextScale)
 Add a boundary, dropping those more than a bar behind the song.
float TicksSinceSection (float flTick) const
 Report the ticks since the last boundary at or before a tick.
void ClearSections ()
 Remove every boundary.
void Poll (float flDelta, GfxTunnel *pTunnel)
 Move the boundary to the current section and animate it.
void Draw ()
 Draw the boundary, then the current environment.
void SetConditionFrame (float flConditionFrame)
void SetEnabled (int nEnabled)

Static Public Member Functions

static void SetLayout (const Vector3 *pScale, const Vector3 *pOffset)
 Set the scale and the offset every boundary is built with.

Static Public Attributes

static float sFlashTime
 The milliseconds of the flash.
static Vector3 sScale
 The scale every boundary is built with.
static Vector3 sOffset
 The offset every boundary is built with.

Detailed Description

The boundary across the tunnel at the start of each section of a song, with the name of the section and a flash when the camera looks through it.

The RTTI of the nested Section identifies the class, which is not polymorphic. The object is 0x94 bytes.

Constructor & Destructor Documentation

◆ TnlDivider()

TnlDivider::TnlDivider ( )

Construct the boundary from its objects and fit them to the layout.

Ghidra address:
NTSC-U/C: 0x001ef868
Ghidra address:
PAL: 0x001f8608

Member Function Documentation

◆ ScaleParticles()

void TnlDivider::ScaleParticles ( float flScale)

Scale the emission rates of the particles of the boundary.

Parameters
flScaleThe factor.
Ghidra address:
NTSC-U/C: 0x001f0008
Ghidra address:
PAL: 0x001f8da8

◆ Reset()

void TnlDivider::Reset ( )

Remove every boundary.

Ghidra address:
NTSC-U/C: 0x001f0048
Ghidra address:
PAL: 0x001f8de8

◆ AddSection()

void TnlDivider::AddSection ( float flTick,
const char * pszLabel,
float flTextScale )

Add a boundary, dropping those more than a bar behind the song.

A boundary at the tick of one already added is ignored.

Parameters
flTickThe tick of the boundary.
pszLabelThe text of the boundary, or null for the default text.
flTextScaleThe scale of the text.
Ghidra address:
NTSC-U/C: 0x001f0068
Ghidra address:
PAL: 0x001f8e08

◆ TicksSinceSection()

float TnlDivider::TicksSinceSection ( float flTick) const

Report the ticks since the last boundary at or before a tick.

Parameters
flTickThe tick.
Returns
The ticks, or 1e9 for a tick before every boundary.
Ghidra address:
NTSC-U/C: 0x001f0290
Ghidra address:
PAL: 0x001f9030

◆ ClearSections()

void TnlDivider::ClearSections ( )

Remove every boundary.

Ghidra address:
NTSC-U/C: 0x001f0248
Ghidra address:
PAL: 0x001f8fe8

◆ Poll()

void TnlDivider::Poll ( float flDelta,
GfxTunnel * pTunnel )

Move the boundary to the current section and animate it.

Parameters
flDeltaThe time since the last update.
pTunnelThe tunnel.
Ghidra address:
NTSC-U/C: 0x001f02f8
Ghidra address:
PAL: 0x001f9098

◆ Draw()

void TnlDivider::Draw ( )

Draw the boundary, then the current environment.

Ghidra address:
NTSC-U/C: 0x001f0770
Ghidra address:
PAL: 0x001f9510

◆ SetLayout()

void TnlDivider::SetLayout ( const Vector3 * pScale,
const Vector3 * pOffset )
static

Set the scale and the offset every boundary is built with.

Parameters
pScaleThe scale.
pOffsetThe offset.
Ghidra address:
NTSC-U/C: 0x001f0940
Ghidra address:
PAL: 0x001f96e0

◆ SetConditionFrame()

void TnlDivider::SetConditionFrame ( float flConditionFrame)
inline
Parameters
flConditionFrameThe frame of mConditionView.

◆ SetEnabled()

void TnlDivider::SetEnabled ( int nEnabled)
inline
Parameters
nEnabledWhether the boundary shows.

Member Data Documentation

◆ sFlashTime

float TnlDivider::sFlashTime
static

The milliseconds of the flash.

Ghidra address:
NTSC-U/C: 0x003afb24
Ghidra address:
PAL: 0x0042e9bc

◆ sScale

Vector3 TnlDivider::sScale
static

The scale every boundary is built with.

Ghidra address:
NTSC-U/C: 0x0043b5f0

◆ sOffset

Vector3 TnlDivider::sOffset
static

The offset every boundary is built with.

Ghidra address:
NTSC-U/C: 0x0043b600

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