wavelength 1.0.0
Loading...
Searching...
No Matches
TnlGeom::Player Class Reference

The place of a player in the tunnel, 0x38 bytes. More...

#include <tnlgeom.h>

Public Member Functions

 Player ()
 Construct a player on track 0.
 Player (Player &&)=default
 Take over the curves of another player.
Player & operator= (Player &&)=default
 Take over the curves of another player.
 ~Player ()
 Delete the curves of the player.
void Init (TnlGeom *pGeom, char nIndex)
 Attach the player to the geometry.
void Reset ()
 Put the player at its track at once.
void Update (float flTick, float flDeltaTicks)
 Move the player along its curves.
void SetCamSlide (RndTransformable *pSlide)
 Set the transformable the camera of the player slides.
void SetTrack (char nTrack)
 Move the player to a track, along curves when the geometry animates moves.
void LeaveTrack ()
 Take the player off the record of the players of its track.
void SetActivator (RndView *pView)
 Set the view of the activator of the player.
void SetActivatorPosition (float flPosition)
 Set the position of the activator of the player.
void PlaceActivator (const Transform *pXfm)
 Place the view of the activator, if there is one.
RndTransformable * GetCamSlide () const
int GetHoldCam () const
void SetHoldCam (int bHold)
 Set whether the camera stops following the player.
char GetTrack () const
float GetActivatorPosition () const
float GetTrailTicks () const
RndView * GetActivator () const
float GetPosition () const
float GetVelocity () const
float GetMoveTime () const
void SetMoveTime (float flMoveTime)
 Set the multiple of the length of a move.
float GetCamPosition () const

Detailed Description

The place of a player in the tunnel, 0x38 bytes.

Constructor & Destructor Documentation

◆ Player() [1/2]

TnlGeom::Player::Player ( )

Construct a player on track 0.

Ghidra address:
NTSC-U/C: 0x001d2d68
Ghidra address:
PAL: 0x001dbb08

◆ Player() [2/2]

TnlGeom::Player::Player ( Player && )
default

Take over the curves of another player.

◆ ~Player()

TnlGeom::Player::~Player ( )

Delete the curves of the player.

Ghidra address:
NTSC-U/C: 0x001d2dd0
Ghidra address:
PAL: 0x001dbb70

Member Function Documentation

◆ operator=()

Player & TnlGeom::Player::operator= ( Player && )
default

Take over the curves of another player.

◆ Init()

void TnlGeom::Player::Init ( TnlGeom * pGeom,
char nIndex )

Attach the player to the geometry.

Parameters
pGeomThe geometry.
nIndexThe index of the player.
Ghidra address:
NTSC-U/C: 0x001d2e50
Ghidra address:
PAL: 0x001dbbf0

◆ Reset()

void TnlGeom::Player::Reset ( )

Put the player at its track at once.

Ghidra address:
NTSC-U/C: 0x001d2e60
Ghidra address:
PAL: 0x001dbc00

◆ Update()

void TnlGeom::Player::Update ( float flTick,
float flDeltaTicks )

Move the player along its curves.

Parameters
flTickThe tick of the song.
flDeltaTicksThe ticks since the last update. The velocity changes only when it is more than one tick.
Ghidra address:
NTSC-U/C: 0x001d2e90
Ghidra address:
PAL: 0x001dbc30

◆ SetCamSlide()

void TnlGeom::Player::SetCamSlide ( RndTransformable * pSlide)

Set the transformable the camera of the player slides.

Parameters
pSlideThe transformable.
Ghidra address:
NTSC-U/C: 0x001d3088
Ghidra address:
PAL: 0x001dbe28

◆ SetTrack()

void TnlGeom::Player::SetTrack ( char nTrack)

Move the player to a track, along curves when the geometry animates moves.

Parameters
nTrackThe track.
Ghidra address:
NTSC-U/C: 0x001d3090
Ghidra address:
PAL: 0x001dbe30

◆ LeaveTrack()

void TnlGeom::Player::LeaveTrack ( )

Take the player off the record of the players of its track.

Ghidra address:
NTSC-U/C: 0x001d33d8
Ghidra address:
PAL: 0x001dc178

◆ SetActivator()

void TnlGeom::Player::SetActivator ( RndView * pView)

Set the view of the activator of the player.

Parameters
pViewThe view.
Ghidra address:
NTSC-U/C: 0x001d3410
Ghidra address:
PAL: 0x001dc1b0

◆ SetActivatorPosition()

void TnlGeom::Player::SetActivatorPosition ( float flPosition)

Set the position of the activator of the player.

Parameters
flPositionThe position.
Ghidra address:
NTSC-U/C: 0x001d3418
Ghidra address:
PAL: 0x001dc1b8

◆ PlaceActivator()

void TnlGeom::Player::PlaceActivator ( const Transform * pXfm)

Place the view of the activator, if there is one.

Parameters
pXfmThe transform.
Ghidra address:
NTSC-U/C: 0x001d3420
Ghidra address:
PAL: 0x001dc1c0

◆ GetCamSlide()

RndTransformable * TnlGeom::Player::GetCamSlide ( ) const
inline
Returns
The transformable of the camera slide.

◆ GetHoldCam()

int TnlGeom::Player::GetHoldCam ( ) const
inline
Returns
Whether the camera stops following the player.

◆ SetHoldCam()

void TnlGeom::Player::SetHoldCam ( int bHold)
inline

Set whether the camera stops following the player.

Parameters
bHoldWhether it stops.

◆ GetTrack()

char TnlGeom::Player::GetTrack ( ) const
inline
Returns
The track the player is on.

◆ GetActivatorPosition()

float TnlGeom::Player::GetActivatorPosition ( ) const
inline
Returns
The position of the activator.

◆ GetTrailTicks()

float TnlGeom::Player::GetTrailTicks ( ) const
inline
Returns
The ticks from the current tick to the first tick Poll() retains bars from.

◆ GetActivator()

RndView * TnlGeom::Player::GetActivator ( ) const
inline
Returns
The view of the activator, or null.

◆ GetPosition()

float TnlGeom::Player::GetPosition ( ) const
inline
Returns
The track the player is on, fractional while moving.

◆ GetVelocity()

float TnlGeom::Player::GetVelocity ( ) const
inline
Returns
The tracks moved per tick at the last update.

◆ GetMoveTime()

float TnlGeom::Player::GetMoveTime ( ) const
inline
Returns
The multiple of the length of a move.

◆ SetMoveTime()

void TnlGeom::Player::SetMoveTime ( float flMoveTime)
inline

Set the multiple of the length of a move.

Parameters
flMoveTimeThe multiple.

◆ GetCamPosition()

float TnlGeom::Player::GetCamPosition ( ) const
inline
Returns
The track the camera of the player is on.

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