![]() |
DDraceNetwork Documentation
|
#include <effects.h>
Public Member Functions | |
| CEffects () | |
| int | Sizeof () const override |
| void | OnRender () override |
| void | BulletTrail (vec2 Pos, float Alpha, float TimePassed) |
| void | SmokeTrail (vec2 Pos, vec2 Vel, float Alpha, float TimePassed) |
| void | SkidTrail (vec2 Pos, vec2 Vel, int Direction, float Alpha, float Volume) |
| void | Explosion (vec2 Pos, float Alpha) |
| void | HammerHit (vec2 Pos, float Alpha, float Volume) |
| void | AirJump (vec2 Pos, float Alpha, float Volume) |
| void | DamageIndicator (vec2 Pos, vec2 Dir, float Alpha) |
| void | PlayerSpawn (vec2 Pos, float Alpha, float Volume) |
| void | PlayerDeath (vec2 Pos, int ClientId, float Alpha) |
| void | PowerupShine (vec2 Pos, vec2 Size, float Alpha) |
| void | FreezingFlakes (vec2 Pos, vec2 Size, float Alpha) |
| void | SparkleTrail (vec2 Pos, float Alpha) |
| void | Confetti (vec2 Pos, float Alpha) |
| void | Update () |
| Public Member Functions inherited from CComponent | |
| virtual void | OnStateChange (int NewState, int OldState) |
| virtual void | OnConsoleInit () |
| virtual void | OnInit () |
| virtual void | OnShutdown () |
| virtual void | OnReset () |
| virtual void | OnWindowResize () |
| virtual void | OnUpdate () |
| virtual void | OnNewSnapshot () |
| virtual void | OnRelease () |
| virtual void | OnMapLoad () |
| virtual void | OnMessage (int Msg, void *pRawMsg) |
| virtual bool | OnCursorMove (float x, float y, IInput::ECursorType CursorType) |
| virtual bool | OnInput (const IInput::CEvent &Event) |
| virtual bool | OnTouchState (const std::vector< IInput::CTouchFingerState > &vTouchFingerStates) |
| Public Member Functions inherited from CComponentInterfaces | |
| virtual void | OnInterfacesInit (CGameClient *pClient) |
| virtual | ~CComponentInterfaces ()=default |
Private Attributes | |
| bool | m_Add5hz |
| int64_t | m_LastUpdate5hz = 0 |
| bool | m_Add50hz |
| int64_t | m_LastUpdate50hz = 0 |
| bool | m_Add100hz |
| int64_t | m_LastUpdate100hz = 0 |
| int64_t | m_SkidSoundTimer = 0 |
Additional Inherited Members | |
| Protected Member Functions inherited from CComponentInterfaces | |
| class CGameClient * | GameClient () const |
| class IClient * | Client () const |
| class IKernel * | Kernel () const |
| class IEngine * | Engine () const |
| class IGraphics * | Graphics () const |
| class ITextRender * | TextRender () const |
| class IInput * | Input () const |
| class IStorage * | Storage () const |
| class CUi * | Ui () const |
| class ISound * | Sound () const |
| class CRenderTools * | RenderTools () const |
| class CRenderMap * | RenderMap () const |
| class IConfigManager * | ConfigManager () const |
| class CConfig * | Config () const |
| class IConsole * | Console () const |
| class IDemoPlayer * | DemoPlayer () const |
| class IDemoRecorder * | DemoRecorder (int Recorder) const |
| class IFavorites * | Favorites () const |
| class IServerBrowser * | ServerBrowser () const |
| class CLayers * | Layers () const |
| class CCollision * | Collision () const |
| int64_t | time () const |
| float | LocalTime () const |
| class IHttp * | Http () const |
| CEffects::CEffects | ( | ) |
| void CEffects::AirJump | ( | vec2 | Pos, |
| float | Alpha, | ||
| float | Volume ) |
| void CEffects::BulletTrail | ( | vec2 | Pos, |
| float | Alpha, | ||
| float | TimePassed ) |
| void CEffects::Confetti | ( | vec2 | Pos, |
| float | Alpha ) |
| void CEffects::Explosion | ( | vec2 | Pos, |
| float | Alpha ) |
| void CEffects::HammerHit | ( | vec2 | Pos, |
| float | Alpha, | ||
| float | Volume ) |
|
overridevirtual |
Called when the component should get rendered.
The render order depends on the component insertion order.
Reimplemented from CComponent.
| void CEffects::PlayerDeath | ( | vec2 | Pos, |
| int | ClientId, | ||
| float | Alpha ) |
| void CEffects::PlayerSpawn | ( | vec2 | Pos, |
| float | Alpha, | ||
| float | Volume ) |
|
inlineoverridevirtual |
Gets the size of the non-abstract component.
Implements CComponent.
| void CEffects::SparkleTrail | ( | vec2 | Pos, |
| float | Alpha ) |
| void CEffects::Update | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |