wavelength 1.0.0
Loading...
Searching...
No Matches
TnlFire::Chunk Class Reference

A chunk flying off the track, an instance of the mesh of a model. More...

#include <tnlfire.h>

Public Member Functions

 Chunk ()
 Make an idle chunk.
void Spawn (ChunkModel *pModel, int bAuto, int nTrack, const Transform *pCellXfm, const Transform *pBlendXfm, std::list< Transform > *pFreeXfms, float flTick)
 Launch the chunk from a cell of a track with a random velocity and life.
void Reset (std::list< Transform > *pFreeXfms)
 Give the instance back to the pool of transforms and make the chunk idle.
bool Update (float flTicks)
 Move the chunk under the world force and place its instance with its animation.

Detailed Description

A chunk flying off the track, an instance of the mesh of a model.

The class is not polymorphic. RTTI identifies it. The object is 0x70 bytes. An idle chunk waits in the pool of the fire, and its instance transform waits in the pool of transforms.

Constructor & Destructor Documentation

◆ Chunk()

TnlFire::Chunk::Chunk ( )

Make an idle chunk.

The binary expands it inline.

Member Function Documentation

◆ Spawn()

void TnlFire::Chunk::Spawn ( ChunkModel * pModel,
int bAuto,
int nTrack,
const Transform * pCellXfm,
const Transform * pBlendXfm,
std::list< Transform > * pFreeXfms,
float flTick )

Launch the chunk from a cell of a track with a random velocity and life.

Parameters
pModelThe model.
bAutoWhether the capture is automatic. It picks the range of the velocity.
nTrackThe track. It picks the scale of the chunk.
pCellXfmThe transform of the cell.
pBlendXfmThe transform of the middle of the tunnel. The chunk does not read it.
pFreeXfmsThe pool of transforms the instance of the chunk comes from.
flTickThe tick of the launch.
Ghidra address:
NTSC-U/C: 0x001d4680
Ghidra address:
PAL: 0x001dd420

◆ Reset()

void TnlFire::Chunk::Reset ( std::list< Transform > * pFreeXfms)

Give the instance back to the pool of transforms and make the chunk idle.

Parameters
pFreeXfmsThe pool of transforms.
Ghidra address:
NTSC-U/C: 0x001d48e0
Ghidra address:
PAL: 0x001dd680

◆ Update()

bool TnlFire::Chunk::Update ( float flTicks)

Move the chunk under the world force and place its instance with its animation.

Parameters
flTicksThe ticks since the last update.
Returns
Whether the life of the chunk is over, in which case nothing moves.
Ghidra address:
NTSC-U/C: 0x001d4948
Ghidra address:
PAL: 0x001dd6e8

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