ddnet/src/game/server/entities/plasma.h

32 lines
601 B
C
Raw Normal View History

/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
#ifndef PLASMA_TYPE
#define PLASMA_TYPE
#include <game/server/entity.h>
class CGun;
class CPlasma: public CEntity
{
vec2 m_Core;
int m_EvalTick;
int m_LifeTime;
2010-09-11 09:42:35 +00:00
int m_ResponsibleTeam;
int m_Freeze;
2010-09-11 09:42:35 +00:00
bool m_Explosive;
bool HitCharacter();
void Move();
public:
2010-09-11 09:42:35 +00:00
CPlasma(CGameWorld *pGameWorld, vec2 Pos, vec2 Dir, bool Freeze,
bool Explosive, int ResponsibleTeam);
virtual void Reset();
virtual void Tick();
virtual void Snap(int SnappingClient);
};
#endif