wavelength 1.0.0
Loading...
Searching...
No Matches
BeamPool< bArg > Class Template Reference

Pool of the beams of one family, which share a look and draw under one parent. More...

#include <beampool.h>

Inheritance diagram for BeamPool< bArg >:
Collaboration diagram for BeamPool< bArg >:

Public Member Functions

 BeamPool (int nCount, RndDrawable *pParent, const char *pszName)
 Construct a pool and draw every beam under a parent.
 ~BeamPool () override=default
 Destroy the pool.
void LoadConfig (DataArray *pConfig, DataArray *pDefaults, bool bReload, float fScale)
 Read the look of the beams and give it to every beam.
Public Member Functions inherited from FxPool< Beam, bArg >
 FxPool (int nCount)
 Construct a pool of effects, every one of them free.
void Prepare (Beam *pItem)
 Prepare a new effect of the pool.
virtual ~FxPool ()=default
 Destroy the effects.
Beam * FindOldest ()
 Report the effect that started first.
Beam * Pop ()
 Take an effect off the free list.
Beam * Start (Args... args)
 Take an effect off the free list and start it.
void Release (Beam *pItem)
 Stop an effect and return it to the free list.
void Free (Beam *pItem)
 Return an effect to the pool.

Additional Inherited Members

Protected Attributes inherited from FxPool< Beam, bArg >
int mCount
Beam * mFree
std::unique_ptr< Beam[]> mItems

Detailed Description

template<bool bArg>
class BeamPool< bArg >

Pool of the beams of one family, which share a look and draw under one parent.

The RTTI names the template. The object is 0x90 bytes.

Template Parameters
bArgThe second template argument of FxPool. Its meaning is not yet recovered.

Constructor & Destructor Documentation

◆ BeamPool()

template<bool bArg>
BeamPool< bArg >::BeamPool ( int nCount,
RndDrawable * pParent,
const char * pszName )
inline

Construct a pool and draw every beam under a parent.

Parameters
nCountThe number of beams.
pParentThe drawable the beams draw under, or null.
pszNameThe configuration entry of the look of the beams.
Ghidra address:
NTSC-U/C: 0x00367f58
Ghidra address:
PAL: 0x003d6688

◆ ~BeamPool()

template<bool bArg>
BeamPool< bArg >::~BeamPool ( )
overridedefault

Destroy the pool.

Ghidra address:
NTSC-U/C: 0x00368000
Ghidra address:
PAL: 0x003d6730

Member Function Documentation

◆ LoadConfig()

template<bool bArg>
void BeamPool< bArg >::LoadConfig ( DataArray * pConfig,
DataArray * pDefaults,
bool bReload,
float fScale )
inline

Read the look of the beams and give it to every beam.

Parameters
pConfigThe section of the kind of game.
pDefaultsThe gfx section.
bReloadWhether the configuration was read before.
fScaleThe scale of the tunnel.
Ghidra address:
NTSC-U/C: 0x00367cb8
Ghidra address:
PAL: 0x003d63e8

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