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

A burst of a captured or erased gem, an animated view that spins along its track. More...

#include <tnlgemcapfx.h>

Public Member Functions

 TnlGemCapFX ()
 Construct an idle burst.
 ~TnlGemCapFX ()
 Destroy the burst.
void Start (GfxTunnel *pTunnel, char nTrack, RndView *pView, float flTick, float flLateral, const Vector3 *pScale, bool bErase)
 Start the burst at a gem.
void Stop ()
 Stop the burst at once.
bool Draw (TnlGeom *pGeom)
 Place, animate, and draw the burst.
bool IsIdle () const
 Report whether the burst is idle.

Static Public Attributes

static float sAnimFrames
 The frames of the animation of the view over a burst.
static float sLengths [2]
 The length of a capture burst, then of an erase burst, in milliseconds.
static float sTravels [2]
 The ticks a capture burst moves forward, then those of an erase burst.

Detailed Description

A burst of a captured or erased gem, an animated view that spins along its track.

The RTTI identifies the class, which is not polymorphic. The object is 0xc0 bytes. The tunnel keeps a pool of them.

Constructor & Destructor Documentation

◆ TnlGemCapFX()

TnlGemCapFX::TnlGemCapFX ( )

Construct an idle burst.

Ghidra address:
NTSC-U/C: 0x001ef1c8
Ghidra address:
PAL: 0x001f7f68

◆ ~TnlGemCapFX()

TnlGemCapFX::~TnlGemCapFX ( )

Destroy the burst.

Ghidra address:
NTSC-U/C: 0x001ef250
Ghidra address:
PAL: 0x001f7ff0

Member Function Documentation

◆ Start()

void TnlGemCapFX::Start ( GfxTunnel * pTunnel,
char nTrack,
RndView * pView,
float flTick,
float flLateral,
const Vector3 * pScale,
bool bErase )

Start the burst at a gem.

The burst turns to one of seven quarter turns at random, offset by the time, and a captured gem moves forward along its track while it bursts.

Parameters
pTunnelThe tunnel. The routine does not read it.
nTrackThe track of the gem.
pViewThe view the burst animates.
flTickThe tick of the gem.
flLateralThe position of the gem across its track, from 0 to 1.
pScaleThe scale of each axis of the burst.
bEraseWhether the gem is erased rather than captured.
Ghidra address:
NTSC-U/C: 0x001ef288
Ghidra address:
PAL: 0x001f8028

◆ Stop()

void TnlGemCapFX::Stop ( )

Stop the burst at once.

Ghidra address:
NTSC-U/C: 0x001ef498
Ghidra address:
PAL: 0x001f8238

◆ Draw()

bool TnlGemCapFX::Draw ( TnlGeom * pGeom)

Place, animate, and draw the burst.

Parameters
pGeomThe geometry of the tracks.
Returns
Whether the burst ended during the call.
Ghidra address:
NTSC-U/C: 0x001ef4b0
Ghidra address:
PAL: 0x001f8250

◆ IsIdle()

bool TnlGemCapFX::IsIdle ( ) const

Report whether the burst is idle.

Returns
Whether the burst is idle.
Ghidra address:
NTSC-U/C: 0x001ef6a8
Ghidra address:
PAL: 0x001f8448

Member Data Documentation

◆ sAnimFrames

float TnlGemCapFX::sAnimFrames
static

The frames of the animation of the view over a burst.

Ghidra address:
NTSC-U/C: 0x003afb08
Ghidra address:
PAL: 0x0042e9a0

◆ sLengths

float TnlGemCapFX::sLengths[2]
static

The length of a capture burst, then of an erase burst, in milliseconds.

Ghidra address:
NTSC-U/C: 0x003afb10
Ghidra address:
PAL: 0x0042e9a8

◆ sTravels

float TnlGemCapFX::sTravels[2]
static

The ticks a capture burst moves forward, then those of an erase burst.

Ghidra address:
NTSC-U/C: 0x003afb18
Ghidra address:
PAL: 0x0042e9b0

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