|
resonance 1.0.1
|
Activator of one player, the object that rides the player's tunnel seeker from track to track. More...
#include <tnlactivator.h>
Public Member Functions | |
| TnlActivator (int nIndex, HxStr colorName, TnlPlayer *pOwner) | |
| Resolve every object, attach the pointer and the catcher, and hide the mesh. | |
| void | Update (float flFrame, float flScaledFrame) |
| Advance the turn, the seeker offsets, the blink, the intro, the catcher, and the pointer. | |
| void | SetRotShowing (int nShowing) |
| Show or hide the rotation view. | |
| void | SetLeader (int nLeader) |
| Attach "leader.ps" to the effect view and show it, or detach and hide it. | |
| void | SetGhost (int nGhost) |
| Record whether the ghost is wanted, and show or hide it unless mLevel is set. | |
| void | SetSuppressed (int nSuppressed) |
| Hide or restore the rotation view and the ghost together. | |
| void | MoveToTrack (int nLevel, int nKind, float flTrack) |
| Start a turn toward a track and set the level and the instrument kind. | |
Friends | |
| class | AppTunnel |
Activator of one player, the object that rides the player's tunnel seeker from track to track.
The class is not polymorphic and emits no RTTI, and no allocation tag or file path identifies it. The name is inferred from its objects, "activator%d", "activator rot%d", and "activator fx%d".
MoveToTrack() turns the rotation view toward the new track at 0.15 radians per update and hides the player's ghost on the old track. Once the turn and the seeker offset ramp have both settled, Update() shows the ghost on the new track. Before the song starts the "act_<c> intro.view" animation plays, and after frame -1920 the activator mesh appears and the rotation view is removed from the owner's local view.
TnlPlayer embeds one, 0xe0 bytes, at +0x34. The destructor at 0x00455970 is the implicit one, in its deleting form with no caller, and is not written.
Resolve every object, attach the pointer and the catcher, and hide the mesh.
The seeker transform offset is -500, or -550 with at least two local players. The rotation view joins the owner's local view when the owner has a camera.
| nIndex | The player index and the seeker index. |
| colorName | The player's colour name, taken by value. |
| pOwner | The player object that embeds this one. |
| void TnlActivator::Update | ( | float | flFrame, |
| float | flScaledFrame ) |
Advance the turn, the seeker offsets, the blink, the intro, the catcher, and the pointer.
| flFrame | The song position. |
| flScaledFrame | The song position scaled by the AppTunnel factor at +0x144. The catcher and the pointer run on it. |
| void TnlActivator::SetRotShowing | ( | int | nShowing | ) |
Show or hide the rotation view.
| nShowing | Non-zero to show. |
| void TnlActivator::SetLeader | ( | int | nLeader | ) |
Attach "leader.ps" to the effect view and show it, or detach and hide it.
| nLeader | Non-zero to attach and show. |
| void TnlActivator::SetGhost | ( | int | nGhost | ) |
Record whether the ghost is wanted, and show or hide it unless mLevel is set.
The ghost is mGhostView placed on track mTrack through AppTunnel.
| nGhost | Non-zero to show. |
| void TnlActivator::SetSuppressed | ( | int | nSuppressed | ) |
Hide or restore the rotation view and the ghost together.
mGhost is restored after the inner SetGhost() call. The image has no caller.
| nSuppressed | Non-zero to hide both. |
| void TnlActivator::MoveToTrack | ( | int | nLevel, |
| int | nKind, | ||
| float | flTrack ) |
Start a turn toward a track and set the level and the instrument kind.
Track n sits at (1 - n / 8) of a full turn. The seeker offset ramp moves toward a third of nLevel, the pointer shows the pair of nKind, and the catcher shows for kinds 2 and 5 only. The image has no caller.
| nLevel | The level. A non-zero level hides the ghost. |
| nKind | The instrument kind. |
| flTrack | The track. |
|
friend |