mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 11:38:19 +00:00
1820a0e168
Let's see if it works out, if not, we can revert it.
33 lines
986 B
C++
33 lines
986 B
C++
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
|
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
|
#ifndef GAME_CLIENT_COMPONENTS_EFFECTS_H
|
|
#define GAME_CLIENT_COMPONENTS_EFFECTS_H
|
|
#include <game/client/component.h>
|
|
|
|
class CEffects : public CComponent
|
|
{
|
|
bool m_Add50hz;
|
|
bool m_Add100hz;
|
|
|
|
public:
|
|
CEffects();
|
|
virtual int Sizeof() const override { return sizeof(*this); }
|
|
|
|
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);
|
|
void Explosion(vec2 Pos);
|
|
void HammerHit(vec2 Pos);
|
|
void AirJump(vec2 Pos);
|
|
void DamageIndicator(vec2 Pos, vec2 Dir);
|
|
void ResetDamageIndicator();
|
|
void PlayerSpawn(vec2 Pos);
|
|
void PlayerDeath(vec2 Pos, int ClientID);
|
|
void PowerupShine(vec2 Pos, vec2 Size);
|
|
|
|
void Update();
|
|
};
|
|
#endif
|