resonance 1.0.1
Loading...
Searching...
No Matches
tnlplayer.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/tnlactivator.h"
5#include "app/tnlsabretrail.h"
6#include "app/tnlseekerfade.h"
7
8class AppTunnel;
9class Player;
10namespace Rnd {
11class Cam;
12class TransAnim;
13class Transformable;
14class View;
15} // namespace Rnd
16
31class TnlPlayer {
32public:
45 TnlPlayer(Player *pPlayer, int nIndex, AppTunnel *pTunnel);
46
58 void Update(float flFrame, float flScaledFrame);
59
70 void SetCrippleFrame(float flFrame) {
71 mCrippleFrame = flFrame;
72 }
73
74private:
75 friend class AppTunnel;
76 friend class TnlActivator;
77 friend class TnlArrow;
78 friend class TnlCrippleFX;
79
80 int mPlayerNum; // Player::GetInputSlot() plus 1.
81 float mCrippleFrame;
82 Rnd::TransAnim *mCrippleActPath; // "crip act path".
83 Rnd::Transformable *mActivatorFx; // "activator fx%d".
84 Rnd::TransAnim *mCrippleCamPath; // "crip cam path".
85 Rnd::Transformable *mCamFx; // "tnl cam fx%d".
86 Rnd::Cam *mCam; // "tnl cam%d".
87 Rnd::TransAnim *mCamIntro; // "tnl cam intro<local player count>.tnm".
88 Rnd::View *mLocalView; // "tnl local%d.view".
89 AppTunnel *mTunnel;
90 int mUnusedWord; // +0x28, zeroed and never read by the recovered routines.
91 int mIndex;
92 Player *mPlayer;
93 TnlActivator mActivator;
94 TnlGridMarkers mGridMarkers;
95
96public:
97 // Public because the seeker script command reaches the sabre string through them with no
98 // accessor in the image.
101
102private:
103 int mReserved198; // +0x198, never accessed by the recovered routines.
104 int mReserved19c; // +0x19c, never accessed by the recovered routines.
105};
Game-side driver of the tunnel the in-game renderer draws.
Definition apptunnel.h:88
One participant in a session, local or remote.
Definition player.h:39
Camera.
Definition cam.h:53
Animation that drives one transformable from three keyframe channels.
Definition transanim.h:49
Mix-in for an object with a local and a world transform.
Definition transformable.h:38
Root of a loadable scene.
Definition view.h:47
Sixteen copies of the grid meshes that march down one player's tunnel track.
Definition tnlgridmarkers.h:26
TnlSeekerFade mSeekerFade
Definition tnlplayer.h:100
void SetCrippleFrame(float flFrame)
Start the two crippler paths from a frame.
Definition tnlplayer.h:70
TnlSabreTrail mSabreTrail
Definition tnlplayer.h:99
TnlPlayer(Player *pPlayer, int nIndex, AppTunnel *pTunnel)
Resolve the player's paths, camera objects, and views, and build the embedded objects.
friend class TnlCrippleFX
Definition tnlplayer.h:78
friend class TnlArrow
Definition tnlplayer.h:77
void Update(float flFrame, float flScaledFrame)
Advance the embedded objects and the camera paths.
friend class AppTunnel
Definition tnlplayer.h:75
friend class TnlActivator
Definition tnlplayer.h:76
Line drawn through the gems of a run of bars on one tunnel track, with a glow at each gem.
Definition tnlsabretrail.h:26
Colour, material, and slice range of one player's tunnel seeker.
Definition tnlseekerfade.h:19
The rendering engine.
Definition animhelper.h:3