1/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
2#ifndef GAME_CLIENT_PREDICTION_ENTITIES_PLASMA_H
3#define GAME_CLIENT_PREDICTION_ENTITIES_PLASMA_H
4
5#include <game/client/prediction/entity.h>
6
7class CLaserData;
8
9class CPlasma : public CEntity
10{
11 vec2 m_Core;
12 bool m_Freeze;
13 bool m_Explosive;
14 int m_ForClientId;
15 int m_EvalTick;
16 int m_LifeTime;
17
18 void Move();
19 bool HitCharacter(CCharacter *pTarget);
20 bool HitObstacle(CCharacter *pTarget);
21
22public:
23 CPlasma(CGameWorld *pGameWorld, int Id, const CLaserData *pData);
24
25 bool Match(const CPlasma *pPlasma) const;
26 void Read(const CLaserData *pData);
27
28 void Reset();
29 void Tick() override;
30};
31
32#endif // GAME_CLIENT_PREDICTION_ENTITIES_PLASMA_H
33