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

Tunnel of tracks the players fly down, with the gems, the cameras of the players, and the effects drawn on the tracks. More...

#include <gfxtunnel.h>

Collaboration diagram for GfxTunnel:

Classes

struct  BarData
 The look of one bar of a track, 0x14 bytes. More...
class  TrackData
 The state of one track, 0x2c bytes. More...

Public Types

enum  BarFlag { kBarFlagNoReveal = 0x4 , kBarFlagCheckpoint = 0x8 , kBarFlagFinish = 0x10 , kBarFlagBeforeSong = 0x20 }
 The bits of BarData::mFlags. More...
enum  GemBurst {
  kGemBurstGem = 0 , kGemBurstAuto = 1 , kGemBurstMult = 2 , kGemBurstSlow = 3 ,
  kGemBurstFree = 4 , kGemBurstBump = 5 , kGemBurstCrip = 6 , kNumGemBursts = 7
}
 The kinds of the capture bursts of mGemBurstViews, in order. More...
enum  PowerupGem {
  kPowerupGemAuto = 0 , kPowerupGemMult = 1 , kPowerupGemSlow = 2 , kPowerupGemFree = 3 ,
  kPowerupGemBump = 4 , kPowerupGemCrip = 5 , kNumPowerupGems = 6
}
 The powerup gems of mPowerupGemGroups, in order. More...
typedef std::pair< Vector2, Vector2 > Segment
 A line of the cross section of the tunnel, from one point to the other.

Public Member Functions

 GfxTunnel (const std::vector< int > &instruments, const std::vector< int > &trackTypes, GfxArena *pArena, int nOption, float fStartTick, float fSongTicks)
 Build the tunnel of a song.
 ~GfxTunnel ()
 Destroy the tunnel.
int BuildOuterCams ()
 Find the outer cameras, one for each player, and fit them to the screen.
void LoadViews (std::vector< RndView * > *pViews, const char *pszFormat)
 Collect the views of a numbered series, <format> with 1, 2, and on, until one is missing.
void LoadTrackColors ()
 Load the colour of each instrument from its panel material and colour each track.
void UpdateTrackGemGroups ()
 Give each track the sprite gem group of its instrument.
void SetShowPanels (int bShow)
 Show or hide the panels of the tracks.
void SetShowDividers (int bShow)
 Show or hide the boundaries between the sections of the song.
void SetShowActivator (int bShow)
 Show or hide the targets of the activators, target <n>_<c>.mesh for each colour.
void BuildPanels (int bResetPanels, RndTransAnim *pCamPath)
 Build the panels of the tracks from the cross section of the tunnel.
void PrintBars (int nPlayer)
 Report the bars of the track of a player through the debug output.
void AddPanel (GfxTunnelPanel *pPanel, int bDeferred, float flRevealTick)
 Queue a panel to apply when its track is no longer captured or its reveal ends.
TnlPlayer * GetPlayer (int nPlayer)
 Report the graphics of a player.
float GetFreestyleConstraint ()
 Report how far the arena constrains the freestyles at the frame of its camera.
bool HasActiveBar (int nTrack, float flTick)
 Report whether the bar of a track at a tick maps to the song and has no owner.
void OnGemRemoved (const TnlGem *pGem)
 Tell the spotlight and the cursors of the players that a gem leaves the tunnel.
Particle * Flash (const Vector3 *pPos, float flSize, float flGrowth)
 Start a flash at a position with the first free flash effect.
bool Burst (const std::vector< RndView * > *pViews, char nTrack, bool bErase, float flTick, float flLateral)
 Start a capture burst at a gem with the first free burst effect, through a random view.
int GetTrackInstrument (int nTrack)
 Report the instrument of a track.
void SetTrackInstrument (int nTrack, int nInstrument)
 Give a track another instrument.
int GetTrackType (int nTrack)
 Report the type of a track.
int GetPlayerTrack (int nPlayer)
 Report the track a player is on.
bool IsTrackOpen (int nTrack) const
 Report whether a track is open, its effect not in the state that closes it.
bool IsTrackCaptured (int nTrack) const
 Report whether a track is captured, for a track given as an int.
bool IsTrackCaptured (char nTrack) const
 Report whether a track is captured.
const Vector3 * GetHudOffset ()
 Report the offset of the head-up display from the camera.
void Poll (float fTicks, float fTime)
 Advance the tunnel and every effect it draws.
void PollCameras (float fTicks, float fTime)
 Update the trail of the freestyle of each player.
void SetLetterbox (float fLetterbox)
 Set how far the letterbox is closed, and move the field of view of the outer cameras from sCameraFov towards sLetterboxFov with it.
void DrawBackground ()
 Draw the fires, the boundaries between the sections, and the panels of the tracks.
void DrawTracks ()
 Draw the gems, the grid, the transparent layer, the spotlights, the capture bursts, the arrows of the tracks, the cripplers, and the beams of the ships.
void DrawCameras ()
 Draw the overlays of the tracks and the freestyle of each player.
void DrawForeground ()
 Draw the overlay camera, the arrows of the ships on each track, the fade of mFadeMesh, and the shell of a slowdown.
void StartFade (bool bToBlack)
 Start the fade of mFadeMesh from its current opacity over sFadeToBlackDuration.
void RefreshChangedRange ()
 Refresh the grids, the cursors, the arrows, and the spotlights over mChangedRange.
float PanelWidth () const
 Report the width of a panel of the tunnel.
void CollectGemTicks (std::vector< float > *pTicks, char nTrack, float flFromTick, float flToTick)
 Collect the ticks of the bars of a track a fire burns between two ticks.
void StartFire (int nPlayer, int nTrack, int bAuto, float flTick, float flStartTick, float flEndTick, const Color *pInnerColor, const Color *pOuterColor, const std::vector< float > *pGemTicks)
 Start the fire of a captured track with the first free fire effect, or else the one that started first.
bool IsActivatorIdle (int nPlayer)
 Report whether the activator of a player is at rest.
void ReportParticles ()
 Report the use of the particles of the particle arms through the debug output.
void SetEnergy (float flEnergy, int nZone)
 Show the energy as the frame of boundary_condition.view, a thousand times the energy.
void SetStreakMultiplier (int nPlayer, int nMultiplier, int nNextMultiplier, const char *pszMultiplier, const char *pszNextMultiplier, bool bBoosted)
 Colour the track of a player for a multiplier, and for a local player show the text of the next multiplier on the first arrow of the tracks.
void SetMultiplierEndTick (int nPlayer, float flTick)
 Start the multiplier on the cursor of a player, unless the player has no graphics.
void ShowSlowdown (int nPlayer, float flStartTick, float flEndTick, float flStopTick)
 Start the shell of a slowdown, then the blur slowdown_end from flEndTick to flStopTick and the blur slowdown_start from the song tick to flStartTick.
void ShowCripple (int nAttacker, int nVictim)
 Start the first idle crippler, or the last crippler when every crippler is busy.
void ShowBump (int nAttacker, int nVictim, int nTrack)
 Tell the activators of two players of a bump, skipping a player with no graphics.
void SetPlayerTrack (int nPlayer, int nTrack, int nTrackType, int nInstrument)
 Take a player off the freestyle and move the player and the grid of the player to a track.
void SetPlayerFreestyle (int nPlayer, bool bVictory, bool bQuick)
 Start the freestyle of a player and take the player off its track.
int GetViewedTrack (int nPlayer)
 Report the track the ship of the freestyle of a player is over.
void SetFreestylePosition (int nPlayer, const Vector3 &stick)
 Set the position of the stick of the freestyle of a player, unless the player has no graphics.
void ShowScratchNote (int nPlayer, float flTick, float flDuration)
 Sweep the needle of the scratch freestyle of a player for a note, unless the player has no graphics.
void SetTrackPlayers (int nTrack, int nPlayers, const int *pPlayers)
 Record the players on a track, in order of place, for the next poll.
void PlaceGem (int nTrack, int nSlot, int nPlayer, float flTick, int bSlot, int nPowerup)
 Place a gem on a track, unless it lies more than 960 ticks behind the song.
void RemoveGem (int nTrack, int nSlot, float flTick)
 Remove the gems of a tick and slot of a track, and tell the cursors when the tick is more than 80 ticks ahead of the song.
void ClearGems (int nTrack, bool bErase, float flStartTick, float flEndTick)
 Remove the gems of a track over a span of ticks, and tell the cursors when the span ends more than 80 ticks ahead of the song.
void HideNextPhrase (bool bNow)
 Hide the arrow of each track.
void ShowNextPhrase (int nTrack, float flTick, int nSlot)
 Point the arrow of a track at the first gem of the next phrase, when the tracks have arrows.
void SetCatchMeter (int nPlayer, float flLevel)
 Set the energy of the cursor of a player.
void ShowGemResult (int nTrack, int nSlot, bool bHit, int nPlayer, int nBurst, float flTick)
 Show the result of a gem on the activator of a player.
void HitGem (int nPlayer, int nTrack, int nSlot, float flTick)
 Flash the cell of a gem with the flash of a pitched gem.
void SetFreestyle (int nPlayer, bool bPlaying, int nColumn)
 Record whether a player plays the freestyle, and outside a remix whether the gems of the focus track fire hit events.
void ResetFreestyle (int nPlayer)
 Start a sample on the freestyle of a player.
void ShowCapture (int nPlayer, int nTrack, int bAuto, bool bFreestyle, float flStartTick, float flEndTick)
 Record the capture of a phrase of a track and start its effect, except in a duel.
void ShowResult (bool bWon, int nPlayer, bool bCampaignWin, bool bUnlocked)
 Show the result of the song.
void StartBossJourney ()
 Start the boss journey, which ends mBossDoneTicks after the song tick.
void ShowPhrase (int nPlayer, int nTrack, bool bPlayable, float flStartTick, float flEndTick, int nStyle, bool bSlide)
 Point the cursor of a player at a phrase, or refresh the cursor.
void SetBar (int nTrack, int nPlayer, int nOwner, bool bInSong, bool bNow, int nFlags, signed char nInstrument, float flTick, float flTicks)
 Set the look of one bar of a track, adding the bar when it is not set, and show its panel.
