|
wavelength 1.0.0
|
The frame that marks the gems ahead of a player's cursor on its track. More...
#include <tnlseeker.h>
Public Member Functions | |
| TnlSeeker (TnlGeom *pGeom, int nPlayer, const char *pszColor) | |
| Find the materials and create the mesh of a player's frame. | |
| ~TnlSeeker () | |
| Delete the mesh and the curves. | |
| void | LoadConfig (DataArray *pConfig, DataArray *pDefaults, GfxTunnel *pTunnel, int nOption) |
| Load the shape of the frame from the seeker_frame section and build the mesh. | |
| void | SetTarget (char nTrack, float flStartTick, float flEndTick) |
| Start the glide to a new track and window. | |
| void | StartMultiplier (float flEndTick) |
| Draw with the multiplier material, shrinking the frame until a tick. | |
| void | StopMultiplier () |
| Return to the normal material. | |
| void | SetWindow (char nTrack, float flStartTick, float flEndTick) |
| Receive the window the cursor fades in on. | |
| void | OnRangeChanged (const TnlTrackRange *pRange) |
| Mark the mesh for rebuilding when the tunnel changes a range that overlaps the frame. | |
| void | Poll (float flDelta, float flAlpha) |
| Advance the glide and rebuild the mesh when the frame moves. | |
Static Public Attributes | |
| static float | sFadeSpeed |
| The fade speed of the cursor, seeker_fade_speed over 1000. | |
The frame that marks the gems ahead of a player's cursor on its track.
The class is not polymorphic, and the name is inferred from its seeker materials and mesh. The object is 0x78 bytes. The frame is a mesh of two prongs at each end of a window of ticks, joined by rails along the track. It glides to a new track and window over a time that grows with the distance, first across the tracks and then along them.
| TnlSeeker::TnlSeeker | ( | TnlGeom * | pGeom, |
| int | nPlayer, | ||
| const char * | pszColor ) |
Find the materials and create the mesh of a player's frame.
| pGeom | The geometry of the tunnel. |
| nPlayer | The player. The constructor does not read it. |
| pszColor | The colour of the player, which selects the materials and titles the mesh. |
| TnlSeeker::~TnlSeeker | ( | ) |
Delete the mesh and the curves.
| void TnlSeeker::LoadConfig | ( | DataArray * | pConfig, |
| DataArray * | pDefaults, | ||
| GfxTunnel * | pTunnel, | ||
| int | nOption ) |
Load the shape of the frame from the seeker_frame section and build the mesh.
| pConfig | The configuration. |
| pDefaults | The defaults of the configuration. |
| pTunnel | The tunnel. The routine does not read it. |
| nOption | The fourth argument every loader of a player's tunnel graphics receives. The routine does not read it. |
| void TnlSeeker::SetTarget | ( | char | nTrack, |
| float | flStartTick, | ||
| float | flEndTick ) |
Start the glide to a new track and window.
The first target is taken at once.
| nTrack | The track. |
| flStartTick | The start of the window. |
| flEndTick | The end of the window. |
| void TnlSeeker::StartMultiplier | ( | float | flEndTick | ) |
Draw with the multiplier material, shrinking the frame until a tick.
| flEndTick | The tick the multiplier ends at. A tick already passed is ignored. |
| void TnlSeeker::StopMultiplier | ( | ) |
Return to the normal material.
| void TnlSeeker::SetWindow | ( | char | nTrack, |
| float | flStartTick, | ||
| float | flEndTick ) |
Receive the window the cursor fades in on.
The body is empty.
| nTrack | The track. |
| flStartTick | The start of the window. |
| flEndTick | The end of the window. |
| void TnlSeeker::OnRangeChanged | ( | const TnlTrackRange * | pRange | ) |
Mark the mesh for rebuilding when the tunnel changes a range that overlaps the frame.
| pRange | The range that changed. |
| void TnlSeeker::Poll | ( | float | flDelta, |
| float | flAlpha ) |
Advance the glide and rebuild the mesh when the frame moves.
The frame is hidden once its end is more than 960 ticks behind the song.
| flDelta | The ticks since the last poll. The routine does not read it. |
| flAlpha | The opacity of the cursor. The routine does not read it. |
|
static |
The fade speed of the cursor, seeker_fade_speed over 1000.
TnlCursor loads it. A glide over the longest distance lasts 2 over this speed.