resonance 1.0.1
Loading...
Searching...
No Matches
tnlactivator.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/linearanim.h"
4#include "app/tnlcatcher.h"
5#include "app/tnlpointer.h"
6#include "os/hxstr.h"
7
8class TnlPlayer;
9namespace Rnd {
10class Mesh;
11class ParticleSys;
12class View;
13} // namespace Rnd
14
32public:
45 TnlActivator(int nIndex, HxStr colorName, TnlPlayer *pOwner);
46
56 void Update(float flFrame, float flScaledFrame);
57
65 void SetRotShowing(int nShowing);
66
74 void SetLeader(int nLeader);
75
85 void SetGhost(int nGhost);
86
96 void SetSuppressed(int nSuppressed);
97
111 void MoveToTrack(int nLevel, int nKind, float flTrack);
112
113private:
114 // AppTunnel's message handlers reach the pointer, the catcher, mRotView, and mBlink.
115 friend class AppTunnel;
116
117 int mIndex;
118 Rnd::View *mRotView; // "activator rot%d".
119 Rnd::Mesh *mMesh; // "activator%d", the seeker mesh.
120 Rnd::View *mIntroView; // "act_<c> intro.view".
121 Rnd::View *mFxView; // "activator fx%d".
122 TnlPlayer *mOwner;
123 TnlPointer mPointer;
124 TnlCatcher mCatcher;
125 int mIntroState;
126 int mTurning;
127 float mTargetAngle;
128 float mAngle;
129 int mTrack;
130 int mLevel;
131 LinearAnim mOffsetRamp; // Seeker offsets, 0 through -225 over 480.
132 int mBlink; // Non-zero dims the materials for frames 121 through 239 of every 240.
133 float mTransOffset;
134 int mGhost;
135 int mSuppressed;
136 Rnd::View *mGhostView; // "ghost<n>.view".
137 Rnd::ParticleSys *mLeader;
138};
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Value that moves toward a target at a fixed rate, read through a linear mapping.
Definition linearanim.h:12
Indexed triangle mesh with one material.
Definition mesh.h:46
Emitter that spawns, integrates, and draws a population of particles.
Definition particlesys.h:60
Root of a loadable scene.
Definition view.h:47
void SetLeader(int nLeader)
Attach "leader.ps" to the effect view and show it, or detach and hide it.
TnlActivator(int nIndex, HxStr colorName, TnlPlayer *pOwner)
Resolve every object, attach the pointer and the catcher, and hide the mesh.
void SetSuppressed(int nSuppressed)
Hide or restore the rotation view and the ghost together.
void SetGhost(int nGhost)
Record whether the ghost is wanted, and show or hide it unless mLevel is set.
void MoveToTrack(int nLevel, int nKind, float flTrack)
Start a turn toward a track and set the level and the instrument kind.
void Update(float flFrame, float flScaledFrame)
Advance the turn, the seeker offsets, the blink, the intro, the catcher, and the pointer.
friend class AppTunnel
Definition tnlactivator.h:115
void SetRotShowing(int nShowing)
Show or hide the rotation view.
Three-target catcher of one player's activator, with its multiplier texture and movie.
Definition tnlcatcher.h:26
Everything AppTunnel drives in the tunnel for one player.
Definition tnlplayer.h:31
Instrument pointer of one player's activator, with its dip and spin.
Definition tnlpointer.h:26
The rendering engine.
Definition animhelper.h:3