|
wavelength 1.0.0
|
The tunnel graphics of one player: the camera, the activator, the grid, the cursor, and the freestyle. More...
#include <tnlplayer.h>
Public Member Functions | |
| TnlPlayer (int nPlayer, int nCam, const char *pszColor, GfxTunnel *pTunnel, TnlGeom *pGeom, int nFreestyleType, char nExcludedType, char nOtherExcludedType) | |
| Build the graphics of a player and find the views of its camera. | |
| ~TnlPlayer () | |
| Destroy the graphics of the player. | |
| void | LoadConfig (DataArray *pConfig, DataArray *pDefaults, GfxTunnel *pTunnel, int nOption, int bFreestyle) |
| Load the settings of the graphics of the player and the colours of its track. | |
| bool | SelectColor (int nMultiplier) |
| Choose the colour of the track for a multiplier. | |
| void | Update (GfxArena *pArena, float flTicks, float flTime) |
| Advance the activator, the grid, and the cursor. | |
| void | UpdateTrail (float flTicks, float flTime) |
| Draw the needle of the scratch freestyle. | |
| int | GetPlayer () const |
| TnlActivator & | GetActivator () |
| TnlGrid & | GetGrid () |
| TnlCursor & | GetCursor () |
| TnlFreestyle & | GetFreestyle () |
Static Public Member Functions | |
| static void | LoadCamXfm (DataArray *pConfig, DataArray *pDefaults, RndCam *pCam) |
| Place a camera from the base pitch and offset of the configuration. | |
The tunnel graphics of one player: the camera, the activator, the grid, the cursor, and the freestyle.
The class is not polymorphic, and the name is inferred. The object is 0x2cc bytes. A player without a camera of the tunnel, one that plays on another console, has no camera views.
| TnlPlayer::TnlPlayer | ( | int | nPlayer, |
| int | nCam, | ||
| const char * | pszColor, | ||
| GfxTunnel * | pTunnel, | ||
| TnlGeom * | pGeom, | ||
| int | nFreestyleType, | ||
| char | nExcludedType, | ||
| char | nOtherExcludedType ) |
Build the graphics of a player and find the views of its camera.
| nPlayer | The player. |
| nCam | The camera of the player, or -1 for none. |
| pszColor | The colour of the player. |
| pTunnel | The tunnel. |
| pGeom | The geometry of the tunnel. |
| nFreestyleType | The kind of freestyle of the player, one of Freestylus::Type. |
| nExcludedType | A gem type the cursor never links. |
| nOtherExcludedType | A second gem type the cursor never links. |
| TnlPlayer::~TnlPlayer | ( | ) |
Destroy the graphics of the player.
Place a camera from the base pitch and offset of the configuration.
| pConfig | The configuration. |
| pDefaults | The defaults of the configuration. |
| pCam | The camera. |
| void TnlPlayer::LoadConfig | ( | DataArray * | pConfig, |
| DataArray * | pDefaults, | ||
| GfxTunnel * | pTunnel, | ||
| int | nOption, | ||
| int | bFreestyle ) |
Load the settings of the graphics of the player and the colours of its track.
| pConfig | The configuration. |
| pDefaults | The defaults of the configuration. |
| pTunnel | The tunnel. |
| nOption | The fourth argument every loader of a player's tunnel graphics receives. |
| bFreestyle | Whether the freestyle settings load. |
| bool TnlPlayer::SelectColor | ( | int | nMultiplier | ) |
Choose the colour of the track for a multiplier.
| nMultiplier | The multiplier. |
| void TnlPlayer::Update | ( | GfxArena * | pArena, |
| float | flTicks, | ||
| float | flTime ) |
Advance the activator, the grid, and the cursor.
| pArena | The arena of the tunnel. The routine does not read it. |
| flTicks | The ticks since the last poll. |
| flTime | The time since the last poll. |
| void TnlPlayer::UpdateTrail | ( | float | flTicks, |
| float | flTime ) |
Draw the needle of the scratch freestyle.
| flTicks | The ticks since the last poll. The routine does not read it. |
| flTime | The milliseconds since the last poll. The routine does not read it. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |