DDraceNetwork Docs
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{
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:30
Definition: entity.h:13
Definition: gameworld.h:17
Definition: plasma.h:24
bool HitCharacter(CCharacter *pTarget)
Definition: plasma.cpp:57
void Move()
Definition: plasma.cpp:51
void Reset() override
Definition: plasma.cpp:103
void SwapClients(int Client1, int Client2) override
Definition: plasma.cpp:128
CPlasma(CGameWorld *pGameWorld, vec2 Pos, vec2 Dir, bool Freeze, bool Explosive, int ForClientId)
Definition: plasma.cpp:14
int m_LifeTime
Definition: plasma.h:30
bool m_Explosive
Definition: plasma.h:27
int m_EvalTick
Definition: plasma.h:29
bool HitObstacle(CCharacter *pTarget)
Definition: plasma.cpp:85
int m_Freeze
Definition: plasma.h:26
void Snap(int SnappingClient) override
Definition: plasma.cpp:108
void Tick() override
Definition: plasma.cpp:29
int m_ForClientId
Definition: plasma.h:28
vec2 m_Core
Definition: plasma.h:25