void DimBar (int nTrack, float flTick)
 Darken the panel of one bar of a track by sDuelFailDarkening.
void SetTrackEnabled (int nTrack, bool bEnabled)
 Start the effect that enables a track.
void AddCheckpoint (const char *pszLabel, float flTick, float flTextScale)
 Add a boundary between the sections of the song.
void ClearCheckpoints ()
 Remove every boundary between the sections of the song.
void SetOption (bool bOption)
 Select the near or the far pull back of the camera.
int GetOption ()
 Report whether the far pull back of the camera is selected.
void SetZoom (float flZoom)
 Set the pull back of the camera.
void BlendToArenaPath (bool bArena)
 Blend the camera towards the arena path or back over one second from the current blend.
void SetCatcherShown (int nPlayer, bool bShown)
 Show or hide the catcher of a player.
void ClearLanes ()
 Reset the activator of each player and put every player at its track at once.
void ClearAll ()
 Clear every effect of the tunnel.
int GetTrackPlayersDirty () const
void SetTrackPlayersDirty (int nValue)
 Set whether SetTrackPlayers() changed the players of a track.
int GetPanelColorsDirty () const
void SetPanelColorsDirty (int nValue)
 Set whether the next poll restores the colours of the panels.
signed char GetDefaultFocusTrack () const
void SetDefaultFocusTrack (signed char nValue)
 Set the track the gems focus on.
TnlDivider * GetDivider () const
ParticleArms * GetArms () const
const std::vector< std::unique_ptr< TnlFire > > & GetFires () const
const std::vector< std::unique_ptr< TnlTrackFX > > & GetTrackFX () const
const std::vector< std::unique_ptr< TnlFlashFX > > & GetFlashes () const
const std::vector< std::unique_ptr< TnlCripFX > > & GetCrippleFX () const
TnlSlowdownFX * GetSlowdown () const
SpotLightFX * GetSpotLights () const
GemEraseFX * GetGemErase () const
TnlWinShell * GetWinShell () const
TnlBlurs * GetBlurs () const
const std::vector< std::unique_ptr< TnlGemCapFX > > & GetGemCaps () const
const std::vector< std::unique_ptr< TnlStreakGemFX > > & GetStreakGems () const
TnlGems * GetGems () const
TnlGeom * GetGeom () const
RndView * GetTransparentView () const
RndView * GetGridView () const
GfxArena * GetArena () const
RndLight * GetTrackColorLight () const
int GetTrackColorPlayer () const
RndMesh * GetFadeMesh () const
LinearInterpolator & GetFadeCurve ()
const std::vector< std::unique_ptr< TnlPlayer > > & GetPlayers () const
const Color & GetSavedClearColor () const
const std::list< std::unique_ptr< GfxTunnelPanel > > & GetPanels () const
const std::vector< signed char > & GetInstrumentGemGroups () const
const std::vector< signed char > & GetTrackGemGroups () const
const std::vector< signed char > & GetPlayerGemGroups () const
const std::vector< signed char > & GetPowerupGemGroups () const
signed char GetMissGemGroup () const
signed char GetSlotGemGroup () const
signed char GetGemGroup () const
const std::vector< TrackData > & GetTracks () const
signed char GetCrippledTracks () const
void SetCrippledTracks (signed char nValue)
 Set the tracks whose players are crippled.
int GetNumTracks () const
const std::vector< Color > & GetInstrumentColors () const
const std::vector< Color > & GetTrackColors () const
RndMat * GetCheckpointMat () const
RndMat * GetCheckpointFinishMat () const
RndCam * GetOverlayCam () const
const std::vector< RndCam * > & GetOuterCams () const
float GetLetterbox () const
const std::vector< std::vector< RndView * > > & GetPlayerBurstViews () const
const std::vector< std::vector< RndView * > > & GetGemBurstViews () const
int GetCaptureReveals () const
TnlTrackRange & GetChangedRange ()
int GetBossJourneyDone () const
int GetIdle () const
void SetIdle (int nValue)
 Set whether no effect of the tunnel runs.
float GetUnlockDoneTicks () const
void SetUnlockDoneTicks (float fValue)
 Set the extra ticks of a result that unlocks a path.
float GetBossDoneTicks () const
void SetBossDoneTicks (float fValue)
 Set the ticks the boss journey lasts.
float GetResultDoneTick () const
float GetBossJourneyDoneTick () const
PlayerCamFX * GetCamFX () const
ATanInterpolator & GetPathBlendCurve ()
int GetPathBlending () const
const Vector3 & GetCenter () const

Static Public Member Functions

static RndView * CreateMainView ()
 Find the main view of the tunnel and set its camera from the configuration.
static void LoadConfig (GfxTunnel *pTunnel, DataArray *pConfig, DataArray *pDefaults, int nNumTracks, int nOption)
 Load the settings of the tunnel and of the effects it draws, and with a tunnel rebuild its panels from them.
static void LayoutDividers (const std::vector< SegmentSegment > *pSegments, float flScale)
 Fit the boundaries between the sections to the bounds of a cross section.
static void ScaleHudGemMeshes (const Vector3 *pScale, const char *pszKind)
 Scale the meshes HUD <kind>_gem<n>.mesh of one kind of powerup gem.
static void ScaleHudGems (float flScrollSpeed)
 Undo the scroll speed of the tunnel on the powerup gems of the head-up display.
static void OnBlendToPath (DataArray *pCommand, void *pUserData)
 Run the script command blend_to_path.
static void OnArenaDoneIn (DataArray *pCommand, void *pUserData)
 Run the script command arena_done_in.
static void OnSetParticlePlayerColor (DataArray *pCommand, void *pUserData)
 Run the script command set_particle_player_color.
static void OnGfxDebug (DataArray *pCommand, void *pUserData)
 Run the script command gfx_debug.
static float BurstSpinPeriod ()
 Report the time a capture burst takes to advance eight quarter turns.
static void ScaleLights (RndEnviron *pEnviron)
 Divide the colour of each light of an environment by the scroll speed of the tunnel.

Static Public Attributes

static GfxTunnel * sCurrent
 The tunnel of the song, or null.
static int sSplitScreen
 Whether each pad gets its own cameras, splitscreen.
static int sShowPanels
 Whether the panels of the tracks show, show_panels.
static int sShowDividers
 Whether the boundaries between the sections show, show_dividers.
static int sInvertTunnel
 Whether the tunnel entry has the invert flag.
static int sFlipTunnel
 Whether the tunnel entry has the flip flag, or the second shape of the circular cheat is selected.
static int sCenterTunnel
 Whether the tunnel entry has the center flag.
static int sOpaquePanels
 opaque_panels, which is never read.
static int sShowDisabledPanels
 show_disabled_panels, which is never read.
static int sShowSeeker
 Whether the seekers show, show_seeker.
static int sSeekerEndcapsAlways
 seeker_endcaps_always, which is never read.
static float sSeekerOpacity
 seeker_opacity, which is never read.
static int sShowActivator
 Whether the targets of the activators show, show_activator.
static int sShowMissGems
 Whether missed gems show, show_miss_gems.
static int sTunnelBars
 tunnel_bars, which BuildPanels() reads.
static int sTunnelLowResBars
 tunnel_low_res_bars, which BuildPanels() reads.
static int sUseSlab
 use_slab, which is never read.
static float sSlabDepth
 slab_depth times the scroll speed of the tunnel, which BuildPanels() reads.
static float sSlabAngle
 slab_angle in radians, which BuildPanels() reads.
static float sCameraFov
 The field of view of the cameras of the players, camera_fov.
static float sLetterboxFov
 The field of view of the outer cameras with the letterbox closed, camera_letterbox_fov in radians.
static float sGemRotatePeriod
 The milliseconds of one turn of a gem, gem_rotate_period.
static float sGemHitFlashSize
 The size of the flash of a hit gem, gem_hit_flash_size times the scroll speed of the tunnel.
static float sGemHitFlashGrowth
 The growth of the flash of a hit gem, the scroll speed of the tunnel divided by gem_hit_flash_time.
static float sGemPitchFlashSize
 gem_pitch_flash_size times the scroll speed of the tunnel.
static float sGemPitchFlashGrowth
 The scroll speed of the tunnel divided by gem_pitch_flash_time.
static float sWinSequenceDuration
 win_sequence_duration.
static float sFadeToBlackDuration
 fade_to_black_duration.
static float sPreviewCamChangeTime
 preview_cam_change_time, the milliseconds BlendToArenaPath() blends the path over.
static float sDuelFailDarkening
 duel_fail_darkening.
static float sMeshGemScale
 mesh_gem_scale, which BuildPanels() reads.
static float sPanelWidth
 The width of a panel, which BuildPanels() measures.
static Vector3 sBoundaryOffset
 The offset of the boundaries between the sections, boundary_offset.
static Color sSeekerColor
 The colour of the seekers, seeker_color.
static Vector2 sArenaZ
 The depth range arena_z of the cameras of the tunnel.
static Vector2 sTnlZ
 The depth range tnl_z of the cameras of the tunnel.
static Vector2 sTnlzZ
 The depth range tnlz_z of the cameras of the tunnel.
static LinearInterpolator sTrackLightFade
 The brightness of tunnel track color.lit over the ticks of the song, rising over the 480 ticks before the song.
static std::vector< SegmentSegment > sShape
 The cross section of the tunnel, tunnel.
static std::vector< SegmentSegment > sSegments
 The cross section BuildPanels() fits to the tracks, a copy of sShape.
static std::vector< Vector2 > sTrackPoints
 The unit normal of each track in the cross section, which BuildPanels() measures from sSegments.
static Vector3 sBurstScale
 The scale of the capture bursts, which BuildPanels() measures.
static Vector3 sGridQuarterScale
 The scale of a quarter line of the grids, grid_quarter_scale.
static Vector3 sGridEighthScale
 The scale of an eighth line of the grids, grid_eighth_scale.

Detailed Description

Tunnel of tracks the players fly down, with the gems, the cameras of the players, and the effects drawn on the tracks.

The RTTI of its nested types names the class. The class is not polymorphic, and the object is 0x240 bytes. The titles of the display routines are inferred from the display routines that forward to them.

