126 std::list<BarData>::iterator
FindBar(
float flTick,
float flNow,
int *pbFound);
153 const std::vector<int> &trackTypes,
214 void LoadViews(std::vector<RndView *> *pViews,
const char *pszFormat);
281 static void LayoutDividers(
const std::vector<Segment> *pSegments,
float flScale);
425 bool Burst(
const std::vector<RndView *> *pViews,
523 void Poll(
float fTicks,
float fTime);
633 void CollectGemTicks(std::vector<float> *pTicks,
char nTrack,
float flFromTick,
float flToTick);
657 const Color *pInnerColor,
658 const Color *pOuterColor,
659 const std::vector<float> *pGemTicks);
705 const char *pszMultiplier,
706 const char *pszNextMultiplier,
730 void ShowSlowdown(
int nPlayer,
float flStartTick,
float flEndTick,
float flStopTick);
751 void ShowBump(
int nAttacker,
int nVictim,
int nTrack);
844 void PlaceGem(
int nTrack,
int nSlot,
int nPlayer,
float flTick,
int bSlot,
int nPowerup);
872 void ClearGems(
int nTrack,
bool bErase,
float flStartTick,
float flEndTick);
921 void ShowGemResult(
int nTrack,
int nSlot,
bool bHit,
int nPlayer,
int nBurst,
float flTick);
933 void HitGem(
int nPlayer,
int nTrack,
int nSlot,
float flTick);
972 int nPlayer,
int nTrack,
int bAuto,
bool bFreestyle,
float flStartTick,
float flEndTick);
989 void ShowResult(
bool bWon,
int nPlayer,
bool bCampaignWin,
bool bUnlocked);
1048 signed char nInstrument,
1515 return mTrackPlayersDirty;
1524 mTrackPlayersDirty = nValue;
1529 return mPanelColorsDirty;
1538 mPanelColorsDirty = nValue;
1543 return mDefaultFocusTrack;
1552 mDefaultFocusTrack = nValue;
1557 return mDivider.get();
1566 const std::vector<std::unique_ptr<TnlFire>> &
GetFires()
const {
1571 const std::vector<std::unique_ptr<TnlTrackFX>> &
GetTrackFX()
const {
1576 const std::vector<std::unique_ptr<TnlFlashFX>> &
GetFlashes()
const {
1587 return mSlowdown.get();
1592 return mSpotLights.get();
1597 return mGemErase.get();
1602 return mWinShell.get();
1607 return mBlurs.get();
1611 const std::vector<std::unique_ptr<TnlGemCapFX>> &
GetGemCaps()
const {
1632 return mTransparentView;
1647 return mTrackColorLight;
1652 return mTrackColorPlayer;
1666 const std::vector<std::unique_ptr<TnlPlayer>> &
GetPlayers()
const {
1672 return mSavedClearColor;
1676 const std::list<std::unique_ptr<GfxTunnelPanel>> &
GetPanels()
const {
1682 return mInstrumentGemGroups;
1687 return mTrackGemGroups;
1692 return mPlayerGemGroups;
1697 return mPowerupGemGroups;
1702 return mMissGemGroup;
1707 return mSlotGemGroup;
1722 return mCrippledTracks;
1731 mCrippledTracks = nValue;
1741 return mInstrumentColors;
1746 return mTrackColors;
1751 return mCheckpointMat;
1756 return mCheckpointFinishMat;
1776 return mPlayerBurstViews;
1781 return mGemBurstViews;
1786 return mCaptureReveals;
1791 return mChangedRange;
1796 return mBossJourneyDone;
1815 return mUnlockDoneTicks;
1824 mUnlockDoneTicks = fValue;
1829 return mBossDoneTicks;
1838 mBossDoneTicks = fValue;
1843 return mResultDoneTick;
1848 return mBossJourneyDoneTick;
1853 return mCamFX.get();
1858 return mPathBlendCurve;
1863 return mPathBlending;
1872 int mTrackPlayersDirty;
1873 int mPanelColorsDirty;
1874 signed char mDefaultFocusTrack;
1875 std::unique_ptr<TnlDivider> mDivider;
1876 std::unique_ptr<ParticleArms> mArms;
1877 std::vector<std::unique_ptr<TnlFire>> mFires;
1878 std::vector<std::unique_ptr<TnlTrackFX>> mTrackFX;
1879 std::vector<std::unique_ptr<TnlFlashFX>> mFlashes;
1880 std::vector<std::unique_ptr<TnlCripFX>> mCrippleFX;
1881 std::unique_ptr<TnlSlowdownFX> mSlowdown;
1882 std::unique_ptr<SpotLightFX> mSpotLights;
1883 std::unique_ptr<GemEraseFX> mGemErase;
1884 std::unique_ptr<TnlWinShell> mWinShell;
1885 std::unique_ptr<TnlBlurs> mBlurs;
1886 std::vector<std::unique_ptr<TnlGemCapFX>> mGemCaps;
1887 std::vector<std::unique_ptr<TnlStreakGemFX>> mStreakGems;
1888 std::unique_ptr<TnlGems> mGems;
1889 std::unique_ptr<TnlGeom> mGeom;
1894 int mTrackColorPlayer;
1897 std::vector<std::unique_ptr<TnlPlayer>> mPlayers;
1898 alignas(16)
Color mSavedClearColor;
1899 std::list<std::unique_ptr<GfxTunnelPanel>> mPanels;
1900 std::vector<signed char> mInstrumentGemGroups;
1901 std::vector<signed char> mTrackGemGroups;
1902 std::vector<signed char> mPlayerGemGroups;
1903 std::vector<signed char> mPowerupGemGroups;
1904 signed char mMissGemGroup;
1905 signed char mSlotGemGroup;
1906 signed char mGemGroup;
1907 std::vector<TrackData> mTracks;
1908 signed char mCrippledTracks;
1910 std::vector<Color> mInstrumentColors;
1911 std::vector<Color> mTrackColors;
1913 RndMat *mCheckpointFinishMat;
1916 std::vector<RndCam *> mOuterCams;
1919 std::vector<std::vector<RndView *>> mPlayerBurstViews;
1921 std::vector<std::vector<RndView *>> mGemBurstViews;
1923 int mCaptureReveals;
1925 int mBossJourneyDone;
1927 float mUnlockDoneTicks;
1928 float mBossDoneTicks;
1929 float mResultDoneTick;
1930 float mBossJourneyDoneTick;
1931 std::unique_ptr<PlayerCamFX> mCamFX;
1954 ApplyBar(TrackData *pTrack,
const BarData *pBar,
int nPlayer,
bool bNow,
const Color *pColor);
Interpolator that follows an arctangent, which eases in and out of the range.
Definition interpolator.h:287
Reference-counted array of script data nodes.
Definition dataarray.h:20
The bursts of the gems a player erases, each started at its time.
Definition gemerasefx.h:13
Arena the play field flies through, with its camera path, its triggers, and the movies and the freque...
Definition gfxarena.h:28
The look of one bar of a track waiting to be applied to its panel, either once the track is no longer...
Definition gfxtunnelpanel.h:14
static constexpr int kNoType
The type of a track before the tunnel gives it one.
Definition gfxtunnel.h:104
int mInstrument
Definition gfxtunnel.h:129
TrackData()
Construct a track with no index, no bars, and no capture.
Definition gfxtunnel.h:110
float mCaptureEndTick
Definition gfxtunnel.h:134
std::list< BarData >::iterator FindBar(float flTick, float flNow, int *pbFound)
Find the first bar that ends after a tick, dropping the bars that ended more than half a bar before t...
int mIndex
Definition gfxtunnel.h:128
static constexpr float kNoTick
The tick of a capture that has not happened.
Definition gfxtunnel.h:107
int mType
Definition gfxtunnel.h:130
float mCaptureStartTick
Definition gfxtunnel.h:133
std::vector< signed char > mPlayers
Definition gfxtunnel.h:132
std::list< BarData > mBars
Definition gfxtunnel.h:131
static int sShowMissGems
Whether missed gems show, show_miss_gems.
Definition gfxtunnel.h:1275
RndCam * GetOverlayCam() const
Definition gfxtunnel.h:1760
const std::vector< std::unique_ptr< TnlFlashFX > > & GetFlashes() const
Definition gfxtunnel.h:1576
static void OnBlendToPath(DataArray *pCommand, void *pUserData)
Run the script command blend_to_path.
void SetCrippledTracks(signed char nValue)
Set the tracks whose players are crippled.
Definition gfxtunnel.h:1730
void DrawTracks()
Draw the gems, the grid, the transparent layer, the spotlights, the capture bursts,...
static Vector2 sTnlZ
The depth range tnl_z of the cameras of the tunnel.
Definition gfxtunnel.h:1453
TnlGems * GetGems() const
Definition gfxtunnel.h:1621
static RndView * CreateMainView()
Find the main view of the tunnel and set its camera from the configuration.
ParticleArms * GetArms() const
Definition gfxtunnel.h:1561
const std::vector< signed char > & GetPowerupGemGroups() const
Definition gfxtunnel.h:1696
int GetOption()
Report whether the far pull back of the camera is selected.
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 SetUnlockDoneTicks(float fValue)
Set the extra ticks of a result that unlocks a path.
Definition gfxtunnel.h:1823
const std::list< std::unique_ptr< GfxTunnelPanel > > & GetPanels() const
Definition gfxtunnel.h:1676
static float sSeekerOpacity
seeker_opacity, which is never read.
Definition gfxtunnel.h:1259
TnlDivider * GetDivider() const
Definition gfxtunnel.h:1556
void SetOption(bool bOption)
Select the near or the far pull back of the camera.
signed char GetMissGemGroup() const
Definition gfxtunnel.h:1701
int GetIdle() const
Definition gfxtunnel.h:1800
RndView * GetGridView() const
Definition gfxtunnel.h:1636
static void ScaleHudGems(float flScrollSpeed)
Undo the scroll speed of the tunnel on the powerup gems of the head-up display.
static float sCameraFov
The field of view of the cameras of the players, camera_fov.
Definition gfxtunnel.h:1326
int GetCaptureReveals() const
Definition gfxtunnel.h:1785
float GetBossJourneyDoneTick() const
Definition gfxtunnel.h:1847
std::pair< Vector2, Vector2 > Segment
A line of the cross section of the tunnel, from one point to the other.
Definition gfxtunnel.h:138
void RefreshChangedRange()
Refresh the grids, the cursors, the arrows, and the spotlights over mChangedRange.
void SetPanelColorsDirty(int nValue)
Set whether the next poll restores the colours of the panels.
Definition gfxtunnel.h:1537
void PollCameras(float fTicks, float fTime)
Update the trail of the freestyle of each player.
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 SetIdle(int nValue)
Set whether no effect of the tunnel runs.
Definition gfxtunnel.h:1809
void ResetFreestyle(int nPlayer)
Start a sample on the freestyle of a player.
static float sFadeToBlackDuration
fade_to_black_duration.
Definition gfxtunnel.h:1393
void AddPanel(GfxTunnelPanel *pPanel, int bDeferred, float flRevealTick)
Queue a panel to apply when its track is no longer captured or its reveal ends.
int GetViewedTrack(int nPlayer)
Report the track the ship of the freestyle of a player is over.
signed char GetSlotGemGroup() const
Definition gfxtunnel.h:1706
static Vector3 sBoundaryOffset
The offset of the boundaries between the sections, boundary_offset.
Definition gfxtunnel.h:1432
static int sShowSeeker
Whether the seekers show, show_seeker.
Definition gfxtunnel.h:1243
static void ScaleHudGemMeshes(const Vector3 *pScale, const char *pszKind)
Scale the meshes HUD <kind>_gem<n>.mesh of one kind of powerup gem.
TnlTrackRange & GetChangedRange()
Definition gfxtunnel.h:1790
static int sUseSlab
use_slab, which is never read.
Definition gfxtunnel.h:1299
GemEraseFX * GetGemErase() const
Definition gfxtunnel.h:1596
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.
const std::vector< std::unique_ptr< TnlFire > > & GetFires() const
Definition gfxtunnel.h:1566
TnlSlowdownFX * GetSlowdown() const
Definition gfxtunnel.h:1586
int GetTrackType(int nTrack)
Report the type of a track.
static float sPanelWidth
The width of a panel, which BuildPanels() measures.
Definition gfxtunnel.h:1425
void StartBossJourney()
Start the boss journey, which ends mBossDoneTicks after the song tick.
static int sCenterTunnel
Whether the tunnel entry has the center flag.
Definition gfxtunnel.h:1219
const Vector3 * GetHudOffset()
Report the offset of the head-up display from the camera.
static int sShowActivator
Whether the targets of the activators show, show_activator.
Definition gfxtunnel.h:1267
static int sInvertTunnel
Whether the tunnel entry has the invert flag.
Definition gfxtunnel.h:1202
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.
const std::vector< signed char > & GetInstrumentGemGroups() const
Definition gfxtunnel.h:1681
int GetTrackPlayersDirty() const
Definition gfxtunnel.h:1514
const std::vector< std::unique_ptr< TnlCripFX > > & GetCrippleFX() const
Definition gfxtunnel.h:1581
void SetShowDividers(int bShow)
Show or hide the boundaries between the sections of the song.
bool IsTrackCaptured(int nTrack) const
Report whether a track is captured, for a track given as an int.
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.
static LinearInterpolator sTrackLightFade
The brightness of tunnel track color.lit over the ticks of the song, rising over the 480 ticks before...
Definition gfxtunnel.h:1468
int GetBossJourneyDone() const
Definition gfxtunnel.h:1795
int GetPanelColorsDirty() const
Definition gfxtunnel.h:1528
static float sSlabAngle
slab_angle in radians, which BuildPanels() reads.
Definition gfxtunnel.h:1315
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 ...
static Vector2 sArenaZ
The depth range arena_z of the cameras of the tunnel.
Definition gfxtunnel.h:1446
~GfxTunnel()
Destroy the tunnel.
void SetPlayerFreestyle(int nPlayer, bool bVictory, bool bQuick)
Start the freestyle of a player and take the player off its track.
void SetZoom(float flZoom)
Set the pull back of the camera.
float GetBossDoneTicks() const
Definition gfxtunnel.h:1828
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.
static Color sSeekerColor
The colour of the seekers, seeker_color.
Definition gfxtunnel.h:1439
int GetPathBlending() const
Definition gfxtunnel.h:1862
void DrawForeground()
Draw the overlay camera, the arrows of the ships on each track, the fade of mFadeMesh,...
static float sGemHitFlashGrowth
The growth of the flash of a hit gem, the scroll speed of the tunnel divided by gem_hit_flash_time.
Definition gfxtunnel.h:1361
void BuildPanels(int bResetPanels, RndTransAnim *pCamPath)
Build the panels of the tracks from the cross section of the tunnel.
static Vector3 sBurstScale
The scale of the capture bursts, which BuildPanels() measures.
Definition gfxtunnel.h:1497
static int sShowPanels
Whether the panels of the tracks show, show_panels.
Definition gfxtunnel.h:1186
static Vector3 sGridQuarterScale
The scale of a quarter line of the grids, grid_quarter_scale.
Definition gfxtunnel.h:1504
int GetTrackInstrument(int nTrack)
Report the instrument of a track.
SpotLightFX * GetSpotLights() const
Definition gfxtunnel.h:1591
const std::vector< signed char > & GetTrackGemGroups() const
Definition gfxtunnel.h:1686
static int sOpaquePanels
opaque_panels, which is never read.
Definition gfxtunnel.h:1227
void SetTrackEnabled(int nTrack, bool bEnabled)
Start the effect that enables a track.
const std::vector< std::vector< RndView * > > & GetGemBurstViews() const
Definition gfxtunnel.h:1780
void ShowCripple(int nAttacker, int nVictim)
Start the first idle crippler, or the last crippler when every crippler is busy.
Particle * Flash(const Vector3 *pPos, float flSize, float flGrowth)
Start a flash at a position with the first free flash effect.
static Vector2 sTnlzZ
The depth range tnlz_z of the cameras of the tunnel.
Definition gfxtunnel.h:1460
int GetTrackColorPlayer() const
Definition gfxtunnel.h:1651
void ClearLanes()
Reset the activator of each player and put every player at its track at once.
static Vector3 sGridEighthScale
The scale of an eighth line of the grids, grid_eighth_scale.
Definition gfxtunnel.h:1511
PlayerCamFX * GetCamFX() const
Definition gfxtunnel.h:1852
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...
RndMat * GetCheckpointFinishMat() const
Definition gfxtunnel.h:1755
static float BurstSpinPeriod()
Report the time a capture burst takes to advance eight quarter turns.
const std::vector< std::unique_ptr< TnlTrackFX > > & GetTrackFX() const
Definition gfxtunnel.h:1571
bool IsTrackCaptured(char nTrack) const
Report whether a track is captured.
static void OnArenaDoneIn(DataArray *pCommand, void *pUserData)
Run the script command arena_done_in.
void DrawCameras()
Draw the overlays of the tracks and the freestyle of each player.
void ClearCheckpoints()
Remove every boundary between the sections of the song.
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.
RndMesh * GetFadeMesh() const
Definition gfxtunnel.h:1656
static int sTunnelBars
tunnel_bars, which BuildPanels() reads.
Definition gfxtunnel.h:1283
void AddCheckpoint(const char *pszLabel, float flTick, float flTextScale)
Add a boundary between the sections of the song.
GemBurst
The kinds of the capture bursts of mGemBurstViews, in order.
Definition gfxtunnel.h:69
@ kGemBurstMult
Definition gfxtunnel.h:72
@ kGemBurstGem
Definition gfxtunnel.h:70
@ kGemBurstAuto
Definition gfxtunnel.h:71
@ kGemBurstFree
Definition gfxtunnel.h:74
@ kNumGemBursts
Definition gfxtunnel.h:77
@ kGemBurstSlow
Definition gfxtunnel.h:73
@ kGemBurstCrip
Definition gfxtunnel.h:76
@ kGemBurstBump
Definition gfxtunnel.h:75
const std::vector< Color > & GetTrackColors() const
Definition gfxtunnel.h:1745
void SetTrackPlayers(int nTrack, int nPlayers, const int *pPlayers)
Record the players on a track, in order of place, for the next poll.
bool HasActiveBar(int nTrack, float flTick)
Report whether the bar of a track at a tick maps to the song and has no owner.
const std::vector< std::unique_ptr< TnlGemCapFX > > & GetGemCaps() const
Definition gfxtunnel.h:1611
void SetCatcherShown(int nPlayer, bool bShown)
Show or hide the catcher of a player.
TnlPlayer * GetPlayer(int nPlayer)
Report the graphics of a player.
void UpdateTrackGemGroups()
Give each track the sprite gem group of its instrument.
void PrintBars(int nPlayer)
Report the bars of the track of a player through the debug output.
GfxArena * GetArena() const
Definition gfxtunnel.h:1641
void DrawBackground()
Draw the fires, the boundaries between the sections, and the panels of the tracks.
bool IsActivatorIdle(int nPlayer)
Report whether the activator of a player is at rest.
void DimBar(int nTrack, float flTick)
Darken the panel of one bar of a track by sDuelFailDarkening.
int BuildOuterCams()
Find the outer cameras, one for each player, and fit them to the screen.
static float sLetterboxFov
The field of view of the outer cameras with the letterbox closed, camera_letterbox_fov in radians.
Definition gfxtunnel.h:1335
int GetNumTracks() const
Definition gfxtunnel.h:1735
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 firs...
static std::vector< Segment > sSegments
The cross section BuildPanels() fits to the tracks, a copy of sShape.
Definition gfxtunnel.h:1482
static int sTunnelLowResBars
tunnel_low_res_bars, which BuildPanels() reads.
Definition gfxtunnel.h:1291
BarFlag
The bits of BarData::mFlags.
Definition gfxtunnel.h:61
@ kBarFlagBeforeSong
Definition gfxtunnel.h:65
@ kBarFlagFinish
Definition gfxtunnel.h:64
@ kBarFlagCheckpoint
Definition gfxtunnel.h:63
@ kBarFlagNoReveal
Definition gfxtunnel.h:62
static GfxTunnel * sCurrent
The tunnel of the song, or null.
Definition gfxtunnel.h:1170
ATanInterpolator & GetPathBlendCurve()
Definition gfxtunnel.h:1857
RndMat * GetCheckpointMat() const
Definition gfxtunnel.h:1750
float GetUnlockDoneTicks() const
Definition gfxtunnel.h:1814
const std::vector< TrackData > & GetTracks() const
Definition gfxtunnel.h:1716
LinearInterpolator & GetFadeCurve()
Definition gfxtunnel.h:1661
static float sGemRotatePeriod
The milliseconds of one turn of a gem, gem_rotate_period.
Definition gfxtunnel.h:1343
float GetFreestyleConstraint()
Report how far the arena constrains the freestyles at the frame of its camera.
const std::vector< std::vector< RndView * > > & GetPlayerBurstViews() const
Definition gfxtunnel.h:1775
RndView * GetTransparentView() const
Definition gfxtunnel.h:1631
TnlGeom * GetGeom() const
Definition gfxtunnel.h:1626
static float sPreviewCamChangeTime
preview_cam_change_time, the milliseconds BlendToArenaPath() blends the path over.
Definition gfxtunnel.h:1401
void Poll(float fTicks, float fTime)
Advance the tunnel and every effect it draws.
void ReportParticles()
Report the use of the particles of the particle arms through the debug output.
static int sFlipTunnel
Whether the tunnel entry has the flip flag, or the second shape of the circular cheat is selected.
Definition gfxtunnel.h:1211
static float sDuelFailDarkening
duel_fail_darkening.
Definition gfxtunnel.h:1409
float GetLetterbox() const
Definition gfxtunnel.h:1770
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.
static float sWinSequenceDuration
win_sequence_duration.
Definition gfxtunnel.h:1385
bool IsTrackOpen(int nTrack) const
Report whether a track is open, its effect not in the state that closes it.
float GetResultDoneTick() const
Definition gfxtunnel.h:1842
TnlWinShell * GetWinShell() const
Definition gfxtunnel.h:1601
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.
const Color & GetSavedClearColor() const
Definition gfxtunnel.h:1671
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.
static int sShowDisabledPanels
show_disabled_panels, which is never read.
Definition gfxtunnel.h:1235
const Vector3 & GetCenter() const
Definition gfxtunnel.h:1867
int GetPlayerTrack(int nPlayer)
Report the track a player is on.
void HitGem(int nPlayer, int nTrack, int nSlot, float flTick)
Flash the cell of a gem with the flash of a pitched gem.
void ShowBump(int nAttacker, int nVictim, int nTrack)
Tell the activators of two players of a bump, skipping a player with no graphics.
void SetCatchMeter(int nPlayer, float flLevel)
Set the energy of the cursor of a player.
signed char GetCrippledTracks() const
Definition gfxtunnel.h:1721
static float sGemHitFlashSize
The size of the flash of a hit gem, gem_hit_flash_size times the scroll speed of the tunnel.
Definition gfxtunnel.h:1352
void ClearAll()
Clear every effect of the tunnel.
const std::vector< Color > & GetInstrumentColors() const
Definition gfxtunnel.h:1740
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 tic...
void SetShowActivator(int bShow)
Show or hide the targets of the activators, target <n>_<c>.mesh for each colour.
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 multi...
void SetTrackPlayersDirty(int nValue)
Set whether SetTrackPlayers() changed the players of a track.
Definition gfxtunnel.h:1523
void SetEnergy(float flEnergy, int nZone)
Show the energy as the frame of boundary_condition.view, a thousand times the energy.
const std::vector< std::unique_ptr< TnlStreakGemFX > > & GetStreakGems() const
Definition gfxtunnel.h:1616
signed char GetDefaultFocusTrack() const
Definition gfxtunnel.h:1542
void HideNextPhrase(bool bNow)
Hide the arrow of each track.
PowerupGem
The powerup gems of mPowerupGemGroups, in order.
Definition gfxtunnel.h:81
@ kPowerupGemSlow
Definition gfxtunnel.h:84
@ kPowerupGemAuto
Definition gfxtunnel.h:82
@ kPowerupGemFree
Definition gfxtunnel.h:85
@ kNumPowerupGems
Definition gfxtunnel.h:88
@ kPowerupGemCrip
Definition gfxtunnel.h:87
@ kPowerupGemMult
Definition gfxtunnel.h:83
@ kPowerupGemBump
Definition gfxtunnel.h:86
static void ScaleLights(RndEnviron *pEnviron)
Divide the colour of each light of an environment by the scroll speed of the tunnel.
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 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 s...
void BlendToArenaPath(bool bArena)
Blend the camera towards the arena path or back over one second from the current blend.
static int sSplitScreen
Whether each pad gets its own cameras, splitscreen.
Definition gfxtunnel.h:1178
void OnGemRemoved(const TnlGem *pGem)
Tell the spotlight and the cursors of the players that a gem leaves the tunnel.
TnlBlurs * GetBlurs() const
Definition gfxtunnel.h:1606
void SetMultiplierEndTick(int nPlayer, float flTick)
Start the multiplier on the cursor of a player, unless the player has no graphics.
RndLight * GetTrackColorLight() const
Definition gfxtunnel.h:1646
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.
void LoadTrackColors()
Load the colour of each instrument from its panel material and colour each track.
signed char GetGemGroup() const
Definition gfxtunnel.h:1711
const std::vector< std::unique_ptr< TnlPlayer > > & GetPlayers() const
Definition gfxtunnel.h:1666
static float sSlabDepth
slab_depth times the scroll speed of the tunnel, which BuildPanels() reads.
Definition gfxtunnel.h:1307
static int sShowDividers
Whether the boundaries between the sections show, show_dividers.
Definition gfxtunnel.h:1194
static float sGemPitchFlashGrowth
The scroll speed of the tunnel divided by gem_pitch_flash_time.
Definition gfxtunnel.h:1377
static std::vector< Segment > sShape
The cross section of the tunnel, tunnel.
Definition gfxtunnel.h:1475
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 ShowResult(bool bWon, int nPlayer, bool bCampaignWin, bool bUnlocked)
Show the result of the song.
float PanelWidth() const
Report the width of a panel of the tunnel.
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 fro...
static float sGemPitchFlashSize
gem_pitch_flash_size times the scroll speed of the tunnel.
Definition gfxtunnel.h:1369
static int sSeekerEndcapsAlways
seeker_endcaps_always, which is never read.
Definition gfxtunnel.h:1251
void SetBossDoneTicks(float fValue)
Set the ticks the boss journey lasts.
Definition gfxtunnel.h:1837
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 SetLetterbox(float fLetterbox)
Set how far the letterbox is closed, and move the field of view of the outer cameras from sCameraFov ...
const std::vector< RndCam * > & GetOuterCams() const
Definition gfxtunnel.h:1765
static float sMeshGemScale
mesh_gem_scale, which BuildPanels() reads.
Definition gfxtunnel.h:1417
static std::vector< Vector2 > sTrackPoints
The unit normal of each track in the cross section, which BuildPanels() measures from sSegments.
Definition gfxtunnel.h:1490
void SetShowPanels(int bShow)
Show or hide the panels of the tracks.
const std::vector< signed char > & GetPlayerGemGroups() const
Definition gfxtunnel.h:1691
static void LayoutDividers(const std::vector< Segment > *pSegments, float flScale)
Fit the boundaries between the sections to the bounds of a cross section.
void SetTrackInstrument(int nTrack, int nInstrument)
Give a track another instrument.
void SetDefaultFocusTrack(signed char nValue)
Set the track the gems focus on.
Definition gfxtunnel.h:1551
void StartFade(bool bToBlack)
Start the fade of mFadeMesh from its current opacity over sFadeToBlackDuration.
Straight-line interpolator.
Definition interpolator.h:99
The particle arms of the tunnel, and the move_particle_arms script command that moves them.
Definition particlearms.h:15
The camera of the tunnel.
Definition playercamfx.h:25
Camera.
Definition rndcam.h:23
Lighting and fog environment, made current for the drawables after it when it is drawn.
Definition rndenviron.h:18
Light, placed by its transform.
Definition rndlight.h:16
Surface description: blending, lighting colours, culling, and a list of texture stages.
Definition rndmat.h:20
Triangle mesh with a material.
Definition rndmesh.h:31
Animation of a transformable's local transform by rotation, translation, and scale keys.
Definition rndtransanim.h:20
View that shows the children of another view, its children owner, under its own transform and frame.
Definition rndview.h:27
The spotlights over the gems ahead of the song, with a glow at the base of each.
Definition spotlightfx.h:22
The full-screen blurs of the tunnel, each a span of ticks with an opacity and an enlargement.
Definition tnlblurs.h:16
The crippler one player sends at another, which flies down the track of the victim and then sends a w...
Definition tnlcripfx.h:16
The boundary across the tunnel at the start of each section of a song, with the name of the section a...
Definition tnldivider.h:25
The fire of a captured track, flames that burn along the track and chunks of its panels that fly off.
Definition tnlfire.h:28
A flash at a gem, one particle that shrinks away.
Definition tnlflashfx.h:12
A burst of a captured or erased gem, an animated view that spins along its track.
Definition tnlgemcapfx.h:16
One gem on a track of the tunnel, 0x24 bytes.
Definition tnlgem.h:22
The gems of the tunnel, with the groups that draw them.
Definition tnlgems.h:25
The geometry of the tracks of the tunnel, which places a cell of a track in the world.
Definition tnlgeom.h:32
The tunnel graphics of one player: the camera, the activator, the grid, the cursor,...
Definition tnlplayer.h:22
The overlay of a slowdown, a mesh over the screen whose animations run from the deployment of the slo...
Definition tnlslowdownfx.h:18
The arrow that marks the next gem of a streak on a track, with a text, which blinks out of its old pl...
Definition tnlstreakgemfx.h:17
The effects of one track as it is enabled or captured, which lift the track and light it with a mater...
Definition tnltrackfx.h:23
A run of tracks over a span of ticks, which the tunnel reports when the region changes.
Definition tnltrackrange.h:8
The shell of a won song, a view that plays once at the result and then unlocks the path the win earne...
Definition tnlwinshell.h:14
Definition gfxtunnel.h:41
Linear colour with four float components.
Definition color.h:12
The look of one bar of a track, 0x14 bytes.
Definition gfxtunnel.h:92
int mOwner
Definition gfxtunnel.h:96
int mFlags
Definition gfxtunnel.h:97
int mInSong
Definition gfxtunnel.h:95
float mTicks
Definition gfxtunnel.h:94
float mTick
Definition gfxtunnel.h:93
One particle of a RndParticleSys pool.
Definition rndparticlesys.h:27
Two-component vector, used for texture coordinates.
Definition vector2.h:12
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:14