2011-12-25 13:33:05 +00:00
|
|
|
/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
|
2010-07-29 05:21:18 +00:00
|
|
|
#ifndef PLASMA_TYPE
|
|
|
|
#define PLASMA_TYPE
|
|
|
|
|
|
|
|
#include <game/server/entity.h>
|
|
|
|
|
|
|
|
class CGun;
|
|
|
|
|
2011-12-25 13:51:04 +00:00
|
|
|
class CPlasma: public CEntity
|
2010-07-29 05:21:18 +00:00
|
|
|
{
|
2010-08-28 20:32:16 +00:00
|
|
|
vec2 m_Core;
|
|
|
|
int m_EvalTick;
|
|
|
|
int m_LifeTime;
|
2010-09-11 09:42:35 +00:00
|
|
|
|
2010-09-08 16:22:11 +00:00
|
|
|
int m_ResponsibleTeam;
|
2010-09-10 06:55:04 +00:00
|
|
|
int m_Freeze;
|
2010-09-11 09:42:35 +00:00
|
|
|
|
2010-08-28 20:32:16 +00:00
|
|
|
bool m_Explosive;
|
|
|
|
bool HitCharacter();
|
|
|
|
void Move();
|
2010-07-29 05:21:18 +00:00
|
|
|
public:
|
2010-09-11 09:42:35 +00:00
|
|
|
|
2011-12-25 13:51:04 +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
|