DDraceNetwork Documentation
Loading...
Searching...
No Matches
CEffects Class Reference

#include <effects.h>

Inheritance diagram for CEffects:
[legend]
Collaboration diagram for CEffects:
[legend]

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)
 
void Explosion (vec2 Pos, float Alpha)
 
void HammerHit (vec2 Pos, float Alpha)
 
void AirJump (vec2 Pos, float Alpha)
 
void DamageIndicator (vec2 Pos, vec2 Dir, float Alpha)
 
void PlayerSpawn (vec2 Pos, float Alpha)
 
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 ~CComponent ()=default
 
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 CGameClientGameClient () const
 
class IClientClient () const
 
class IKernelKernel () const
 
class IEngineEngine () const
 
class IGraphicsGraphics () const
 
class ITextRenderTextRender () const
 
class IInputInput () const
 
class IStorageStorage () const
 
class CUiUi () const
 
class ISoundSound () const
 
class CRenderToolsRenderTools () const
 
class CRenderMapRenderMap () const
 
class IConfigManagerConfigManager () const
 
class CConfigConfig () const
 
class IConsoleConsole () const
 
class IDemoPlayerDemoPlayer () const
 
class IDemoRecorderDemoRecorder (int Recorder) const
 
class IFavoritesFavorites () const
 
class IServerBrowserServerBrowser () const
 
class CLayersLayers () const
 
class CCollisionCollision () const
 
int64_t time () const
 
float LocalTime () const
 
class IHttpHttp () const
 

Constructor & Destructor Documentation

◆ CEffects()

CEffects::CEffects ( )

Member Function Documentation

◆ AirJump()

void CEffects::AirJump ( vec2  Pos,
float  Alpha 
)

◆ BulletTrail()

void CEffects::BulletTrail ( vec2  Pos,
float  Alpha,
float  TimePassed 
)

◆ Confetti()

void CEffects::Confetti ( vec2  Pos,
float  Alpha 
)

◆ DamageIndicator()

void CEffects::DamageIndicator ( vec2  Pos,
vec2  Dir,
float  Alpha 
)

◆ Explosion()

void CEffects::Explosion ( vec2  Pos,
float  Alpha 
)

◆ FreezingFlakes()

void CEffects::FreezingFlakes ( vec2  Pos,
vec2  Size,
float  Alpha 
)

◆ HammerHit()

void CEffects::HammerHit ( vec2  Pos,
float  Alpha 
)

◆ OnRender()

void CEffects::OnRender ( )
overridevirtual

Called when the component should get rendered.

The render order depends on the component insertion order.

Reimplemented from CComponent.

◆ PlayerDeath()

void CEffects::PlayerDeath ( vec2  Pos,
int  ClientId,
float  Alpha 
)

◆ PlayerSpawn()

void CEffects::PlayerSpawn ( vec2  Pos,
float  Alpha 
)

◆ PowerupShine()

void CEffects::PowerupShine ( vec2  Pos,
vec2  Size,
float  Alpha 
)

◆ Sizeof()

int CEffects::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

◆ SkidTrail()

void CEffects::SkidTrail ( vec2  Pos,
vec2  Vel,
int  Direction,
float  Alpha 
)

◆ SmokeTrail()

void CEffects::SmokeTrail ( vec2  Pos,
vec2  Vel,
float  Alpha,
float  TimePassed 
)

◆ SparkleTrail()

void CEffects::SparkleTrail ( vec2  Pos,
float  Alpha 
)

◆ Update()

void CEffects::Update ( )

Member Data Documentation

◆ m_Add100hz

bool CEffects::m_Add100hz
private

◆ m_Add50hz

bool CEffects::m_Add50hz
private

◆ m_Add5hz

bool CEffects::m_Add5hz
private

◆ m_LastUpdate100hz

int64_t CEffects::m_LastUpdate100hz = 0
private

◆ m_LastUpdate50hz

int64_t CEffects::m_LastUpdate50hz = 0
private

◆ m_LastUpdate5hz

int64_t CEffects::m_LastUpdate5hz = 0
private

◆ m_SkidSoundTimer

int64_t CEffects::m_SkidSoundTimer = 0
private

The documentation for this class was generated from the following files: