DDraceNetwork Docs
CEffects Class Reference

#include <effects.h>

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

Public Member Functions

 CEffects ()
 
virtual int Sizeof () const override
 
virtual void OnRender () override
 
void BulletTrail (vec2 Pos, float Alpha=1.f, float TimePassed=0.f)
 
void SmokeTrail (vec2 Pos, vec2 Vel, float Alpha=1.f, float TimePassed=0.f)
 
void SkidTrail (vec2 Pos, vec2 Vel, float Alpha=1.0f)
 
void Explosion (vec2 Pos, float Alpha=1.0f)
 
void HammerHit (vec2 Pos, float Alpha=1.0f)
 
void AirJump (vec2 Pos, float Alpha=1.0f)
 
void DamageIndicator (vec2 Pos, vec2 Dir, float Alpha=1.0f)
 
void PlayerSpawn (vec2 Pos, float Alpha=1.0f)
 
void PlayerDeath (vec2 Pos, int ClientId, float Alpha=1.0f)
 
void PowerupShine (vec2 Pos, vec2 Size, float Alpha=1.0f)
 
void FreezingFlakes (vec2 Pos, vec2 Size, float Alpha=1.0f)
 
void SparkleTrail (vec2 Pos, float Alpha=1.0f)
 
void Confetti (vec2 Pos, float Alpha=1.0f)
 
void Update ()
 
- Public Member Functions inherited from CComponent
virtual ~CComponent ()
 
virtual int Sizeof () const =0
 
class CGameClientGameClient () const
 
class IClientClient () const
 
virtual void OnStateChange (int NewState, int OldState)
 
virtual void OnConsoleInit ()
 
virtual void OnInit ()
 
virtual void OnShutdown ()
 
virtual void OnReset ()
 
virtual void OnWindowResize ()
 
virtual void OnRefreshSkins ()
 
virtual void OnRender ()
 
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)
 

Private Attributes

bool m_Add5hz
 
bool m_Add50hz
 
bool m_Add100hz
 

Additional Inherited Members

- Protected Member Functions inherited from CComponent
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 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
 
- Protected Attributes inherited from CComponent
CGameClientm_pClient
 

Constructor & Destructor Documentation

◆ CEffects()

CEffects::CEffects ( )

Member Function Documentation

◆ AirJump()

void CEffects::AirJump ( vec2  Pos,
float  Alpha = 1.0f 
)

◆ BulletTrail()

void CEffects::BulletTrail ( vec2  Pos,
float  Alpha = 1.f,
float  TimePassed = 0.f 
)

◆ Confetti()

void CEffects::Confetti ( vec2  Pos,
float  Alpha = 1.0f 
)

◆ DamageIndicator()

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

◆ Explosion()

void CEffects::Explosion ( vec2  Pos,
float  Alpha = 1.0f 
)

◆ FreezingFlakes()

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

◆ HammerHit()

void CEffects::HammerHit ( vec2  Pos,
float  Alpha = 1.0f 
)

◆ 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 = 1.0f 
)

◆ PlayerSpawn()

void CEffects::PlayerSpawn ( vec2  Pos,
float  Alpha = 1.0f 
)

◆ PowerupShine()

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

◆ Sizeof()

virtual int CEffects::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

◆ SkidTrail()

void CEffects::SkidTrail ( vec2  Pos,
vec2  Vel,
float  Alpha = 1.0f 
)

◆ SmokeTrail()

void CEffects::SmokeTrail ( vec2  Pos,
vec2  Vel,
float  Alpha = 1.f,
float  TimePassed = 0.f 
)

◆ SparkleTrail()

void CEffects::SparkleTrail ( vec2  Pos,
float  Alpha = 1.0f 
)

◆ 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

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