Member Typedef Documentation

◆ Segment

typedef std::pair<Vector2, Vector2> GfxTunnel::Segment

A line of the cross section of the tunnel, from one point to the other.

Member Enumeration Documentation

◆ BarFlag

The bits of BarData::mFlags.

Enumerator
kBarFlagNoReveal 

The panel of the bar is dropped instead of revealed.

kBarFlagCheckpoint 

The bar shows panel ckpt.mat.

kBarFlagFinish 

The bar shows panel ckpt finish.mat.

kBarFlagBeforeSong 

The bar ends before the song starts.

◆ GemBurst

The kinds of the capture bursts of mGemBurstViews, in order.

Enumerator
kGemBurstGem 

gem explode <n>.view.

kGemBurstAuto 

auto_explode <n>.view.

kGemBurstMult 

mult_explode <n>.view.

kGemBurstSlow 

slow_explode <n>.view.

kGemBurstFree 

free_explode <n>.view.

kGemBurstBump 

bump_explode <n>.view.

kGemBurstCrip 

crip_explode <n>.view.

kNumGemBursts 

The number of kinds.

◆ PowerupGem

The powerup gems of mPowerupGemGroups, in order.

Enumerator
kPowerupGemAuto 

gem_auto.

kPowerupGemMult 

gem_mult.

kPowerupGemSlow 

gem_slow.

kPowerupGemFree 

gem_free.

kPowerupGemBump 

gem_bump.

kPowerupGemCrip 

gem_crip.

kNumPowerupGems 

The number of powerup gems.

Constructor & Destructor Documentation

◆ GfxTunnel()

GfxTunnel::GfxTunnel ( const std::vector< int > & instruments,
const std::vector< int > & trackTypes,
GfxArena * pArena,
int nOption,
float fStartTick,
float fSongTicks )

Build the tunnel of a song.

Parameters
instrumentsThe instrument of each track.
trackTypesThe type of each track.
pArenaThe arena.
nOptionThe option of the tracks.
fStartTickThe tick the song starts at.
fSongTicksThe length of the song in ticks.
Ghidra address:
NTSC-U/C: 0x001d82b8
Ghidra address:
PAL: 0x001e1058

◆ ~GfxTunnel()

GfxTunnel::~GfxTunnel ( )

Destroy the tunnel.

Ghidra address:
NTSC-U/C: 0x001dc078
Ghidra address:
PAL: 0x001e4e18

Member Function Documentation

◆ CreateMainView()

RndView * GfxTunnel::CreateMainView ( )
static

Find the main view of the tunnel and set its camera from the configuration.

Returns
The view.
Ghidra address:
NTSC-U/C: 0x001db6b8
Ghidra address:
PAL: 0x001e4458

◆ LoadConfig()

void GfxTunnel::LoadConfig ( GfxTunnel * pTunnel,
DataArray * pConfig,
DataArray * pDefaults,
int nNumTracks,
int nOption )
static

Load the settings of the tunnel and of the effects it draws, and with a tunnel rebuild its panels from them.

The tunnel is used without a test for null unless nNumTracks is negative, where a null tunnel returns at once. A nonzero nOption also loads the settings of each player, rebuilds the panels, and reloads the triggers.

Parameters
pTunnelThe tunnel.
pConfigThe configuration.
pDefaultsThe defaults of the configuration.
nNumTracksThe number of tracks, or a negative number for the tracks of pTunnel.
nOptionThe fourth argument every loader of the tunnel graphics receives.
Ghidra address:
NTSC-U/C: 0x001d7248
Ghidra address:
PAL: 0x001dffe8

◆ BuildOuterCams()

int GfxTunnel::BuildOuterCams ( )

Find the outer cameras, one for each player, and fit them to the screen.

Returns
The number of cameras.
Ghidra address:
NTSC-U/C: 0x001da970
Ghidra address:
PAL: 0x001e3710

◆ LoadViews()

void GfxTunnel::LoadViews ( std::vector< RndView * > * pViews,
const char * pszFormat )

Collect the views of a numbered series, <format> with 1, 2, and on, until one is missing.

The tunnel itself is not read. A series with no views is reported through the debug output.

Parameters
pViewsReceives the views after the views it already has.
pszFormatThe format of the names, with one integer.
Ghidra address:
NTSC-U/C: 0x001dbaa8
Ghidra address:
PAL: 0x001e4848

◆ LoadTrackColors()

void GfxTunnel::LoadTrackColors ( )

Load the colour of each instrument from its panel material and colour each track.

The materials are panel mat <instrument>.mat, or panel mat <instrument> multi.mat when the community is not GameDb::kCommunitySolo and the rule set is GameDb::kRuleSetGame. The tracks are black with the black_panels cheat.

Ghidra address:
NTSC-U/C: 0x001dbcc8
Ghidra address:
PAL: 0x001e4a68

◆ UpdateTrackGemGroups()

void GfxTunnel::UpdateTrackGemGroups ( )

Give each track the sprite gem group of its instrument.

Ghidra address:
NTSC-U/C: 0x001dc020
Ghidra address:
PAL: 0x001e4dc0

◆ SetShowPanels()

void GfxTunnel::SetShowPanels ( int bShow)

Show or hide the panels of the tracks.

Parameters
bShowWhether the panels show.
Ghidra address:
NTSC-U/C: 0x001dc8c8
Ghidra address:
PAL: 0x001e5668

◆ SetShowDividers()

void GfxTunnel::SetShowDividers ( int bShow)

Show or hide the boundaries between the sections of the song.

Parameters
bShowWhether the boundaries show.
Ghidra address:
NTSC-U/C: 0x001dc8d8
Ghidra address:
PAL: 0x001e5678

◆ SetShowActivator()

void GfxTunnel::SetShowActivator ( int bShow)

Show or hide the targets of the activators, target <n>_<c>.mesh for each colour.

Parameters
bShowWhether the targets show.
Ghidra address:
NTSC-U/C: 0x001dc8e8
Ghidra address:
PAL: 0x001e5688

◆ BuildPanels()

void GfxTunnel::BuildPanels ( int bResetPanels,
RndTransAnim * pCamPath )

Build the panels of the tracks from the cross section of the tunnel.

Parameters
bResetPanelsWhether every panel then returns to its plain state.
pCamPathThe camera path of the arena.
Ghidra address:
NTSC-U/C: 0x001dca10
Ghidra address:
PAL: 0x001e57b0

◆ LayoutDividers()

void GfxTunnel::LayoutDividers ( const std::vector< SegmentSegment > * pSegments,
float flScale )
static

Fit the boundaries between the sections to the bounds of a cross section.

Parameters
pSegmentsThe lines of the cross section.
flScaleThe scroll speed of the tunnel.
Ghidra address:
NTSC-U/C: 0x001d35b8
Ghidra address:
PAL: 0x001dc358

◆ ScaleHudGemMeshes()

void GfxTunnel::ScaleHudGemMeshes ( const Vector3 * pScale,
const char * pszKind )
static

Scale the meshes HUD <kind>_gem<n>.mesh of one kind of powerup gem.

Parameters
pScaleThe scale of each axis.
pszKindThe kind of powerup.
Ghidra address:
NTSC-U/C: 0x001d3790
Ghidra address:
PAL: 0x001dc530

◆ ScaleHudGems()

void GfxTunnel::ScaleHudGems ( float flScrollSpeed)
static

Undo the scroll speed of the tunnel on the powerup gems of the head-up display.

Parameters
flScrollSpeedThe scroll speed of the tunnel.
Ghidra address:
NTSC-U/C: 0x001d3918
Ghidra address:
PAL: 0x001dc6b8

◆ OnBlendToPath()

void GfxTunnel::OnBlendToPath ( DataArray * pCommand,
void * pUserData )
static

Run the script command blend_to_path.

Parameters
pCommandThe command.
pUserDataThe tunnel.
Ghidra address:
NTSC-U/C: 0x001df2c8
Ghidra address:
PAL: 0x001e8068

◆ OnArenaDoneIn()

void GfxTunnel::OnArenaDoneIn ( DataArray * pCommand,
void * pUserData )
static

Run the script command arena_done_in.

Parameters
pCommandThe command.
pUserDataThe tunnel.
Ghidra address:
NTSC-U/C: 0x001df448
Ghidra address:
PAL: 0x001e81e8

◆ OnSetParticlePlayerColor()

void GfxTunnel::OnSetParticlePlayerColor ( DataArray * pCommand,
void * pUserData )
static

Run the script command set_particle_player_color.

Parameters
pCommandThe command.
pUserDataThe tunnel.
Ghidra address:
NTSC-U/C: 0x001df578
Ghidra address:
PAL: 0x001e8318

◆ OnGfxDebug()

void GfxTunnel::OnGfxDebug ( DataArray * pCommand,
void * pUserData )
static

Run the script command gfx_debug.

Parameters
pCommandThe command.
pUserDataThe tunnel.
Ghidra address:
NTSC-U/C: 0x001df6b8
Ghidra address:
PAL: 0x001e8458

◆ PrintBars()

void GfxTunnel::PrintBars ( int nPlayer)

Report the bars of the track of a player through the debug output.

Parameters
nPlayerThe player.
Ghidra address:
NTSC-U/C: 0x001df6d8
Ghidra address:
PAL: 0x001e8478

◆ AddPanel()

void GfxTunnel::AddPanel ( GfxTunnelPanel * pPanel,
int bDeferred,
float flRevealTick )

Queue a panel to apply when its track is no longer captured or its reveal ends.

Parameters
pPanelThe panel, which the tunnel then deletes.
bDeferredWhether the panel waits until its track is no longer captured.
flRevealTickThe tick the reveal of the panel starts at.
Ghidra address:
NTSC-U/C: 0x001de288
Ghidra address:
PAL: 0x001e7028

◆ GetPlayer()

TnlPlayer * GfxTunnel::GetPlayer ( int nPlayer)

Report the graphics of a player.

Parameters
nPlayerThe player.
Returns
The graphics.
Ghidra address:
NTSC-U/C: 0x001de468
Ghidra address:
PAL: 0x001e7208

◆ GetFreestyleConstraint()

