resonance 1.0.1
Loading...
Searching...
No Matches
tnlcripplefx.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5class TnlPlayer;
6namespace Rnd {
7class ParticleSys;
8class TransAnim;
9class View;
10} // namespace Rnd
11
23public:
32 TnlCrippleFX(int nIndex, float flRate);
33
46 void Start(const std::vector<TnlPlayer *> &targets, float flFrame);
47
62 void SetFrame(float flFrame);
63
64private:
65 // AppTunnel::StartCrippleFX() reads mState to find an idle crippler.
66 friend class AppTunnel;
67
68 // Phase of the frame routine. Running follows Start(), returning follows the path reversal,
69 // hit follows the path falling behind the song, and the frame after the hit returns to idle.
70 enum State { kStateIdle = 0, kStateRunning = 1, kStateReturning = 2, kStateHit = 3 };
71
72 Rnd::View *mView; // "cripfx<n>.view".
73 Rnd::TransAnim *mPath; // "cripfx<n>.path".
74 int mReserved08; // +0x08, never written or read by the recovered routines.
75 Rnd::ParticleSys *mParticleSys; // "cripfx<n>.ps".
76 std::vector<TnlPlayer *> mTargets;
77 State mState;
78 float mHitFrame;
79 float mRate;
80};
Emitter that spawns, integrates, and draws a population of particles.
Definition particlesys.h:60
Animation that drives one transformable from three keyframe channels.
Definition transanim.h:49
Root of a loadable scene.
Definition view.h:47
TnlCrippleFX(int nIndex, float flRate)
Resolve the view, path, and system of one crippler and hide the view.
void SetFrame(float flFrame)
Advance the crippler through its launch, return, and hit phases.
void Start(const std::vector< TnlPlayer * > &targets, float flFrame)
Launch the crippler at a set of players.
friend class AppTunnel
Definition tnlcripplefx.h:66
Everything AppTunnel drives in the tunnel for one player.
Definition tnlplayer.h:31
The rendering engine.
Definition animhelper.h:3