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

The flames of one particle system, scaled, coloured, and turned on and off by the fire. More...

#include <tnlfire.h>

Public Member Functions

 Emitter ()
 Make an emitter of no system.
 ~Emitter ()
 Give the system back its saved emission rates and force.
void Init (RndParticleSys *pSys, GfxTunnel *pTunnel)
 Take a system, save its emission rates and its scaled force, scale its emission box, speed, and size to the panels, show it, and stop its emission.
void SetColor (const Color *pColor)
 Colour the flames.
void Rotate (const Vector3 *pBasis)
 Turn the saved force by a basis and give it to the system.
void Start ()
 Free the particles of the system and restart its emission at the saved rates.
void Stop ()
 Stop the emission of the system.

Detailed Description

The flames of one particle system, scaled, coloured, and turned on and off by the fire.

The class is not polymorphic, and the name is inferred. The object is 0x20 bytes. It saves the emission rates of the system to stop and restart the emission, and it saves the force to turn it with the track.

Constructor & Destructor Documentation

◆ Emitter()

TnlFire::Emitter::Emitter ( )

Make an emitter of no system.

Ghidra address:
NTSC-U/C: 0x001d42d0
Ghidra address:
PAL: 0x001dd070

◆ ~Emitter()

TnlFire::Emitter::~Emitter ( )

Give the system back its saved emission rates and force.

Ghidra address:
NTSC-U/C: 0x001d42e0
Ghidra address:
PAL: 0x001dd080

Member Function Documentation

◆ Init()

void TnlFire::Emitter::Init ( RndParticleSys * pSys,
GfxTunnel * pTunnel )

Take a system, save its emission rates and its scaled force, scale its emission box, speed, and size to the panels, show it, and stop its emission.

Parameters
pSysThe system.
pTunnelThe tunnel. The emitter does not read it.
Ghidra address:
NTSC-U/C: 0x001d4330
Ghidra address:
PAL: 0x001dd0d0

◆ SetColor()

void TnlFire::Emitter::SetColor ( const Color * pColor)

Colour the flames.

The particles start white and end in the colour, opaque at the start and clear at the end.

Parameters
pColorThe colour.
Ghidra address:
NTSC-U/C: 0x001d4468
Ghidra address:
PAL: 0x001dd208

◆ Rotate()

void TnlFire::Emitter::Rotate ( const Vector3 * pBasis)

Turn the saved force by a basis and give it to the system.

Parameters
pBasisThe three rows of the basis.
Ghidra address:
NTSC-U/C: 0x001d44d0
Ghidra address:
PAL: 0x001dd270

◆ Start()

void TnlFire::Emitter::Start ( )

Free the particles of the system and restart its emission at the saved rates.

Ghidra address:
NTSC-U/C: 0x001d4518
Ghidra address:
PAL: 0x001dd2b8

◆ Stop()

void TnlFire::Emitter::Stop ( )

Stop the emission of the system.

Ghidra address:
NTSC-U/C: 0x001d4560
Ghidra address:
PAL: 0x001dd300

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