float GfxTunnel::GetFreestyleConstraint ( )

Report how far the arena constrains the freestyles at the frame of its camera.

Returns
The constraint, from 0 to 1.
Ghidra address:
NTSC-U/C: 0x001de278
Ghidra address:
PAL: 0x001e7018

◆ HasActiveBar()

bool GfxTunnel::HasActiveBar ( int nTrack,
float flTick )

Report whether the bar of a track at a tick maps to the song and has no owner.

Parameters
nTrackThe track.
flTickThe tick.
Returns
Whether a bar is set at the tick, maps to the song, and has no owner.
Ghidra address:
NTSC-U/C: 0x001dd818
Ghidra address:
PAL: 0x001e65b8

◆ OnGemRemoved()

void GfxTunnel::OnGemRemoved ( const TnlGem * pGem)

Tell the spotlight and the cursors of the players that a gem leaves the tunnel.

Parameters
pGemThe gem.
Ghidra address:
NTSC-U/C: 0x001dd888
Ghidra address:
PAL: 0x001e6628

◆ Flash()

Particle * GfxTunnel::Flash ( const Vector3 * pPos,
float flSize,
float flGrowth )

Start a flash at a position with the first free flash effect.

Parameters
pPosThe position.
flSizeThe size the flash starts at.
flGrowthThe growth of the flash per tick.
Returns
The particle of the flash, or null when no flash effect was free.
Ghidra address:
NTSC-U/C: 0x001ddd00
Ghidra address:
PAL: 0x001e6aa0

◆ Burst()

bool GfxTunnel::Burst ( const std::vector< RndView * > * pViews,
char nTrack,
bool bErase,
float flTick,
float flLateral )

Start a capture burst at a gem with the first free burst effect, through a random view.

Parameters
pViewsThe views to choose from.
nTrackThe track.
bEraseWhether the burst erases the gem.
flTickThe tick of the gem.
flLateralThe position across the track, 0 to 1.
Returns
Whether a burst effect was free.
Ghidra address:
NTSC-U/C: 0x001ddd90
Ghidra address:
PAL: 0x001e6b30

◆ GetTrackInstrument()

int GfxTunnel::GetTrackInstrument ( int nTrack)

Report the instrument of a track.

Parameters
nTrackThe track.
Returns
The instrument.
Ghidra address:
NTSC-U/C: 0x001de0e8
Ghidra address:
PAL: 0x001e6e88

◆ SetTrackInstrument()

void GfxTunnel::SetTrackInstrument ( int nTrack,
int nInstrument )

Give a track another instrument.

Parameters
nTrackThe track.
nInstrumentThe instrument.
Ghidra address:
NTSC-U/C: 0x001de100
Ghidra address:
PAL: 0x001e6ea0

◆ GetTrackType()

int GfxTunnel::GetTrackType ( int nTrack)

Report the type of a track.

Parameters
nTrackThe track.
Returns
The type.
Ghidra address:
NTSC-U/C: 0x001de190
Ghidra address:
PAL: 0x001e6f30

◆ GetPlayerTrack()

int GfxTunnel::GetPlayerTrack ( int nPlayer)

Report the track a player is on.

Parameters
nPlayerThe player.
Returns
The track.
Ghidra address:
NTSC-U/C: 0x001de1a8
Ghidra address:
PAL: 0x001e6f48

◆ IsTrackOpen()

bool GfxTunnel::IsTrackOpen ( int nTrack) const

Report whether a track is open, its effect not in the state that closes it.

Parameters
nTrackThe track.
Returns
Whether the track is open.
Ghidra address:
NTSC-U/C: 0x001de200
Ghidra address:
PAL: 0x001e6fa0

◆ IsTrackCaptured() [1/2]

bool GfxTunnel::IsTrackCaptured ( int nTrack) const

Report whether a track is captured, for a track given as an int.

Parameters
nTrackThe track.
Returns
Whether the effect of the track is in its captured state.
Ghidra address:
NTSC-U/C: 0x001de220
Ghidra address:
PAL: 0x001e6fc0

◆ IsTrackCaptured() [2/2]

bool GfxTunnel::IsTrackCaptured ( char nTrack) const

Report whether a track is captured.

Parameters
nTrackThe track.
Returns
Whether the effect of the track is in its captured state.
Ghidra address:
NTSC-U/C: 0x001de240
Ghidra address:
PAL: 0x001e6fe0

◆ GetHudOffset()

const Vector3 * GfxTunnel::GetHudOffset ( )

Report the offset of the head-up display from the camera.

Returns
The offset.
Ghidra address:
NTSC-U/C: 0x001de268
Ghidra address:
PAL: 0x001e7008

◆ Poll()

void GfxTunnel::Poll ( float fTicks,
float fTime )

Advance the tunnel and every effect it draws.

The players of the tracks and the colours of the panels are refreshed first when marked dirty. A track whose effect changed, or a track a crippler wave crossed, is added to mChangedRange, which the gems, the cursors, the arrows, and the spotlights then refresh. The light tunnel track color.lit of a solo game takes the colour of the track of its player.

Parameters
fTicksThe ticks since the last poll.
fTimeThe time since the last poll.
Ghidra address:
NTSC-U/C: 0x001de480
Ghidra address:
PAL: 0x001e7220

◆ PollCameras()

void GfxTunnel::PollCameras ( float fTicks,
float fTime )

Update the trail of the freestyle of each player.

Parameters
fTicksThe ticks since the last poll, passed on to each player.
fTimeThe time since the last poll, passed on to each player.
Ghidra address:
NTSC-U/C: 0x001dec18
Ghidra address:
PAL: 0x001e79b8

◆ SetLetterbox()

void GfxTunnel::SetLetterbox ( float fLetterbox)

Set how far the letterbox is closed, and move the field of view of the outer cameras from sCameraFov towards sLetterboxFov with it.

The cameras are not changed when the value is the value already set.

Parameters
fLetterboxHow far the letterbox is closed, from 0 to 1.
Ghidra address:
NTSC-U/C: 0x001dec88
Ghidra address:
PAL: 0x001e7a28

◆ DrawBackground()

void GfxTunnel::DrawBackground ( )

Draw the fires, the boundaries between the sections, and the panels of the tracks.

Ghidra address:
NTSC-U/C: 0x001ded28
Ghidra address:
PAL: 0x001e7ac8

◆ DrawTracks()

void GfxTunnel::DrawTracks ( )

Draw the gems, the grid, the transparent layer, the spotlights, the capture bursts, the arrows of the tracks, the cripplers, and the beams of the ships.

Ghidra address:
NTSC-U/C: 0x001dede8
Ghidra address:
PAL: 0x001e7b88

◆ DrawCameras()

void GfxTunnel::DrawCameras ( )

Draw the overlays of the tracks and the freestyle of each player.

Ghidra address:
NTSC-U/C: 0x001def00
Ghidra address:
PAL: 0x001e7ca0

◆ DrawForeground()

void GfxTunnel::DrawForeground ( )

Draw the overlay camera, the arrows of the ships on each track, the fade of mFadeMesh, and the shell of a slowdown.

Once the fade shows, the vortex of the graphics manager draws after the head-up display.

Ghidra address:
NTSC-U/C: 0x001def68
Ghidra address:
PAL: 0x001e7d08

◆ StartFade()

void GfxTunnel::StartFade ( bool bToBlack)

Start the fade of mFadeMesh from its current opacity over sFadeToBlackDuration.

Parameters
bToBlackWhether the fade ends opaque rather than clear.
Ghidra address:
NTSC-U/C: 0x001de028
Ghidra address:
PAL: 0x001e6dc8

◆ RefreshChangedRange()

void GfxTunnel::RefreshChangedRange ( )

Refresh the grids, the cursors, the arrows, and the spotlights over mChangedRange.

Ghidra address:
NTSC-U/C: 0x001df0e8
Ghidra address:
PAL: 0x001e7e88

◆ PanelWidth()

float GfxTunnel::PanelWidth ( ) const

Report the width of a panel of the tunnel.

Returns
The width, a constant.
Ghidra address:
NTSC-U/C: 0x001df1f0
Ghidra address:
PAL: 0x001e7f90

◆ BurstSpinPeriod()

float GfxTunnel::BurstSpinPeriod ( )
static

Report the time a capture burst takes to advance eight quarter turns.

Returns
The time in milliseconds.
Ghidra address:
NTSC-U/C: 0x001df200
Ghidra address:
PAL: 0x001e7fa0

◆ CollectGemTicks()

void GfxTunnel::CollectGemTicks ( std::vector< float > * pTicks,
char nTrack,
float flFromTick,
float flToTick )

Collect the ticks of the bars of a track a fire burns between two ticks.

The collection starts at the bar of flFromTick. It takes the start of each bar set on the track that maps to the song and has no owner, then the start of each bar after the last bar set, until flToTick. It stops once the vector has no free capacity, and the vector never grows.

Parameters
pTicksReceives the ticks after the ticks it already has.
nTrackThe track.
flFromTickThe first tick.
flToTickThe tick the collection stops at.
Ghidra address:
NTSC-U/C: 0x001dd908
Ghidra address:
PAL: 0x001e66a8

◆ StartFire()

void GfxTunnel::StartFire ( int nPlayer,
int nTrack,
int bAuto,
float flTick,
float flStartTick,
float flEndTick,
const Color * pInnerColor,
const Color * pOuterColor,
const std::vector< float > * pGemTicks )

Start the fire of a captured track with the first free fire effect, or else the one that started first.

Parameters
nPlayerThe player who captured the track, or -1.
nTrackThe track.
bAutoWhether the capture is automatic.
flTickThe tick of the capture.
flStartTickThe first tick of the fire.
flEndTickThe last tick of the fire.
pInnerColorThe colour of the inner flames.
pOuterColorThe colour of the outer flames.
pGemTicksThe ticks of the gems the fire burns, or null to collect them.
Ghidra address:
NTSC-U/C: 0x001dde98
Ghidra address:
PAL: 0x001e6c38

◆ IsActivatorIdle()

bool GfxTunnel::IsActivatorIdle ( int nPlayer)

Report whether the activator of a player is at rest.

