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

The path the tunnel follows through the world, a transform animation that blends into the next. More...

#include <tnlpath.h>

Classes

class  Segment
 One transform animation of the path, 0x18 bytes. More...

Public Member Functions

 TnlPath ()
 Construct a path with no animation.
void Set (RndTransAnim *pAnim, int bLoop, int bUseTime, float flStart, float flFrame, float flLoopStart, float flLoopEnd)
 Replace the animation at once.
void BlendTo (RndTransAnim *pAnim, int bLoop, int bUseTime, float flLength, float flStart, float flFrame, float flLoopStart, float flLoopEnd)
 Blend from the animation in use to a new one.
void Xfm (float flTick, float flTime, Transform *pXfm)
 Work out the transform of the path.
const Segment & GetSegment (int nSegment) const
 The segment that is blended out, then the segment in use.

Detailed Description

The path the tunnel follows through the world, a transform animation that blends into the next.

The class is not polymorphic, and the name is inferred. The object is 0x4c bytes. TnlGeom places every cross section of the tunnel along the path.

Constructor & Destructor Documentation

◆ TnlPath()

TnlPath::TnlPath ( )

Construct a path with no animation.

Ghidra address:
NTSC-U/C: 0x001cbee0
Ghidra address:
PAL: 0x001d4c80

Member Function Documentation

◆ Set()

void TnlPath::Set ( RndTransAnim * pAnim,
int bLoop,
int bUseTime,
float flStart,
float flFrame,
float flLoopStart,
float flLoopEnd )

Replace the animation at once.

Parameters
pAnimThe animation, or null for no path.
bLoopWhether the animation loops.
bUseTimeWhether the frame follows the time rather than the tick.
flStartThe tick or time the animation starts at.
flFrameThe frame of the animation at flStart.
flLoopStartThe first frame of the loop.
flLoopEndThe frame the loop wraps at.
Ghidra address:
NTSC-U/C: 0x001cbf60
Ghidra address:
PAL: 0x001d4d00

◆ BlendTo()

void TnlPath::BlendTo ( RndTransAnim * pAnim,
int bLoop,
int bUseTime,
float flLength,
float flStart,
float flFrame,
float flLoopStart,
float flLoopEnd )

Blend from the animation in use to a new one.

Parameters
pAnimThe new animation.
bLoopWhether the new animation loops.
bUseTimeWhether the frame of the new animation follows the time.
flLengthThe length of the blend in ticks.
flStartThe tick the blend starts at.
flFrameThe frame of the new animation at flStart.
flLoopStartThe first frame of the loop of the new animation.
flLoopEndThe frame the loop of the new animation wraps at.
Ghidra address:
NTSC-U/C: 0x001cc010
Ghidra address:
PAL: 0x001d4db0

◆ Xfm()

void TnlPath::Xfm ( float flTick,
float flTime,
Transform * pXfm )

Work out the transform of the path.

Parameters
flTickThe tick of the song.
flTimeThe time of the song in milliseconds.
pXfmReceives the transform.
Ghidra address:
NTSC-U/C: 0x001cc098
Ghidra address:
PAL: 0x001d4e38

◆ GetSegment()

const Segment & TnlPath::GetSegment ( int nSegment) const
inline

The segment that is blended out, then the segment in use.

Report one of the two segments.

Parameters
nSegmentThe segment, 0 or 1.
Returns
The segment.

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