2010-07-29 05:21:18 +00:00
|
|
|
/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
|
|
|
|
|
|
|
|
#ifndef PLASMA_TYPE
|
|
|
|
#define PLASMA_TYPE
|
|
|
|
|
|
|
|
#include <game/server/entity.h>
|
|
|
|
|
|
|
|
class CGun;
|
|
|
|
|
|
|
|
class CPlasma : public CEntity
|
|
|
|
{
|
2010-08-28 20:32:16 +00:00
|
|
|
vec2 m_Core;
|
|
|
|
int m_EvalTick;
|
|
|
|
int m_LifeTime;
|
2010-09-08 16:22:11 +00:00
|
|
|
int m_ResponsibleTeam;
|
2010-08-28 20:32:16 +00:00
|
|
|
bool m_Freeze;
|
|
|
|
bool m_Explosive;
|
|
|
|
bool HitCharacter();
|
|
|
|
void Move();
|
2010-07-29 05:21:18 +00:00
|
|
|
public:
|
2010-09-08 16:22:11 +00:00
|
|
|
CPlasma(CGameWorld *pGameWorld, vec2 Pos, vec2 Dir, bool Freeze, bool Explosive, int ResponsibleTeam);
|
2010-07-29 05:21:18 +00:00
|
|
|
|
|
|
|
virtual void Reset();
|
|
|
|
virtual void Tick();
|
2010-08-30 23:45:42 +00:00
|
|
|
virtual void Snap(int SnappingClient);
|
2010-07-29 05:21:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2010-08-28 20:32:16 +00:00
|
|
|
#endif
|