Parameters
nPlayerThe player.
Returns
Whether the activator is at rest.
Ghidra address:
NTSC-U/C: 0x001de1c8
Ghidra address:
PAL: 0x001e6f68

◆ ReportParticles()

void GfxTunnel::ReportParticles ( )

Report the use of the particles of the particle arms through the debug output.

Ghidra address:
NTSC-U/C: 0x001df7f0
Ghidra address:
PAL: 0x001e8590

◆ SetEnergy()

void GfxTunnel::SetEnergy ( float flEnergy,
int nZone )

Show the energy as the frame of boundary_condition.view, a thousand times the energy.

Parameters
flEnergyThe energy, from 0 to 1.
nZoneThe zone of the energy. The routine does not read it.
Ghidra address:
NTSC-U/C: 0x001df810
Ghidra address:
PAL: 0x001e85b0

◆ SetStreakMultiplier()

void GfxTunnel::SetStreakMultiplier ( int nPlayer,
int nMultiplier,
int nNextMultiplier,
const char * pszMultiplier,
const char * pszNextMultiplier,
bool bBoosted )

Colour the track of a player for a multiplier, and for a local player show the text of the next multiplier on the first arrow of the tracks.

Parameters
nPlayerThe player.
nMultiplierThe multiplier.
nNextMultiplierThe multiplier of the next streak. The routine does not read it.
pszMultiplierThe text of the multiplier. The routine does not read it.
pszNextMultiplierThe text of the multiplier of the next streak.
bBoostedWhether a powerup boosts the multiplier. The routine does not read it.
Ghidra address:
NTSC-U/C: 0x001df828
Ghidra address:
PAL: 0x001e85c8

◆ SetMultiplierEndTick()

void GfxTunnel::SetMultiplierEndTick ( int nPlayer,
float flTick )

Start the multiplier on the cursor of a player, unless the player has no graphics.

Parameters
nPlayerThe player.
flTickThe tick the multiplier ends at.
Ghidra address:
NTSC-U/C: 0x001df8b0
Ghidra address:
PAL: 0x001e8650

◆ ShowSlowdown()

void GfxTunnel::ShowSlowdown ( int nPlayer,
float flStartTick,
float flEndTick,
float flStopTick )

Start the shell of a slowdown, then the blur slowdown_end from flEndTick to flStopTick and the blur slowdown_start from the song tick to flStartTick.

Parameters
nPlayerThe player who deployed the slowdown. The routine does not read it.
flStartTickThe tick the song arrives at the slow speed.
flEndTickThe tick the song starts to speed up again.
flStopTickThe tick the song is back at its speed.
Ghidra address:
NTSC-U/C: 0x001df8f8
Ghidra address:
PAL: 0x001e8698

◆ ShowCripple()

void GfxTunnel::ShowCripple ( int nAttacker,
int nVictim )

Start the first idle crippler, or the last crippler when every crippler is busy.

Parameters
nAttackerThe attacking player.
nVictimThe crippled player.
Ghidra address:
NTSC-U/C: 0x001df980
Ghidra address:
PAL: 0x001e8720

◆ ShowBump()

void GfxTunnel::ShowBump ( int nAttacker,
int nVictim,
int nTrack )

Tell the activators of two players of a bump, skipping a player with no graphics.

Parameters
nAttackerThe attacking player.
nVictimThe bumped player.
nTrackThe track of the bump.
Ghidra address:
NTSC-U/C: 0x001dfa08
Ghidra address:
PAL: 0x001e87a8

◆ SetPlayerTrack()

void GfxTunnel::SetPlayerTrack ( int nPlayer,
int nTrack,
int nTrackType,
int nInstrument )

Take a player off the freestyle and move the player and the grid of the player to a track.

In a remix the gems of the track of a local player fire hit events. Otherwise the focus track of the gems is cleared when mDefaultFocusTrack is set.

Parameters
nPlayerThe player.
nTrackThe track.
nTrackTypeThe type of the track. The routine does not read it.
nInstrumentThe instrument of the track. The routine does not read it.
Ghidra address:
NTSC-U/C: 0x001dfa98
Ghidra address:
PAL: 0x001e8838

◆ SetPlayerFreestyle()

void GfxTunnel::SetPlayerFreestyle ( int nPlayer,
bool bVictory,
bool bQuick )

Start the freestyle of a player and take the player off its track.

The gems of mDefaultFocusTrack, when set, fire hit events.

Parameters
nPlayerThe player.
bVictoryWhether the freestyle rewards a won song.
bQuickWhether the freestylus assembles in 4 ticks instead of the configured delay.
Ghidra address:
NTSC-U/C: 0x001dfb70
Ghidra address:
PAL: 0x001e8910

◆ GetViewedTrack()

int GfxTunnel::GetViewedTrack ( int nPlayer)

Report the track the ship of the freestyle of a player is over.

Parameters
nPlayerThe player.
Returns
The track.
Ghidra address:
NTSC-U/C: 0x001dfbf0
Ghidra address:
PAL: 0x001e8990

◆ SetFreestylePosition()

void GfxTunnel::SetFreestylePosition ( int nPlayer,
const Vector3 & stick )

Set the position of the stick of the freestyle of a player, unless the player has no graphics.

Parameters
nPlayerThe player.
stickThe position.
Ghidra address:
NTSC-U/C: 0x001dfc18
Ghidra address:
PAL: 0x001e89b8

◆ ShowScratchNote()

void GfxTunnel::ShowScratchNote ( int nPlayer,
float flTick,
float flDuration )

Sweep the needle of the scratch freestyle of a player for a note, unless the player has no graphics.

Parameters
nPlayerThe player.
flTickThe tick of the note.
flDurationThe length of the note in ticks.
Ghidra address:
NTSC-U/C: 0x001dfc50
Ghidra address:
PAL: 0x001e89f0

◆ SetTrackPlayers()

void GfxTunnel::SetTrackPlayers ( int nTrack,
int nPlayers,
const int * pPlayers )

Record the players on a track, in order of place, for the next poll.

Parameters
nTrackThe track.
nPlayersThe number of players.
pPlayersThe players.
Ghidra address:
NTSC-U/C: 0x001dfc98
Ghidra address:
PAL: 0x001e8a38

◆ PlaceGem()

void GfxTunnel::PlaceGem ( int nTrack,
int nSlot,
int nPlayer,
float flTick,
int bSlot,
int nPowerup )

Place a gem on a track, unless it lies more than 960 ticks behind the song.

A gem of a player takes the gem group of the player in a duel and on a pitch track of a remix. Otherwise it takes the gem group of the track and flashes, in a game of several players takes the colour of the player, and while the captures reveal the gems shows from the end of the capture of the track or from the tick the head of a capture would arrive at it. A powerup gem also places a spotlight. The cursors are told of each gem except a slot and a gem of the track.

Parameters
nTrackThe track.
nSlotThe slot of the gem across the track.
nPlayerThe player the gem is for, or -1.
flTickThe tick of the gem.
bSlotWhether the gem only marks a slot, with the gem group mSlotGemGroup.
nPowerupOne more than the PowerupGem of a gem of no player, or 0.
Ghidra address:
NTSC-U/C: 0x001dfd68
Ghidra address:
PAL: 0x001e8b08

◆ RemoveGem()

void GfxTunnel::RemoveGem ( int nTrack,
int nSlot,
float flTick )

Remove the gems of a tick and slot of a track, and tell the cursors when the tick is more than 80 ticks ahead of the song.

Parameters
nTrackThe track.
nSlotThe slot of the gem across the track.
flTickThe tick of the gem.
Ghidra address:
NTSC-U/C: 0x001e0010
Ghidra address:
PAL: 0x001e8db0

◆ ClearGems()

void GfxTunnel::ClearGems ( int nTrack,
bool bErase,
float flStartTick,
float flEndTick )

Remove the gems of a track over a span of ticks, and tell the cursors when the span ends more than 80 ticks ahead of the song.

An erase gives each gem of the span a removal tick that grows with its distance from the song, and bursts each mesh gem through mGemErase.

Parameters
nTrackThe track.
bEraseWhether the gems burst away instead of vanishing at once.
flStartTickThe start of the span.
flEndTickThe end of the span.
Ghidra address:
NTSC-U/C: 0x001e00d0
Ghidra address:
PAL: 0x001e8e70

◆ HideNextPhrase()

void GfxTunnel::HideNextPhrase ( bool bNow)

Hide the arrow of each track.

Parameters
bNowWhether the arrows vanish at once.
Ghidra address:
NTSC-U/C: 0x001e0338
Ghidra address:
PAL: 0x001e90d8

◆ ShowNextPhrase()

void GfxTunnel::ShowNextPhrase ( int nTrack,
float flTick,
int nSlot )

Point the arrow of a track at the first gem of the next phrase, when the tracks have arrows.

Parameters
nTrackThe track.
flTickThe tick of the gem.
nSlotThe slot of the gem across the track.
Ghidra address:
NTSC-U/C: 0x001e03a0
Ghidra address:
PAL: 0x001e9140

◆ SetCatchMeter()

void GfxTunnel::SetCatchMeter ( int nPlayer,
float flLevel )

Set the energy of the cursor of a player.

Parameters
nPlayerThe player.
flLevelThe level of the catch meter.
Ghidra address:
NTSC-U/C: 0x001e03d8
Ghidra address:
PAL: 0x001e9178

◆ ShowGemResult()

void GfxTunnel::ShowGemResult ( int nTrack,
int nSlot,
bool bHit,
int nPlayer,
int nBurst,
float flTick )

Show the result of a gem on the activator of a player.

A hit flashes the cell of the gem, pulses the cursor, and bursts the gem through a view of nBurst, or in a duel through a view of the other player. A miss outside a remix places a gem of mMissGemGroup when sShowMissGems is set.

Parameters
nTrackThe track.
nSlotThe slot of the gem across the track.
bHitWhether the gem was hit.
nPlayerThe player.
nBurstThe GemBurst of a hit.
flTickThe tick of the gem.
Ghidra address:
NTSC-U/C: 0x001e0408
Ghidra address:
PAL: 0x001e91a8

◆ HitGem()

