|
wavelength 1.0.0
|
The crippler one player sends at another, which flies down the track of the victim and then sends a wave along it that bends and twists the panels. More...
#include <tnlcripfx.h>

Public Types | |
| enum | State { kStateIdle = 0 , kStateFly = 1 , kStateWave = 2 } |
| The values of mState. More... | |
Public Member Functions | |
| TnlCripFX (int nIndex) | |
| Construct an idle crippler, and for the first one the shared particles. | |
| ~TnlCripFX () | |
| Release the shared particles. | |
| bool | Poll (float flDelta, GfxTunnel *pTunnel) |
| Advance the flight or the wave. | |
| void | Draw (GfxTunnel *pTunnel) |
| Draw the crippler, and land it once its flight ends. | |
| void | Start (GfxTunnel *pTunnel, char nAttacker, char nVictim) |
| Send the crippler at a player. | |
| void | Stop (GfxTunnel *pTunnel, bool bRestore) |
| Stop the crippler. | |
| char | ArrivedWaveTrack () const |
| Report the track of a wave that has reached the victim. | |
| void | GetWaveTracks (char *pnTrack, char *pnPrevTrack) const |
| Report the track of a running wave and the track it bent before. | |
| char | GetState () const |
Static Public Member Functions | |
| static void | DrawParticles () |
| Draw the shared particles at the time of the song. | |
Static Public Attributes | |
| static float | sFlyTime |
| The milliseconds of the flight, crippler_fly_time. | |
| static float | sFadeTime |
| The milliseconds the view shows after landing. | |
| static float | sWaveTime |
| The milliseconds of the wave, crippler_wave_time. | |
| static float | sSpatialFreqs [2] |
| The radians per tick of the two waves. | |
| static float | sTimeFreqs [2] |
| The radians per millisecond of the two waves. | |
| static float | sWaveDeathLength |
| crippler_wave_death_length. | |
| static float | sWaveMagnitudes [2] |
| The heights of the two waves. | |
| static float | sTickVelocity |
| The ticks per millisecond of the flight. | |
| static float | sStartHeight |
| The height the flight starts at. | |
| static float | sStartHeightVelocity |
| The rise per millisecond the flight starts with. | |
| static float | sHeightAcceleration |
| The change of the rise per millisecond. | |
| static float | sImpactCamJiggle |
| The kick a landing gives the camera. | |
| static float | sMaxTwist |
| The largest twist of the wave in radians. | |
| static float | sTwistFreq |
| The radians per tick of the twist. | |
| static RndParticleSys * | sParticles |
| The particles of the cripplers, crippler.part. | |
| static float | sParticleFrame |
| The frame of sParticles. | |
The crippler one player sends at another, which flies down the track of the victim and then sends a wave along it that bends and twists the panels.
The RTTI identifies the class, which is not polymorphic. The object is 0x80 bytes. Some members hold one value while the crippler flies and another once the wave runs.
| enum TnlCripFX::State |
|
explicit |
Construct an idle crippler, and for the first one the shared particles.
| nIndex | The index of the crippler. |
| TnlCripFX::~TnlCripFX | ( | ) |
Release the shared particles.
| bool TnlCripFX::Poll | ( | float | flDelta, |
| GfxTunnel * | pTunnel ) |
Advance the flight or the wave.
| flDelta | The time since the last update. |
| pTunnel | The tunnel. |
| void TnlCripFX::Draw | ( | GfxTunnel * | pTunnel | ) |
Draw the crippler, and land it once its flight ends.
| pTunnel | The tunnel. |
|
static |
Draw the shared particles at the time of the song.
| void TnlCripFX::Start | ( | GfxTunnel * | pTunnel, |
| char | nAttacker, | ||
| char | nVictim ) |
Send the crippler at a player.
| pTunnel | The tunnel. |
| nAttacker | The attacking player. The routine does not read it. |
| nVictim | The crippled player. |
| void TnlCripFX::Stop | ( | GfxTunnel * | pTunnel, |
| bool | bRestore ) |
Stop the crippler.
| pTunnel | The tunnel, or null. |
| bRestore | Whether a running wave puts the panels it bent back. |
| char TnlCripFX::ArrivedWaveTrack | ( | ) | const |
Report the track of a wave that has reached the victim.
| void TnlCripFX::GetWaveTracks | ( | char * | pnTrack, |
| char * | pnPrevTrack ) const |
Report the track of a running wave and the track it bent before.
| pnTrack | Receives the track, or -1. |
| pnPrevTrack | Receives the track before, or -1. |
|
inline |
|
static |
The milliseconds of the flight, crippler_fly_time.
|
static |
The milliseconds the view shows after landing.
|
static |
The milliseconds of the wave, crippler_wave_time.
|
static |
The radians per tick of the two waves.
|
static |
The radians per millisecond of the two waves.
|
static |
crippler_wave_death_length.
The image never reads it.
|
static |
The heights of the two waves.
|
static |
The ticks per millisecond of the flight.
|
static |
The height the flight starts at.
|
static |
The rise per millisecond the flight starts with.
|
static |
The change of the rise per millisecond.
|
static |
The kick a landing gives the camera.
|
static |
The largest twist of the wave in radians.
|
static |
The radians per tick of the twist.
|
static |
The particles of the cripplers, crippler.part.
|
static |
The frame of sParticles.
| float TnlCripFX::mFlyTick |
While flying, the tick of the crippler.
| char TnlCripFX::mWaveTrack |
While the wave runs, the track it bends.
| char TnlCripFX::mPrevWaveTrack |
While the wave runs, the track it bent before, or -1.
| float TnlCripFX::mHeight |
While flying, the height of the crippler.
| int TnlCripFX::mArrived |
While the wave runs, whether its front has reached the victim.
| float TnlCripFX::mHeightVelocity |
While flying, the rise per millisecond.
| float TnlCripFX::mWaveTick |
While the wave runs, the tick it started from.