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. */
|
2018-07-06 14:11:38 +00:00
|
|
|
#ifndef GAME_SERVER_ENTITIES_PLASMA_H
|
|
|
|
#define GAME_SERVER_ENTITIES_PLASMA_H
|
2010-07-29 05:21:18 +00:00
|
|
|
|
|
|
|
#include <game/server/entity.h>
|
|
|
|
|
2020-09-26 19:41:58 +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;
|
2022-05-04 17:33:48 +00:00
|
|
|
int m_Freeze;
|
|
|
|
bool m_Explosive;
|
|
|
|
int m_ForClientID;
|
2010-08-28 20:32:16 +00:00
|
|
|
int m_EvalTick;
|
|
|
|
int m_LifeTime;
|
2010-09-11 09:42:35 +00:00
|
|
|
|
2022-05-04 17:33:48 +00:00
|
|
|
bool HitCharacter(CCharacter *pTarget);
|
2010-08-28 20:32:16 +00:00
|
|
|
void Move();
|
2010-09-11 09:42:35 +00:00
|
|
|
|
2020-09-26 19:41:58 +00:00
|
|
|
public:
|
2011-12-25 13:51:04 +00:00
|
|
|
CPlasma(CGameWorld *pGameWorld, vec2 Pos, vec2 Dir, bool Freeze,
|
2022-05-04 17:33:48 +00:00
|
|
|
bool Explosive, int ForClientId);
|
2010-07-29 05:21:18 +00:00
|
|
|
|
2022-05-17 20:13:44 +00:00
|
|
|
void Reset() override;
|
|
|
|
void Tick() override;
|
|
|
|
void Snap(int SnappingClient) override;
|
2010-07-29 05:21:18 +00:00
|
|
|
};
|
|
|
|
|
2018-07-06 14:11:38 +00:00
|
|
|
#endif // GAME_SERVER_ENTITIES_PLASMA_H
|