wavelength 1.0.0
Loading...
Searching...
No Matches
gemerasefx.h
Go to the documentation of this file.
1#pragma once
2
3#include <list>
4
5#include "gfx/gfxtunnel.h"
6
14public:
16 class Gem {
17 public:
30 Gem(float flTime, char nTrack, char nPlayer, float flTick, float flLateral);
31
41 static bool Before(const Gem &gem, float flTime) {
42 return gem.mTime < flTime;
43 }
44
45 float mTime;
46 char mTrack;
47 char mPlayer;
48 float mTick;
49 float mLateral;
50 };
51
59 explicit GemEraseFX(GfxTunnel *pTunnel);
60
68
80 void Add(char nTrack, char nPlayer, float flTime, float flTick, float flLateral);
81
88 void Clear();
89
96 void Poll();
97
98private:
99 std::list<Gem> mGems;
100 GfxTunnel *mTunnel;
101};
float mTick
Definition gemerasefx.h:48
char mTrack
Definition gemerasefx.h:46
float mLateral
Definition gemerasefx.h:49
static bool Before(const Gem &gem, float flTime)
Report whether a burst comes before a time, the order of the list.
Definition gemerasefx.h:41
Gem(float flTime, char nTrack, char nPlayer, float flTick, float flLateral)
Construct a burst.
char mPlayer
Definition gemerasefx.h:47
float mTime
Definition gemerasefx.h:45
~GemEraseFX()
Release the list.
void Clear()
Cancel every burst.
GemEraseFX(GfxTunnel *pTunnel)
Construct an empty list.
void Poll()
Start the bursts whose time has come.
void Add(char nTrack, char nPlayer, float flTime, float flTick, float flLateral)
Schedule a burst.
Tunnel of tracks the players fly down, with the gems, the cameras of the players, and the effects dra...
Definition gfxtunnel.h:58