DDraceNetwork Docs
effects.h
Go to the documentation of this file.
1/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2/* If you are missing that file, acquire a complete release at teeworlds.com. */
3#ifndef GAME_CLIENT_COMPONENTS_EFFECTS_H
4#define GAME_CLIENT_COMPONENTS_EFFECTS_H
5
6#include <base/vmath.h>
7
9
10class CEffects : public CComponent
11{
15
16public:
17 CEffects();
18 virtual int Sizeof() const override { return sizeof(*this); }
19
20 virtual void OnRender() override;
21
22 void BulletTrail(vec2 Pos, float Alpha = 1.f, float TimePassed = 0.f);
23 void SmokeTrail(vec2 Pos, vec2 Vel, float Alpha = 1.f, float TimePassed = 0.f);
24 void SkidTrail(vec2 Pos, vec2 Vel, float Alpha = 1.0f);
25 void Explosion(vec2 Pos, float Alpha = 1.0f);
26 void HammerHit(vec2 Pos, float Alpha = 1.0f);
27 void AirJump(vec2 Pos, float Alpha = 1.0f);
28 void DamageIndicator(vec2 Pos, vec2 Dir, float Alpha = 1.0f);
29 void PlayerSpawn(vec2 Pos, float Alpha = 1.0f);
30 void PlayerDeath(vec2 Pos, int ClientId, float Alpha = 1.0f);
31 void PowerupShine(vec2 Pos, vec2 Size, float Alpha = 1.0f);
32 void FreezingFlakes(vec2 Pos, vec2 Size, float Alpha = 1.0f);
33 void SparkleTrail(vec2 Pos, float Alpha = 1.0f);
34 void Confetti(vec2 Pos, float Alpha = 1.0f);
35
36 void Update();
37};
38#endif
Definition: component.h:20
Definition: effects.h:11
void HammerHit(vec2 Pos, float Alpha=1.0f)
Definition: effects.cpp:370
void PowerupShine(vec2 Pos, vec2 Size, float Alpha=1.0f)
Definition: effects.cpp:56
virtual void OnRender() override
Definition: effects.cpp:388
void SparkleTrail(vec2 Pos, float Alpha=1.0f)
Definition: effects.cpp:106
void Explosion(vec2 Pos, float Alpha=1.0f)
Definition: effects.cpp:303
CEffects()
Definition: effects.cpp:18
void AirJump(vec2 Pos, float Alpha=1.0f)
Definition: effects.cpp:25
bool m_Add5hz
Definition: effects.h:12
void DamageIndicator(vec2 Pos, vec2 Dir, float Alpha=1.0f)
Definition: effects.cpp:51
void SmokeTrail(vec2 Pos, vec2 Vel, float Alpha=1.f, float TimePassed=0.f)
Definition: effects.cpp:126
void SkidTrail(vec2 Pos, vec2 Vel, float Alpha=1.0f)
Definition: effects.cpp:146
bool m_Add100hz
Definition: effects.h:14
void Update()
virtual int Sizeof() const override
Definition: effects.h:18
void BulletTrail(vec2 Pos, float Alpha=1.f, float TimePassed=0.f)
Definition: effects.cpp:166
void PlayerDeath(vec2 Pos, int ClientId, float Alpha=1.0f)
Definition: effects.cpp:208
void PlayerSpawn(vec2 Pos, float Alpha=1.0f)
Definition: effects.cpp:184
bool m_Add50hz
Definition: effects.h:13
void Confetti(vec2 Pos, float Alpha=1.0f)
Definition: effects.cpp:249
void FreezingFlakes(vec2 Pos, vec2 Size, float Alpha=1.0f)
Definition: effects.cpp:79