void GfxTunnel::HitGem ( int nPlayer,
int nTrack,
int nSlot,
float flTick )

Flash the cell of a gem with the flash of a pitched gem.

Parameters
nPlayerThe player.
nTrackThe track.
nSlotThe slot of the gem across the track.
flTickThe tick of the gem.
Ghidra address:
NTSC-U/C: 0x001e05c8
Ghidra address:
PAL: 0x001e9368

◆ SetFreestyle()

void GfxTunnel::SetFreestyle ( int nPlayer,
bool bPlaying,
int nColumn )

Record whether a player plays the freestyle, and outside a remix whether the gems of the focus track fire hit events.

Parameters
nPlayerThe player.
bPlayingWhether the player plays.
nColumnThe column of the freestyle.
Ghidra address:
NTSC-U/C: 0x001e0678
Ghidra address:
PAL: 0x001e9418

◆ ResetFreestyle()

void GfxTunnel::ResetFreestyle ( int nPlayer)

Start a sample on the freestyle of a player.

Parameters
nPlayerThe player.
Ghidra address:
NTSC-U/C: 0x001e06e0
Ghidra address:
PAL: 0x001e9480

◆ ShowCapture()

void GfxTunnel::ShowCapture ( int nPlayer,
int nTrack,
int bAuto,
bool bFreestyle,
float flStartTick,
float flEndTick )

Record the capture of a phrase of a track and start its effect, except in a duel.

An automatic capture starts the capture effect of the track. Otherwise a fire burns from the song tick to flEndTick in the colour of the instrument in a solo game, or of the player.

Parameters
nPlayerThe player.
nTrackThe track.
bAutoWhether the capture is automatic.
bFreestyleWhether the fire is a fire of the freestyle.
flStartTickThe tick the phrase starts at.
flEndTickThe tick after the phrase.
Ghidra address:
NTSC-U/C: 0x001e0708
Ghidra address:
PAL: 0x001e94a8

◆ ShowResult()

void GfxTunnel::ShowResult ( bool bWon,
int nPlayer,
bool bCampaignWin,
bool bUnlocked )

Show the result of the song.

A duel fades to black, hides the head-up display, and goes idle unless the song tick is 0. Otherwise the result ends after sWinSequenceDuration for a campaign win, plus mUnlockDoneTicks for an unlock, and a campaign win plays the shell of the win while any other result hides the head-up display.

Parameters
bWonWhether the song was won. The routine does not read it.
nPlayerThe player. The routine does not read it.
bCampaignWinWhether a won song outside practice is shown.
bUnlockedWhether winning the song unlocked the path of the arena.
Ghidra address:
NTSC-U/C: 0x001e0820
Ghidra address:
PAL: 0x001e95c0

◆ StartBossJourney()

void GfxTunnel::StartBossJourney ( )

Start the boss journey, which ends mBossDoneTicks after the song tick.

Ghidra address:
NTSC-U/C: 0x001e0908
Ghidra address:
PAL: 0x001e96a8

◆ ShowPhrase()

void GfxTunnel::ShowPhrase ( int nPlayer,
int nTrack,
bool bPlayable,
float flStartTick,
float flEndTick,
int nStyle,
bool bSlide )

Point the cursor of a player at a phrase, or refresh the cursor.

In a game of several players the colours of the panels are restored at the next poll.

Parameters
nPlayerThe player.
nTrackThe track.
bPlayableWhether the cursor targets the phrase, when sShowSeeker is set.
flStartTickThe tick the phrase starts at.
flEndTickThe tick after the phrase.
nStyleThe style of the display, passed to TnlCursor::Refresh().
bSlideWhether the camera moves to the phrase. The routine does not read it.
Ghidra address:
NTSC-U/C: 0x001e0928
Ghidra address:
PAL: 0x001e96c8

◆ SetBar()

void GfxTunnel::SetBar ( int nTrack,
int nPlayer,
int nOwner,
bool bInSong,
bool bNow,
int nFlags,
signed char nInstrument,
float flTick,
float flTicks )

Set the look of one bar of a track, adding the bar when it is not set, and show its panel.

A bar that ends by tick 0 is marked kBarFlagBeforeSong. In a remix, or for a bar that does not map to the song past the first two bars, a bar less than a bar after a boundary shows the checkpoint, or the finish at the end of the arena, and a bar less than two bars after a boundary is dropped instead of revealed.

Parameters
nTrackThe track.
nPlayerThe player. The routine passes it on to ApplyBar().
nOwnerThe player who owns the bar, or -1.
bInSongWhether the bar maps to a bar of the song.
bNowWhether the panel applies at once rather than through a reveal.
nFlagsA set of BarFlag.
nInstrumentThe instrument whose colour the panel takes, or -1.
flTickThe tick the bar starts at.
flTicksThe length of the bar in ticks.
Ghidra address:
NTSC-U/C: 0x001e0a00
Ghidra address:
PAL: 0x001e97a0

◆ DimBar()

void GfxTunnel::DimBar ( int nTrack,
float flTick )

Darken the panel of one bar of a track by sDuelFailDarkening.

Parameters
nTrackThe track.
flTickA tick of the bar.
Ghidra address:
NTSC-U/C: 0x001e0e88
Ghidra address:
PAL: 0x001e9c28

◆ SetTrackEnabled()

void GfxTunnel::SetTrackEnabled ( int nTrack,
bool bEnabled )

Start the effect that enables a track.

Parameters
nTrackThe track.
bEnabledWhether the track is enabled. A false value does nothing.
Ghidra address:
NTSC-U/C: 0x001e0f40
Ghidra address:
PAL: 0x001e9ce0

◆ AddCheckpoint()

void GfxTunnel::AddCheckpoint ( const char * pszLabel,
float flTick,
float flTextScale )

Add a boundary between the sections of the song.

Parameters
pszLabelThe text of the boundary, or null for the default text.
flTickThe tick of the boundary.
flTextScaleThe scale of the text.
Ghidra address:
NTSC-U/C: 0x001e0f70
Ghidra address:
PAL: 0x001e9d10

◆ ClearCheckpoints()

void GfxTunnel::ClearCheckpoints ( )

Remove every boundary between the sections of the song.

Ghidra address:
NTSC-U/C: 0x001e0f90
Ghidra address:
PAL: 0x001e9d30

◆ SetOption()

void GfxTunnel::SetOption ( bool bOption)

Select the near or the far pull back of the camera.

Parameters
bOptionWhether the far pull back is selected.
Ghidra address:
NTSC-U/C: 0x001e0fb0
Ghidra address:
PAL: 0x001e9d50

◆ GetOption()

int GfxTunnel::GetOption ( )

Report whether the far pull back of the camera is selected.

Returns
PlayerCamFX::mZoomedOut.
Ghidra address:
NTSC-U/C: 0x001e0fd0
Ghidra address:
PAL: 0x001e9d70

◆ SetZoom()

void GfxTunnel::SetZoom ( float flZoom)

Set the pull back of the camera.

Parameters
flZoomThe pull back as a multiple of the far one, or 0 for the selected one.
Ghidra address:
NTSC-U/C: 0x001e0fe0
Ghidra address:
PAL: 0x001e9d80

◆ BlendToArenaPath()

void GfxTunnel::BlendToArenaPath ( bool bArena)

Blend the camera towards the arena path or back over one second from the current blend.

The name is inferred.

Parameters
bArenaBlend towards the arena path.
Ghidra address:
NTSC-U/C: 0x001e1008
Ghidra address:
PAL: 0x001e9da8

◆ SetCatcherShown()

void GfxTunnel::SetCatcherShown ( int nPlayer,
bool bShown )

Show or hide the catcher of a player.

Parameters
nPlayerThe player.
bShownWhether the catcher is shown.
Ghidra address:
NTSC-U/C: 0x001e10a8
Ghidra address:
PAL: 0x001e9e48

◆ ClearLanes()

void GfxTunnel::ClearLanes ( )

Reset the activator of each player and put every player at its track at once.

Ghidra address:
NTSC-U/C: 0x001e10d8
Ghidra address:
PAL: 0x001e9e78

◆ ClearAll()

void GfxTunnel::ClearAll ( )

Clear every effect of the tunnel.

Ghidra address:
NTSC-U/C: 0x001e1148
Ghidra address:
PAL: 0x001e9ee8

◆ ScaleLights()

void GfxTunnel::ScaleLights ( RndEnviron * pEnviron)
static

Divide the colour of each light of an environment by the scroll speed of the tunnel.

Parameters
pEnvironThe environment.
Ghidra address:
NTSC-U/C: 0x001df218
Ghidra address:
PAL: 0x001e7fb8

◆ GetTrackPlayersDirty()

int GfxTunnel::GetTrackPlayersDirty ( ) const
inline
Returns
Whether SetTrackPlayers() changed the players of a track.

◆ SetTrackPlayersDirty()

void GfxTunnel::SetTrackPlayersDirty ( int nValue)
inline

Set whether SetTrackPlayers() changed the players of a track.

Parameters
nValueThe new value.

◆ GetPanelColorsDirty()

int GfxTunnel::GetPanelColorsDirty ( ) const
inline
Returns
Whether the next poll restores the colours of the panels.

◆ SetPanelColorsDirty()

void GfxTunnel::SetPanelColorsDirty ( int nValue)
inline

Set whether the next poll restores the colours of the panels.

Parameters
nValueThe new value.

◆ GetDefaultFocusTrack()

signed char GfxTunnel::GetDefaultFocusTrack ( ) const
inline
Returns
The track the gems focus on, or -1.

◆ SetDefaultFocusTrack()

void GfxTunnel::SetDefaultFocusTrack ( signed char nValue)
inline

Set the track the gems focus on.

Parameters
nValueThe new value.

◆ GetDivider()

TnlDivider * GfxTunnel::GetDivider ( ) const
inline
Returns
The boundaries between the sections of the song. Belongs to the tunnel.

◆ GetArms()

ParticleArms * GfxTunnel::GetArms ( ) const
inline
Returns
The particle arms, or null. Belongs to the tunnel.

◆ GetFires()

const std::vector< std::unique_ptr< TnlFire > > & GfxTunnel::GetFires ( ) const
inline
Returns
The fires of captured tracks. Belongs to the tunnel.

