83 void SetActive(
bool bActive,
int bVictory,
bool bQuick);
130 void Poll(
float flTicks,
float flTime);
379 std::unique_ptr<TnlSabreTrail> mTrail;
390 std::unique_ptr<LinearInterpolator> mAssembly;
391 std::unique_ptr<LinearInterpolator> mCamBlend;
393 unsigned char mReserved34[0xc];
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
Value that moves toward a target at a speed quadratic in the distance left.
Definition quadraticapproach.h:10
Animation of a transformable's local transform by rotation, translation, and scale keys.
Definition rndtransanim.h:20
Ship of one player, which rides the tracks of the tunnel and fires beams at the gems.
Definition ship.h:41
The activator of a player, the frame at the bottom of the track that carries the catcher.
Definition tnlactivator.h:16
void Draw()
Draw the freestylus, and the trail of a scratch freestyle.
void UpdateTrail()
Draw the needle of a scratch freestyle at the ship.
void Poll(float flTicks, float flTime)
Advance the assembly, the curves, and the freestylus, and place the ship and the camera.
static Vector2 sInvRange
The reciprocals of sRange.
Definition tnlfreestyle.h:292
void SetActive(bool bActive, int bVictory, bool bQuick)
Assemble the freestylus, or take it apart.
static Vector3 sConstraintChangeFunc
The curve of the constraint, constraint_change_func.
Definition tnlfreestyle.h:376
static float sMaxChangePerMs
The greatest speed of the position, max_change_per_ms.
Definition tnlfreestyle.h:245
static Vector2 sCamRange
The reach of the camera, cam_range.
Definition tnlfreestyle.h:341
void BeginPass()
Hand the ship and the camera to the freestyle.
void ComputeXfms(bool bCam, RndTransAnim *pAnim, const Vector3 *pStick, float(*pShipXfm)[kTransformRowFloatCount], Transform *pCamXfm, float flTime, float flTicks, float flElapsed)
Work out the transforms of the ship and of the camera from the stick.
static Vector3 sChangeFunc
The curve of the position, change_func.
Definition tnlfreestyle.h:355
void Scratch(float flTick, float flDuration)
Sweep the needle of a scratch freestyle for a note.
void OnAssembled()
Handle the end of the assembly.
static Vector3 sCamWinOffset
The offset of the camera of a victory, cam_win_offset.
Definition tnlfreestyle.h:327
static float sCamMaxChangePerMs
The greatest speed of the camera, cam_max_change_per_ms.
Definition tnlfreestyle.h:253
static Vector3 sCamWinLookOffset
The offset the camera of a victory looks at, cam_win_look_offset.
Definition tnlfreestyle.h:334
void LoadConfig(DataArray *pConfig, DataArray *pDefaults, GfxTunnel *pTunnel, int nOption, int bFreestyle)
Load the settings of the trail, of the freestyle of the kind, and of the lanes.
void Sample()
Start a sample on the freestylus and on the trail.
static Vector3 sCamChangeFunc
The curve of the camera, cam_change_func.
Definition tnlfreestyle.h:369
int GetTrack()
Report the track the ship of the freestyle is over.
void GetPassFlags(int *pbCam, int *pbShip, int *pbShowShip)
Report what the freestyle takes over.
static Vector3 sCamLookOffset
The offset the camera looks at, cam_look_offset.
Definition tnlfreestyle.h:320
static Vector3 sCamOffset
The offset of the camera, cam_offset.
Definition tnlfreestyle.h:313
static float sEnterDelay
The delay of the assembly in ticks, enter_delay.
Definition tnlfreestyle.h:229
~TnlFreestyle()
Delete the shared freestylus, the trail, and the curves.
static Vector2 sConstrainedCamRange
The reach of the camera of a constrained freestyle, constrained_cam_range.
Definition tnlfreestyle.h:348
static std::unique_ptr< Freestylus > sFreestylus
The freestylus the freestyles share, or null.
Definition tnlfreestyle.h:278
static float sExitDelay
The delay of the disassembly in ticks, exit_delay.
Definition tnlfreestyle.h:237
static Vector3 sTumbleChangeFunc
The curve of the tumble, tumble_change_func.
Definition tnlfreestyle.h:362
static float sLaneScale
The scale of a stick towards the lanes ahead, 1 for several players on this console and 2 otherwise.
Definition tnlfreestyle.h:262
static float sInvLaneScale
The reciprocal of sLaneScale.
Definition tnlfreestyle.h:270
void SetPlaying(bool bPlaying, int nColumn)
Record whether the player plays, which grows the beams and draws the trail.
void Reset()
End the freestyle at once, keeping an assembled freestylus.
TnlFreestyle(int nPlayer, int nType, Ship *pShip, TnlActivator *pActivator, GfxTunnel *pTunnel)
Create the trail, the curves, and the shared freestylus of the first freestyle.
void EndPass()
Give the ship and the camera back.
void OnDisassemble()
Handle the start of the disassembly.
void SetStick(const Vector3 &stick)
Set the position of the stick.
static Vector2 sRange
The reach of the stick across and along the track, range.
Definition tnlfreestyle.h:285
static Vector3 sConstrainedCenter
The place of a constrained freestyle, constrained_center.
Definition tnlfreestyle.h:306
static Vector3 sCenter
The place of the freestyle, center.
Definition tnlfreestyle.h:299
Two-component vector, used for texture coordinates.
Definition vector2.h:12
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:14