resonance 1.0.1
Loading...
Searching...
No Matches
TnlPlayer Class Reference

Everything AppTunnel drives in the tunnel for one player. More...

#include <tnlplayer.h>

Collaboration diagram for TnlPlayer:

Public Member Functions

 TnlPlayer (Player *pPlayer, int nIndex, AppTunnel *pTunnel)
 Resolve the player's paths, camera objects, and views, and build the embedded objects.
void Update (float flFrame, float flScaledFrame)
 Advance the embedded objects and the camera paths.
void SetCrippleFrame (float flFrame)
 Start the two crippler paths from a frame.

Public Attributes

TnlSabreTrail mSabreTrail
TnlSeekerFade mSeekerFade

Friends

class AppTunnel
class TnlActivator
class TnlArrow
class TnlCrippleFX

Detailed Description

Everything AppTunnel drives in the tunnel for one player.

The class is not polymorphic and emits no RTTI, and no allocation tag or file path identifies it. The name is inferred from the per-player objects it resolves, "tnl cam%d", "tnl cam fx%d", and "tnl local%d.view". AppTunnel's constructor allocates one per player.

The object is 0x1a0 bytes. It embeds the activator at +0x34, the grid markers at +0x114, the sabre trail at +0x128, and the seeker fade at +0x170. The destructor at 0x004409d8 is the implicit one and is not written.

A player without a local slot has no camera objects. In jukebox mode the camera intro path is dropped as well.

Constructor & Destructor Documentation

◆ TnlPlayer()

TnlPlayer::TnlPlayer ( Player * pPlayer,
int nIndex,
AppTunnel * pTunnel )

Resolve the player's paths, camera objects, and views, and build the embedded objects.

The effect transforms start at the identity. The seeker of nIndex follows "tnl cam slide<n>" for a player with a local slot and follows no transform otherwise.

Parameters
pPlayerThe player.
nIndexThe player's index in the world and its seeker index.
pTunnelThe tunnel that allocated this object.
Ghidra address:
NTSC-U/C: 0x00440020
Ghidra address:
PAL: 0x0047cb70

Member Function Documentation

◆ Update()

void TnlPlayer::Update ( float flFrame,
float flScaledFrame )

Advance the embedded objects and the camera paths.

The camera intro path drives mCam while flFrame is not positive. The two crippler paths run for 5000 frames from mCrippleFrame.

Parameters
flFrameThe song position.
flScaledFrameThe song position scaled by the AppTunnel factor at +0x144.
Ghidra address:
NTSC-U/C: 0x00440b48
Ghidra address:
PAL: 0x0047d7c0

◆ SetCrippleFrame()

void TnlPlayer::SetCrippleFrame ( float flFrame)
inline

Start the two crippler paths from a frame.

TnlCrippleFX::SetFrame() calls it for each player the crippler hits. The out-of-line copy is emitted in AppTunnel's translation unit.

Parameters
flFrameThe frame the paths start from.
Ghidra address:
NTSC-U/C: 0x00457008
Ghidra address:
PAL: 0x00494538

◆ AppTunnel

friend class AppTunnel
friend

◆ TnlActivator

friend class TnlActivator
friend

◆ TnlArrow

friend class TnlArrow
friend

◆ TnlCrippleFX

friend class TnlCrippleFX
friend

Member Data Documentation

◆ mSabreTrail

TnlSabreTrail TnlPlayer::mSabreTrail

◆ mSeekerFade

TnlSeekerFade TnlPlayer::mSeekerFade

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