◆ GetTrackFX()

const std::vector< std::unique_ptr< TnlTrackFX > > & GfxTunnel::GetTrackFX ( ) const
inline
Returns
The effects of each track. Belongs to the tunnel.

◆ GetFlashes()

const std::vector< std::unique_ptr< TnlFlashFX > > & GfxTunnel::GetFlashes ( ) const
inline
Returns
The flashes of the gems. Belongs to the tunnel.

◆ GetCrippleFX()

const std::vector< std::unique_ptr< TnlCripFX > > & GfxTunnel::GetCrippleFX ( ) const
inline
Returns
The crippler of each player. Belongs to the tunnel.

◆ GetSlowdown()

TnlSlowdownFX * GfxTunnel::GetSlowdown ( ) const
inline
Returns
The shell of a slowdown. Belongs to the tunnel.

◆ GetSpotLights()

SpotLightFX * GfxTunnel::GetSpotLights ( ) const
inline
Returns
The spotlights of the gems. Belongs to the tunnel.

◆ GetGemErase()

GemEraseFX * GfxTunnel::GetGemErase ( ) const
inline
Returns
The erased gems that burst later. Belongs to the tunnel.

◆ GetWinShell()

TnlWinShell * GfxTunnel::GetWinShell ( ) const
inline
Returns
The shell of a won song. Belongs to the tunnel.

◆ GetBlurs()

TnlBlurs * GfxTunnel::GetBlurs ( ) const
inline
Returns
The blurs of the slowdowns. Belongs to the tunnel.

◆ GetGemCaps()

const std::vector< std::unique_ptr< TnlGemCapFX > > & GfxTunnel::GetGemCaps ( ) const
inline
Returns
The capture bursts of the gems. Belongs to the tunnel.

◆ GetStreakGems()

const std::vector< std::unique_ptr< TnlStreakGemFX > > & GfxTunnel::GetStreakGems ( ) const
inline
Returns
The arrow of each track. Belongs to the tunnel.

◆ GetGems()

TnlGems * GfxTunnel::GetGems ( ) const
inline
Returns
The gems. Belongs to the tunnel.

◆ GetGeom()

TnlGeom * GfxTunnel::GetGeom ( ) const
inline
Returns
The geometry of the tracks. Belongs to the tunnel.

◆ GetTransparentView()

RndView * GfxTunnel::GetTransparentView ( ) const
inline
Returns
tnl transparent. Borrowed.

◆ GetGridView()

RndView * GfxTunnel::GetGridView ( ) const
inline
Returns
grid1.view. Borrowed.

◆ GetArena()

GfxArena * GfxTunnel::GetArena ( ) const
inline
Returns
The arena. Borrowed from GfxManager.

◆ GetTrackColorLight()

RndLight * GfxTunnel::GetTrackColorLight ( ) const
inline
Returns
tunnel track color.lit of a solo game, or null. Borrowed.

◆ GetTrackColorPlayer()

int GfxTunnel::GetTrackColorPlayer ( ) const
inline
Returns
The player the track colour light follows, or -1.

◆ GetFadeMesh()

RndMesh * GfxTunnel::GetFadeMesh ( ) const
inline
Returns
tunnel fade.mesh. Borrowed.

◆ GetFadeCurve()

LinearInterpolator & GfxTunnel::GetFadeCurve ( )
inline
Returns
The fade of the fade mesh.

◆ GetPlayers()

const std::vector< std::unique_ptr< TnlPlayer > > & GfxTunnel::GetPlayers ( ) const
inline
Returns
The graphics of each player. Belongs to the tunnel.

◆ GetSavedClearColor()

const Color & GfxTunnel::GetSavedClearColor ( ) const
inline
Returns
The clear colour of the renderer to restore.

◆ GetPanels()

const std::list< std::unique_ptr< GfxTunnelPanel > > & GfxTunnel::GetPanels ( ) const
inline
Returns
The panels waiting to apply. Belongs to the tunnel.

◆ GetInstrumentGemGroups()

const std::vector< signed char > & GfxTunnel::GetInstrumentGemGroups ( ) const
inline
Returns
The sprite gem group of each instrument.

◆ GetTrackGemGroups()

const std::vector< signed char > & GfxTunnel::GetTrackGemGroups ( ) const
inline
Returns
The sprite gem group of each track.

◆ GetPlayerGemGroups()

const std::vector< signed char > & GfxTunnel::GetPlayerGemGroups ( ) const
inline
Returns
The gem group of each player.

◆ GetPowerupGemGroups()

const std::vector< signed char > & GfxTunnel::GetPowerupGemGroups ( ) const
inline
Returns
The gem group of each powerup gem.

◆ GetMissGemGroup()

signed char GfxTunnel::GetMissGemGroup ( ) const
inline
Returns
The gem group gem_miss.

◆ GetSlotGemGroup()

signed char GfxTunnel::GetSlotGemGroup ( ) const
inline
Returns
The gem group gem_slot.

◆ GetGemGroup()

signed char GfxTunnel::GetGemGroup ( ) const
inline
Returns
The gem group gem_b.

◆ GetTracks()

const std::vector< TrackData > & GfxTunnel::GetTracks ( ) const
inline
Returns
The state of each track.

◆ GetCrippledTracks()

signed char GfxTunnel::GetCrippledTracks ( ) const
inline
Returns
One bit for each track whose player is crippled.

◆ SetCrippledTracks()

void GfxTunnel::SetCrippledTracks ( signed char nValue)
inline

Set the tracks whose players are crippled.

Parameters
nValueThe new value.

◆ GetNumTracks()

int GfxTunnel::GetNumTracks ( ) const
inline
Returns
The number of tracks.

◆ GetInstrumentColors()

const std::vector< Color > & GfxTunnel::GetInstrumentColors ( ) const
inline
Returns
The colour of each instrument.

◆ GetTrackColors()

const std::vector< Color > & GfxTunnel::GetTrackColors ( ) const
inline
Returns
The colour of each track.

◆ GetCheckpointMat()

RndMat * GfxTunnel::GetCheckpointMat ( ) const
inline
Returns
panel ckpt.mat. Borrowed.

◆ GetCheckpointFinishMat()

RndMat * GfxTunnel::GetCheckpointFinishMat ( ) const
inline
Returns
panel ckpt finish.mat. Borrowed.

◆ GetOverlayCam()

RndCam * GfxTunnel::GetOverlayCam ( ) const
inline
Returns
tnl overlay.cam. Borrowed.

◆ GetOuterCams()

const std::vector< RndCam * > & GfxTunnel::GetOuterCams ( ) const
inline
Returns
The cameras BuildOuterCams() fits. Borrowed.

◆ GetLetterbox()

float GfxTunnel::GetLetterbox ( ) const
inline
Returns
How far the letterbox is closed, from 0 to 1.

◆ GetPlayerBurstViews()

const std::vector< std::vector< RndView * > > & GfxTunnel::GetPlayerBurstViews ( ) const
inline
Returns
The views of the capture bursts of each player. Borrowed.

◆ GetGemBurstViews()

const std::vector< std::vector< RndView * > > & GfxTunnel::GetGemBurstViews ( ) const
inline
Returns
The views of the bursts of each kind. Borrowed.

◆ GetCaptureReveals()

int GfxTunnel::GetCaptureReveals ( ) const
inline
Returns
Whether the gems and the panels react to captures.

◆ GetChangedRange()

TnlTrackRange & GfxTunnel::GetChangedRange ( )
inline
Returns
The tracks and ticks the last poll changed.

◆ GetBossJourneyDone()

int GfxTunnel::GetBossJourneyDone ( ) const
inline
Returns
Whether the boss journey has ended.

◆ GetIdle()

int GfxTunnel::GetIdle ( ) const
inline
Returns
Whether no effect of the tunnel runs.

◆ SetIdle()

void GfxTunnel::SetIdle ( int nValue)
inline

Set whether no effect of the tunnel runs.

Parameters
nValueThe new value.

◆ GetUnlockDoneTicks()

float GfxTunnel::GetUnlockDoneTicks ( ) const
inline
Returns
The extra ticks of a result that unlocks a path.

◆ SetUnlockDoneTicks()

void GfxTunnel::SetUnlockDoneTicks ( float fValue)
inline

Set the extra ticks of a result that unlocks a path.

Parameters
fValueThe new value.

◆ GetBossDoneTicks()

float GfxTunnel::GetBossDoneTicks ( ) const
inline
Returns
The ticks the boss journey lasts.

◆ SetBossDoneTicks()

void GfxTunnel::SetBossDoneTicks ( float fValue)
inline

Set the ticks the boss journey lasts.

Parameters
fValueThe new value.

◆ GetResultDoneTick()

float GfxTunnel::GetResultDoneTick ( ) const
inline
Returns
The tick the result of the song ends at.

◆ GetBossJourneyDoneTick()

float GfxTunnel::GetBossJourneyDoneTick ( ) const
inline
Returns
The tick the boss journey ends at.

◆ GetCamFX()

PlayerCamFX * GfxTunnel::GetCamFX ( ) const
inline
Returns
The camera of the players. Belongs to the tunnel.

◆ GetPathBlendCurve()

ATanInterpolator & GfxTunnel::GetPathBlendCurve ( )
inline
Returns
The blend of the camera towards the arena path.

◆ GetPathBlending()

int GfxTunnel::GetPathBlending ( ) const
inline
Returns
Whether the path blend curve runs.

◆ GetCenter()

const Vector3 & GfxTunnel::GetCenter ( ) const
inline
Returns
The centre of the cross section of the tracks.

Member Data Documentation

◆ sCurrent

GfxTunnel* GfxTunnel::sCurrent
static

The tunnel of the song, or null.

Ghidra address:
NTSC-U/C: 0x003af9d4
Ghidra address:
PAL: 0x0042e86c

◆ sSplitScreen

int GfxTunnel::sSplitScreen
static

Whether each pad gets its own cameras, splitscreen.

Ghidra address:
NTSC-U/C: 0x003af9f4
Ghidra address:
PAL: 0x0042e88c

◆ sShowPanels

