wavelength 1.0.0
Loading...
Searching...
No Matches
TnlGeom::TrackData Class Reference

The state of one track, 0x30 bytes. More...

#include <tnlgeom.h>

Public Member Functions

 TrackData ()
 Construct the state of a track.
void Clear ()
 Clear the overlay and the players of the track.
RndMat * GetOverlayMat () const
void SetOverlayMat (RndMat *pMat)
 Set the material drawn over the track.
int GetOverlayMode () const
void SetOverlayMode (int nMode)
 Set how the overlay is drawn.
Color & GetColor ()
const Color & GetColor () const
void SetColor (const Color &color)
 Set the colour of the panels of the track.
unsigned char GetPlayers () const
void SetPlayers (unsigned char nPlayers)
 Set the players on the track.

Detailed Description

The state of one track, 0x30 bytes.

Constructor & Destructor Documentation

◆ TrackData()

TnlGeom::TrackData::TrackData ( )

Construct the state of a track.

Ghidra address:
NTSC-U/C: 0x001d2890
Ghidra address:
PAL: 0x001db630

Member Function Documentation

◆ Clear()

void TnlGeom::TrackData::Clear ( )

Clear the overlay and the players of the track.

The colour is not changed.

Ghidra address:
NTSC-U/C: 0x001d28b8
Ghidra address:
PAL: 0x001db658

◆ GetOverlayMat()

RndMat * TnlGeom::TrackData::GetOverlayMat ( ) const
inline
Returns
The material drawn over the track, or null.

◆ SetOverlayMat()

void TnlGeom::TrackData::SetOverlayMat ( RndMat * pMat)
inline

Set the material drawn over the track.

Parameters
pMatThe material, or null.

◆ GetOverlayMode()

int TnlGeom::TrackData::GetOverlayMode ( ) const
inline
Returns
How the overlay is drawn.

◆ SetOverlayMode()

void TnlGeom::TrackData::SetOverlayMode ( int nMode)
inline

Set how the overlay is drawn.

Parameters
nModeThe mode.

◆ GetColor() [1/2]

Color & TnlGeom::TrackData::GetColor ( )
inline
Returns
The colour of the panels of the track.

◆ GetColor() [2/2]

const Color & TnlGeom::TrackData::GetColor ( ) const
inline
Returns
The colour of the panels of the track.

◆ SetColor()

void TnlGeom::TrackData::SetColor ( const Color & color)
inline

Set the colour of the panels of the track.

Parameters
colorThe colour.

◆ GetPlayers()

unsigned char TnlGeom::TrackData::GetPlayers ( ) const
inline
Returns
One bit for each player on the track.

◆ SetPlayers()

void TnlGeom::TrackData::SetPlayers ( unsigned char nPlayers)
inline

Set the players on the track.

Parameters
nPlayersOne bit for each player.

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