DDraceNetwork Documentation
Loading...
Searching...
No Matches
plasma.h
Go to the documentation of this file.
1/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
2#ifndef GAME_SERVER_ENTITIES_PLASMA_H
3#define GAME_SERVER_ENTITIES_PLASMA_H
4
6
23class CPlasma : public CEntity
24{
27 bool m_Explosive;
28 int m_ForClientId;
29 int m_EvalTick;
30 int m_LifeTime;
31
32 void Move();
33 bool HitCharacter(CCharacter *pTarget);
34 bool HitObstacle(CCharacter *pTarget);
35
36public:
37 CPlasma(CGameWorld *pGameWorld, vec2 Pos, vec2 Dir, bool Freeze,
38 bool Explosive, int ForClientId);
39
40 void Reset() override;
41 void Tick() override;
42 void Snap(int SnappingClient) override;
43 void SwapClients(int Client1, int Client2) override;
44};
45
46#endif // GAME_SERVER_ENTITIES_PLASMA_H
Definition character.h:24
Definition entity.h:13
friend CGameWorld
Definition entity.h:17
Definition plasma.h:10
bool HitCharacter(CCharacter *pTarget)
bool m_Freeze
Definition plasma.h:12
void Move()
void Reset() override
void SwapClients(int Client1, int Client2) override
Definition plasma.cpp:129
int m_LifeTime
Definition plasma.h:16
bool m_Explosive
Definition plasma.h:13
int m_EvalTick
Definition plasma.h:15
bool HitObstacle(CCharacter *pTarget)
void Snap(int SnappingClient) override
Definition plasma.cpp:109
CPlasma(CGameWorld *pGameWorld, int Id, const CLaserData *pData)
Definition plasma.cpp:12
void Tick() override
int m_ForClientId
Definition plasma.h:14
vec2 m_Core
Definition plasma.h:11
vector2_base< float > vec2
Definition vmath.h:161