int GfxTunnel::sShowPanels
static

Whether the panels of the tracks show, show_panels.

Ghidra address:
NTSC-U/C: 0x003af9f8
Ghidra address:
PAL: 0x0042e890

◆ sShowDividers

int GfxTunnel::sShowDividers
static

Whether the boundaries between the sections show, show_dividers.

Ghidra address:
NTSC-U/C: 0x003af9fc
Ghidra address:
PAL: 0x0042e894

◆ sInvertTunnel

int GfxTunnel::sInvertTunnel
static

Whether the tunnel entry has the invert flag.

Ghidra address:
NTSC-U/C: 0x003afa00
Ghidra address:
PAL: 0x0042e898

◆ sFlipTunnel

int GfxTunnel::sFlipTunnel
static

Whether the tunnel entry has the flip flag, or the second shape of the circular cheat is selected.

Ghidra address:
NTSC-U/C: 0x003afa04
Ghidra address:
PAL: 0x0042e89c

◆ sCenterTunnel

int GfxTunnel::sCenterTunnel
static

Whether the tunnel entry has the center flag.

Ghidra address:
NTSC-U/C: 0x003afa08
Ghidra address:
PAL: 0x0042e8a0

◆ sOpaquePanels

int GfxTunnel::sOpaquePanels
static

opaque_panels, which is never read.

Ghidra address:
NTSC-U/C: 0x003afa0c
Ghidra address:
PAL: 0x0042e8a4

◆ sShowDisabledPanels

int GfxTunnel::sShowDisabledPanels
static

show_disabled_panels, which is never read.

Ghidra address:
NTSC-U/C: 0x003afa10
Ghidra address:
PAL: 0x0042e8a8

◆ sShowSeeker

int GfxTunnel::sShowSeeker
static

Whether the seekers show, show_seeker.

Ghidra address:
NTSC-U/C: 0x003afa14
Ghidra address:
PAL: 0x0042e8ac

◆ sSeekerEndcapsAlways

int GfxTunnel::sSeekerEndcapsAlways
static

seeker_endcaps_always, which is never read.

Ghidra address:
NTSC-U/C: 0x003afa18
Ghidra address:
PAL: 0x0042e8b0

◆ sSeekerOpacity

float GfxTunnel::sSeekerOpacity
static

seeker_opacity, which is never read.

Ghidra address:
NTSC-U/C: 0x003afa1c
Ghidra address:
PAL: 0x0042e8b4

◆ sShowActivator

int GfxTunnel::sShowActivator
static

Whether the targets of the activators show, show_activator.

Ghidra address:
NTSC-U/C: 0x003afa20
Ghidra address:
PAL: 0x0042e8b8

◆ sShowMissGems

int GfxTunnel::sShowMissGems
static

Whether missed gems show, show_miss_gems.

Ghidra address:
NTSC-U/C: 0x003afa24
Ghidra address:
PAL: 0x0042e8bc

◆ sTunnelBars

int GfxTunnel::sTunnelBars
static

tunnel_bars, which BuildPanels() reads.

Ghidra address:
NTSC-U/C: 0x003afa28
Ghidra address:
PAL: 0x0042e8c0

◆ sTunnelLowResBars

int GfxTunnel::sTunnelLowResBars
static

tunnel_low_res_bars, which BuildPanels() reads.

Ghidra address:
NTSC-U/C: 0x003afa2c
Ghidra address:
PAL: 0x0042e8c4

◆ sUseSlab

int GfxTunnel::sUseSlab
static

use_slab, which is never read.

Ghidra address:
NTSC-U/C: 0x003afa30
Ghidra address:
PAL: 0x0042e8c8

◆ sSlabDepth

float GfxTunnel::sSlabDepth
static

slab_depth times the scroll speed of the tunnel, which BuildPanels() reads.

Ghidra address:
NTSC-U/C: 0x003afa34
Ghidra address:
PAL: 0x0042e8cc

◆ sSlabAngle

float GfxTunnel::sSlabAngle
static

slab_angle in radians, which BuildPanels() reads.

Ghidra address:
NTSC-U/C: 0x003afa38
Ghidra address:
PAL: 0x0042e8d0

◆ sCameraFov

float GfxTunnel::sCameraFov
static

The field of view of the cameras of the players, camera_fov.

LoadConfig() converts it to radians. CreateMainView() loads it again and leaves it in degrees.

Ghidra address:
NTSC-U/C: 0x003afa3c
Ghidra address:
PAL: 0x0042e8d4

◆ sLetterboxFov

float GfxTunnel::sLetterboxFov
static

The field of view of the outer cameras with the letterbox closed, camera_letterbox_fov in radians.

Ghidra address:
NTSC-U/C: 0x003afa40
Ghidra address:
PAL: 0x0042e8d8

◆ sGemRotatePeriod

float GfxTunnel::sGemRotatePeriod
static

The milliseconds of one turn of a gem, gem_rotate_period.

Ghidra address:
NTSC-U/C: 0x003afa44
Ghidra address:
PAL: 0x0042e8dc

◆ sGemHitFlashSize

float GfxTunnel::sGemHitFlashSize
static

The size of the flash of a hit gem, gem_hit_flash_size times the scroll speed of the tunnel.

Ghidra address:
NTSC-U/C: 0x003afa48
Ghidra address:
PAL: 0x0042e8e0

◆ sGemHitFlashGrowth

float GfxTunnel::sGemHitFlashGrowth
static

The growth of the flash of a hit gem, the scroll speed of the tunnel divided by gem_hit_flash_time.

Ghidra address:
NTSC-U/C: 0x003afa4c
Ghidra address:
PAL: 0x0042e8e4

◆ sGemPitchFlashSize

float GfxTunnel::sGemPitchFlashSize
static

gem_pitch_flash_size times the scroll speed of the tunnel.

Ghidra address:
NTSC-U/C: 0x003afa50
Ghidra address:
PAL: 0x0042e8e8

◆ sGemPitchFlashGrowth

float GfxTunnel::sGemPitchFlashGrowth
static

The scroll speed of the tunnel divided by gem_pitch_flash_time.

Ghidra address:
NTSC-U/C: 0x003afa54
Ghidra address:
PAL: 0x0042e8ec

◆ sWinSequenceDuration

float GfxTunnel::sWinSequenceDuration
static

win_sequence_duration.

Ghidra address:
NTSC-U/C: 0x003afa60
Ghidra address:
PAL: 0x0042e8f8

◆ sFadeToBlackDuration

float GfxTunnel::sFadeToBlackDuration
static

fade_to_black_duration.

Ghidra address:
NTSC-U/C: 0x003afa64
Ghidra address:
PAL: 0x0042e8fc

◆ sPreviewCamChangeTime

float GfxTunnel::sPreviewCamChangeTime
static

preview_cam_change_time, the milliseconds BlendToArenaPath() blends the path over.

Ghidra address:
NTSC-U/C: 0x003afa68
Ghidra address:
PAL: 0x0042e900

◆ sDuelFailDarkening

float GfxTunnel::sDuelFailDarkening
static

duel_fail_darkening.

Ghidra address:
NTSC-U/C: 0x003afa6c
Ghidra address:
PAL: 0x0042e904

◆ sMeshGemScale

float GfxTunnel::sMeshGemScale
static

mesh_gem_scale, which BuildPanels() reads.

Ghidra address:
NTSC-U/C: 0x003afa70
Ghidra address:
PAL: 0x0042e908

◆ sPanelWidth

float GfxTunnel::sPanelWidth
static

The width of a panel, which BuildPanels() measures.

Ghidra address:
NTSC-U/C: 0x003afa78
Ghidra address:
PAL: 0x0042e910

◆ sBoundaryOffset

Vector3 GfxTunnel::sBoundaryOffset
static

The offset of the boundaries between the sections, boundary_offset.

Ghidra address:
NTSC-U/C: 0x0043b320

◆ sSeekerColor

Color GfxTunnel::sSeekerColor
static

The colour of the seekers, seeker_color.

Ghidra address:
NTSC-U/C: 0x0043b330

◆ sArenaZ

Vector2 GfxTunnel::sArenaZ
static

The depth range arena_z of the cameras of the tunnel.

Ghidra address:
NTSC-U/C: 0x0043b340

◆ sTnlZ

Vector2 GfxTunnel::sTnlZ
static

The depth range tnl_z of the cameras of the tunnel.

Ghidra address:
NTSC-U/C: 0x0043b348

◆ sTnlzZ

Vector2 GfxTunnel::sTnlzZ
static

The depth range tnlz_z of the cameras of the tunnel.

Ghidra address:
NTSC-U/C: 0x0043b350

◆ sTrackLightFade

LinearInterpolator GfxTunnel::sTrackLightFade
static

The brightness of tunnel track color.lit over the ticks of the song, rising over the 480 ticks before the song.

Ghidra address:
NTSC-U/C: 0x0043b358

◆ sShape

std::vector<SegmentSegment> GfxTunnel::sShape
static

The cross section of the tunnel, tunnel.

Ghidra address:
NTSC-U/C: 0x0043b378

◆ sSegments

std::vector<SegmentSegment> GfxTunnel::sSegments
static

The cross section BuildPanels() fits to the tracks, a copy of sShape.

Ghidra address:
NTSC-U/C: 0x0043b388

◆ sTrackPoints

std::vector<Vector2> GfxTunnel::sTrackPoints
static

The unit normal of each track in the cross section, which BuildPanels() measures from sSegments.

Ghidra address:
NTSC-U/C: 0x0043b398

◆ sBurstScale

Vector3 GfxTunnel::sBurstScale
static

The scale of the capture bursts, which BuildPanels() measures.

Ghidra address:
NTSC-U/C: 0x0043b3c0

◆ sGridQuarterScale

Vector3 GfxTunnel::sGridQuarterScale
static

The scale of a quarter line of the grids, grid_quarter_scale.

Ghidra address:
NTSC-U/C: 0x0043b3d0

◆ sGridEighthScale

Vector3 GfxTunnel::sGridEighthScale
static

The scale of an eighth line of the grids, grid_eighth_scale.

Ghidra address:
NTSC-U/C: 0x0043b3f0

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