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
5
class
TnlPlayer
;
6
namespace
Rnd
{
7
class
ParticleSys
;
8
class
TransAnim
;
9
class
View
;
10
}
// namespace Rnd
11
22
class
TnlCrippleFX
{
23
public
:
32
TnlCrippleFX
(
int
nIndex,
float
flRate);
33
46
void
Start
(
const
std::vector<TnlPlayer *> &targets,
float
flFrame);
47
62
void
SetFrame
(
float
flFrame);
63
64
private
:
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
};
Rnd::ParticleSys
Emitter that spawns, integrates, and draws a population of particles.
Definition
particlesys.h:60
Rnd::TransAnim
Animation that drives one transformable from three keyframe channels.
Definition
transanim.h:49
Rnd::View
Root of a loadable scene.
Definition
view.h:47
TnlCrippleFX::TnlCrippleFX
TnlCrippleFX(int nIndex, float flRate)
Resolve the view, path, and system of one crippler and hide the view.
TnlCrippleFX::SetFrame
void SetFrame(float flFrame)
Advance the crippler through its launch, return, and hit phases.
TnlCrippleFX::Start
void Start(const std::vector< TnlPlayer * > &targets, float flFrame)
Launch the crippler at a set of players.
TnlCrippleFX::AppTunnel
friend class AppTunnel
Definition
tnlcripplefx.h:66
TnlPlayer
Everything AppTunnel drives in the tunnel for one player.
Definition
tnlplayer.h:31
Rnd
The rendering engine.
Definition
animhelper.h:3
src
app
tnlcripplefx.h
Generated by
1.15.0