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_CLIENT_PREDICTION_ENTITIES_PLASMA_H
3
#define GAME_CLIENT_PREDICTION_ENTITIES_PLASMA_H
4
5
#include <
game/client/prediction/entity.h
>
6
7
class
CLaserData
;
8
9
class
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
22
public
:
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
CCharacter
Definition
character.h:24
CEntity::CGameWorld
friend CGameWorld
Definition
entity.h:17
CEntity::CEntity
CEntity(CGameWorld *pGameWorld, int Objtype, vec2 Pos=vec2(0, 0), int ProximityRadius=0)
Definition
entity.cpp:11
CLaserData
Definition
laser_data.h:13
CPlasma::HitCharacter
bool HitCharacter(CCharacter *pTarget)
Definition
plasma.cpp:87
CPlasma::m_Freeze
bool m_Freeze
Definition
plasma.h:12
CPlasma::Move
void Move()
Definition
plasma.cpp:81
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)
Definition
plasma.cpp:115
CPlasma::Match
bool Match(const CPlasma *pPlasma) const
Definition
plasma.cpp:35
CPlasma::CPlasma
CPlasma(CGameWorld *pGameWorld, int Id, const CLaserData *pData)
Definition
plasma.cpp:12
CPlasma::Tick
void Tick() override
Definition
plasma.cpp:59
CPlasma::m_ForClientId
int m_ForClientId
Definition
plasma.h:14
CPlasma::m_Core
vec2 m_Core
Definition
plasma.h:11
CPlasma::Reset
void Reset()
Definition
plasma.cpp:54
CPlasma::Read
void Read(const CLaserData *pData)
Definition
plasma.cpp:41
entity.h
vec2
vector2_base< float > vec2
Definition
vmath.h:168
src
game
client
prediction
entities
plasma.h
Generated by
1.18.0