DDNet documentation
Toggle main menu visibility
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
5
#include <
game/server/entity.h
>
6
23
class
CPlasma
:
public
CEntity
24
{
25
vec2
m_Core
;
26
int
m_Freeze
;
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
36
public
:
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
CCharacter
Definition
character.h:24
CEntity
Definition
entity.h:13
CEntity::CGameWorld
friend CGameWorld
Definition
entity.h:17
CPlasma
Definition
plasma.h:10
CPlasma::HitCharacter
bool HitCharacter(CCharacter *pTarget)
CPlasma::m_Freeze
bool m_Freeze
Definition
plasma.h:12
CPlasma::Move
void Move()
CPlasma::Reset
void Reset() override
CPlasma::SwapClients
void SwapClients(int Client1, int Client2) override
Definition
plasma.cpp:132
CPlasma::m_LifeTime
int m_LifeTime
Definition
plasma.h:16
CPlasma::m_Explosive
bool m_Explosive
Definition
plasma.h:13
CPlasma::m_EvalTick
int m_EvalTick
Definition
plasma.h:15
CPlasma::HitObstacle
bool HitObstacle(CCharacter *pTarget)
CPlasma::Snap
void Snap(int SnappingClient) override
Definition
plasma.cpp:112
CPlasma::CPlasma
CPlasma(CGameWorld *pGameWorld, int Id, const CLaserData *pData)
Definition
plasma.cpp:12
CPlasma::Tick
void Tick() override
CPlasma::m_ForClientId
int m_ForClientId
Definition
plasma.h:14
CPlasma::m_Core
vec2 m_Core
Definition
plasma.h:11
entity.h
vec2
vector2_base< float > vec2
Definition
vmath.h:168
src
game
server
entities
plasma.h
Generated by
1.18.0