ddnet/src/game/client/components/effects.h

31 lines
913 B
C
Raw Normal View History

2010-11-20 10:37:14 +00:00
/* (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. */
2010-05-29 07:25:38 +00:00
#ifndef GAME_CLIENT_COMPONENTS_EFFECTS_H
#define GAME_CLIENT_COMPONENTS_EFFECTS_H
#include <game/client/component.h>
class CEffects : public CComponent
{
2010-05-29 07:25:38 +00:00
bool m_Add50hz;
bool m_Add100hz;
public:
CEffects();
virtual void OnRender();
2019-07-16 20:06:57 +00:00
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);
2010-05-29 07:25:38 +00:00
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();
2010-05-29 07:25:38 +00:00
void PlayerSpawn(vec2 Pos);
void PlayerDeath(vec2 Pos, int ClientID);
2010-05-29 07:25:38 +00:00
void PowerupShine(vec2 Pos, vec2 Size);
void Update();
};
#endif