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

A flash at a gem, one particle that shrinks away. More...

#include <tnlflashfx.h>

Public Member Functions

 TnlFlashFX (RndParticleSys *pSys)
 Construct an idle flash.
 ~TnlFlashFX ()
 Return the particle of a running flash.
Particle * Start (const Vector3 *pPos, float flSize, float flShrink)
 Start the flash if it is idle.
void Stop ()
 Stop the flash at once.
void Poll (float flDelta)
 Shrink the flash, and stop it once it has no size.

Detailed Description

A flash at a gem, one particle that shrinks away.

The RTTI identifies the class, which is not polymorphic. The object is 0xc bytes. The tunnel keeps a pool of them on the particle system gem_flash.ps.

Constructor & Destructor Documentation

◆ TnlFlashFX()

TnlFlashFX::TnlFlashFX ( RndParticleSys * pSys)
explicit

Construct an idle flash.

Parameters
pSysThe particle system the flash draws with.
Ghidra address:
NTSC-U/C: 0x001ef6b8
Ghidra address:
PAL: 0x001f8458

◆ ~TnlFlashFX()

TnlFlashFX::~TnlFlashFX ( )

Return the particle of a running flash.

Ghidra address:
NTSC-U/C: 0x001ef6d0
Ghidra address:
PAL: 0x001f8470

Member Function Documentation

◆ Start()

Particle * TnlFlashFX::Start ( const Vector3 * pPos,
float flSize,
float flShrink )

Start the flash if it is idle.

Parameters
pPosThe position of the flash.
flSizeThe size the flash starts at.
flShrinkThe size the flash loses per unit of time.
Returns
The particle of the flash, or null for a flash that is already running.
Ghidra address:
NTSC-U/C: 0x001ef728
Ghidra address:
PAL: 0x001f84c8

◆ Stop()

void TnlFlashFX::Stop ( )

Stop the flash at once.

Ghidra address:
NTSC-U/C: 0x001ef7c8
Ghidra address:
PAL: 0x001f8568

◆ Poll()

void TnlFlashFX::Poll ( float flDelta)

Shrink the flash, and stop it once it has no size.

Parameters
flDeltaThe time since the last update.
Ghidra address:
NTSC-U/C: 0x001ef800
Ghidra address:
PAL: 0x001f85a0

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