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

The crippler one player sends at another, which flies down the track of the victim and then sends a wave along it that bends and twists the panels. More...

#include <tnlcripfx.h>

Collaboration diagram for TnlCripFX:

Public Types

enum  State { kStateIdle = 0 , kStateFly = 1 , kStateWave = 2 }
 The values of mState. More...

Public Member Functions

 TnlCripFX (int nIndex)
 Construct an idle crippler, and for the first one the shared particles.
 ~TnlCripFX ()
 Release the shared particles.
bool Poll (float flDelta, GfxTunnel *pTunnel)
 Advance the flight or the wave.
void Draw (GfxTunnel *pTunnel)
 Draw the crippler, and land it once its flight ends.
void Start (GfxTunnel *pTunnel, char nAttacker, char nVictim)
 Send the crippler at a player.
void Stop (GfxTunnel *pTunnel, bool bRestore)
 Stop the crippler.
char ArrivedWaveTrack () const
 Report the track of a wave that has reached the victim.
void GetWaveTracks (char *pnTrack, char *pnPrevTrack) const
 Report the track of a running wave and the track it bent before.
char GetState () const

Static Public Member Functions

static void DrawParticles ()
 Draw the shared particles at the time of the song.

Static Public Attributes

static float sFlyTime
 The milliseconds of the flight, crippler_fly_time.
static float sFadeTime
 The milliseconds the view shows after landing.
static float sWaveTime
 The milliseconds of the wave, crippler_wave_time.
static float sSpatialFreqs [2]
 The radians per tick of the two waves.
static float sTimeFreqs [2]
 The radians per millisecond of the two waves.
static float sWaveDeathLength
 crippler_wave_death_length.
static float sWaveMagnitudes [2]
 The heights of the two waves.
static float sTickVelocity
 The ticks per millisecond of the flight.
static float sStartHeight
 The height the flight starts at.
static float sStartHeightVelocity
 The rise per millisecond the flight starts with.
static float sHeightAcceleration
 The change of the rise per millisecond.
static float sImpactCamJiggle
 The kick a landing gives the camera.
static float sMaxTwist
 The largest twist of the wave in radians.
static float sTwistFreq
 The radians per tick of the twist.
static RndParticleSys * sParticles
 The particles of the cripplers, crippler.part.
static float sParticleFrame
 The frame of sParticles.

Detailed Description

The crippler one player sends at another, which flies down the track of the victim and then sends a wave along it that bends and twists the panels.

The RTTI identifies the class, which is not polymorphic. The object is 0x80 bytes. Some members hold one value while the crippler flies and another once the wave runs.

Member Enumeration Documentation

◆ State

The values of mState.

Enumerator
kStateIdle 

No crippler.

kStateFly 

The crippler flies down the track.

kStateWave 

The wave runs along the track.

Constructor & Destructor Documentation

◆ TnlCripFX()

TnlCripFX::TnlCripFX ( int nIndex)
explicit

Construct an idle crippler, and for the first one the shared particles.

Parameters
nIndexThe index of the crippler.
Ghidra address:
NTSC-U/C: 0x001f10f8
Ghidra address:
PAL: 0x001f9e98

◆ ~TnlCripFX()

TnlCripFX::~TnlCripFX ( )

Release the shared particles.

Ghidra address:
NTSC-U/C: 0x001f1280
Ghidra address:
PAL: 0x001fa020

Member Function Documentation

◆ Poll()

bool TnlCripFX::Poll ( float flDelta,
GfxTunnel * pTunnel )

Advance the flight or the wave.

Parameters
flDeltaThe time since the last update.
pTunnelThe tunnel.
Returns
Whether the wave ran or ended. A flight and an idle crippler report false.
Ghidra address:
NTSC-U/C: 0x001f12b0
Ghidra address:
PAL: 0x001fa050

◆ Draw()

void TnlCripFX::Draw ( GfxTunnel * pTunnel)

Draw the crippler, and land it once its flight ends.

Parameters
pTunnelThe tunnel.
Ghidra address:
NTSC-U/C: 0x001f1ae0
Ghidra address:
PAL: 0x001fa880

◆ DrawParticles()

void TnlCripFX::DrawParticles ( )
static

Draw the shared particles at the time of the song.

Ghidra address:
NTSC-U/C: 0x001f1d48
Ghidra address:
PAL: 0x001faae8

◆ Start()

void TnlCripFX::Start ( GfxTunnel * pTunnel,
char nAttacker,
char nVictim )

Send the crippler at a player.

Parameters
pTunnelThe tunnel.
nAttackerThe attacking player. The routine does not read it.
nVictimThe crippled player.
Ghidra address:
NTSC-U/C: 0x001f1d88
Ghidra address:
PAL: 0x001fab28

◆ Stop()

void TnlCripFX::Stop ( GfxTunnel * pTunnel,
bool bRestore )

Stop the crippler.

Parameters
pTunnelThe tunnel, or null.
bRestoreWhether a running wave puts the panels it bent back.
Ghidra address:
NTSC-U/C: 0x001f1e08
Ghidra address:
PAL: 0x001faba8

