|
resonance 1.0.1
|
Everything AppTunnel drives in the tunnel for one player. More...
#include <tnlplayer.h>

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 |
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.
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.
| pPlayer | The player. |
| nIndex | The player's index in the world and its seeker index. |
| pTunnel | The tunnel that allocated this object. |
| 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.
| flFrame | The song position. |
| flScaledFrame | The song position scaled by the AppTunnel factor at +0x144. |
|
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.
| flFrame | The frame the paths start from. |
|
friend |
|
friend |
|
friend |
|
friend |
| TnlSabreTrail TnlPlayer::mSabreTrail |
| TnlSeekerFade TnlPlayer::mSeekerFade |