44 char nOtherExcludedType);
178 void Poll(
bool bCaptured,
float flTime,
float flDelta);
187 return mSeeker.get();
197 return mTargetStartTick;
202 return mTargetEndTick;
220 float mTargetStartTick;
221 float mTargetEndTick;
223 std::unique_ptr<TnlConnectorBeam> mBeam;
224 std::unique_ptr<TnlSeeker> mSeeker;
Reference-counted array of script data nodes.
Definition dataarray.h:20
Tunnel of tracks the players fly down, with the gems, the cameras of the players, and the effects dra...
Definition gfxtunnel.h:58
The beam that links the gems ahead of a player's cursor on its track.
Definition tnlconnectorbeam.h:24
void Refresh(int nStyle)
Retarget the pending window with no gems and no length.
void SetEnergy(float flEnergy)
Set the energy of the beam.
char GetTargetTrack() const
Definition tnlcursor.h:206
TnlCursor(GfxTunnel *pTunnel, int nPlayer, const char *pszColor, char nExcludedType, char nOtherExcludedType)
Create the beam and the frame of a player.
void SetTarget(char nTrack, TnlGems *pGems, float flStartTick, float flEndTick)
Move the cursor to a window.
TnlSeeker * GetSeeker() const
Definition tnlcursor.h:186
void OnTicksChanged(char nTrack, TnlGems *pGems, float flStartTick, float flEndTick)
Pass a changed span of ticks to the beam.
void LoadConfig(DataArray *pConfig, DataArray *pDefaults, GfxTunnel *pTunnel, int nOption)
Load the settings of the beam, the frame, and the fade, and take the colour of the player.
TnlConnectorBeam * GetBeam() const
Definition tnlcursor.h:181
float GetTargetEndTick() const
Definition tnlcursor.h:201
void Pulse(float flTick)
Pulse the beam on a beat.
const Color & GetColor() const
Definition tnlcursor.h:191
void OnGemAdded(char nTrack, char nType, TnlGems *pGems, float flTick)
Pass a new gem to the beam.
State
Values of mState.
Definition tnlcursor.h:23
@ kStateFadingIn
Definition tnlcursor.h:25
@ kStateFadingOut
Definition tnlcursor.h:26
@ kStateIdle
Definition tnlcursor.h:24
float GetTargetStartTick() const
Definition tnlcursor.h:196
void OnRangeChanged(const TnlTrackRange *pRange)
Pass a changed range of the tunnel to the beam and the frame.
~TnlCursor()
Delete the frame and the beam.
void OnGemRemoved(const TnlGem *pGem)
Pass a removed gem to the beam.
void Poll(bool bCaptured, float flTime, float flDelta)
Advance the fade, the beam, and the frame.
void StartMultiplier(TnlGems *pGems, float flEndTick)
Start the multiplier colouring of the beam and the frame.
void Reset()
Reset the beam and the frame, and forget the last target.
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 frame that marks the gems ahead of a player's cursor on its track.
Definition tnlseeker.h:22
A run of tracks over a span of ticks, which the tunnel reports when the region changes.
Definition tnltrackrange.h:8
Linear colour with four float components.
Definition color.h:12