◆ ArrivedWaveTrack()

char TnlCripFX::ArrivedWaveTrack ( ) const

Report the track of a wave that has reached the victim.

Returns
The track, or -1.
Ghidra address:
NTSC-U/C: 0x001f1eb0
Ghidra address:
PAL: 0x001fac50

◆ GetWaveTracks()

void TnlCripFX::GetWaveTracks ( char * pnTrack,
char * pnPrevTrack ) const

Report the track of a running wave and the track it bent before.

Parameters
pnTrackReceives the track, or -1.
pnPrevTrackReceives the track before, or -1.
Ghidra address:
NTSC-U/C: 0x001f1ee0
Ghidra address:
PAL: 0x001fac80

◆ GetState()

char TnlCripFX::GetState ( ) const
inline
Returns
The phase, one of State.

Member Data Documentation

◆ sFlyTime

float TnlCripFX::sFlyTime
static

The milliseconds of the flight, crippler_fly_time.

Ghidra address:
NTSC-U/C: 0x003afb28, PAL: 0x0042e9c0

◆ sFadeTime

float TnlCripFX::sFadeTime
static

The milliseconds the view shows after landing.

Ghidra address:
NTSC-U/C: 0x003afb2c, PAL: 0x0042e9c4

◆ sWaveTime

float TnlCripFX::sWaveTime
static

The milliseconds of the wave, crippler_wave_time.

Ghidra address:
NTSC-U/C: 0x003afb30, PAL: 0x0042e9c8

◆ sSpatialFreqs

float TnlCripFX::sSpatialFreqs[2]
static

The radians per tick of the two waves.

Ghidra address:
NTSC-U/C: 0x003afb34, PAL: 0x0042e9cc

◆ sTimeFreqs

float TnlCripFX::sTimeFreqs[2]
static

The radians per millisecond of the two waves.

Ghidra address:
NTSC-U/C: 0x003afb3c, PAL: 0x0042e9d4

◆ sWaveDeathLength

float TnlCripFX::sWaveDeathLength
static

crippler_wave_death_length.

The image never reads it.

Ghidra address:
NTSC-U/C: 0x003afb44, PAL: 0x0042e9dc

◆ sWaveMagnitudes

float TnlCripFX::sWaveMagnitudes[2]
static

The heights of the two waves.

Ghidra address:
NTSC-U/C: 0x003afb48, PAL: 0x0042e9e0

◆ sTickVelocity

float TnlCripFX::sTickVelocity
static

The ticks per millisecond of the flight.

Ghidra address:
NTSC-U/C: 0x003afb50, PAL: 0x0042e9e8

◆ sStartHeight

float TnlCripFX::sStartHeight
static

The height the flight starts at.

Ghidra address:
NTSC-U/C: 0x003afb54, PAL: 0x0042e9ec

◆ sStartHeightVelocity

float TnlCripFX::sStartHeightVelocity
static

The rise per millisecond the flight starts with.

Ghidra address:
NTSC-U/C: 0x003afb58, PAL: 0x0042e9f0

◆ sHeightAcceleration

float TnlCripFX::sHeightAcceleration
static

The change of the rise per millisecond.

Ghidra address:
NTSC-U/C: 0x003afb5c, PAL: 0x0042e9f4

◆ sImpactCamJiggle

float TnlCripFX::sImpactCamJiggle
static

The kick a landing gives the camera.

Ghidra address:
NTSC-U/C: 0x003afb60, PAL: 0x0042e9f8

◆ sMaxTwist

float TnlCripFX::sMaxTwist
static

The largest twist of the wave in radians.

Ghidra address:
NTSC-U/C: 0x003afb64, PAL: 0x0042e9fc

◆ sTwistFreq

float TnlCripFX::sTwistFreq
static

The radians per tick of the twist.

Ghidra address:
NTSC-U/C: 0x003afb68, PAL: 0x0042ea00

◆ sParticles

RndParticleSys* TnlCripFX::sParticles
static

The particles of the cripplers, crippler.part.

Ghidra address:
NTSC-U/C: 0x003afb8c, PAL: 0x0042ea24

◆ sParticleFrame

float TnlCripFX::sParticleFrame
static

The frame of sParticles.

Ghidra address:
NTSC-U/C: 0x003afb90, PAL: 0x0042ea28

◆ mFlyTick

float TnlCripFX::mFlyTick

While flying, the tick of the crippler.

◆ mWaveTrack

char TnlCripFX::mWaveTrack

While the wave runs, the track it bends.

◆ mPrevWaveTrack

char TnlCripFX::mPrevWaveTrack

While the wave runs, the track it bent before, or -1.

◆ mHeight

float TnlCripFX::mHeight

While flying, the height of the crippler.

◆ mArrived

int TnlCripFX::mArrived

While the wave runs, whether its front has reached the victim.

◆ mHeightVelocity

float TnlCripFX::mHeightVelocity

While flying, the rise per millisecond.

◆ mWaveTick

float TnlCripFX::mWaveTick

While the wave runs, the tick it started from.


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