DDNet documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
dragger.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_DRAGGER_H
3
#define GAME_CLIENT_PREDICTION_ENTITIES_DRAGGER_H
4
5
#include <
game/client/prediction/entity.h
>
6
7
class
CLaserData
;
8
9
class
CDragger
:
public
CEntity
10
{
11
vec2
m_Core
;
12
float
m_Strength
;
13
bool
m_IgnoreWalls
;
14
int
m_TargetId
;
15
16
void
LookForPlayersToDrag
();
17
void
DraggerBeamTick
();
18
void
DraggerBeamReset
();
19
20
public
:
21
CDragger
(
CGameWorld
*pGameWorld,
int
Id,
const
CLaserData
*pData);
22
bool
Match
(
CDragger
*pDragger);
23
void
Read
(
const
CLaserData
*pData);
24
float
GetStrength
()
const
{
return
m_Strength
; }
25
26
void
Tick
()
override
;
27
};
28
29
#endif
// GAME_CLIENT_PREDICTION_ENTITIES_DRAGGER_H
CDragger::m_TargetId
int m_TargetId
Definition
dragger.h:14
CDragger::m_Strength
float m_Strength
Definition
dragger.h:12
CDragger::Read
void Read(const CLaserData *pData)
Definition
dragger.cpp:151
CDragger::Tick
void Tick() override
Definition
dragger.cpp:14
CDragger::m_Core
vec2 m_Core
Definition
dragger.h:11
CDragger::DraggerBeamTick
void DraggerBeamTick()
Definition
dragger.cpp:94
CDragger::GetStrength
float GetStrength() const
Definition
dragger.h:24
CDragger::CDragger
CDragger(CGameWorld *pGameWorld, int Id, const CLaserData *pData)
Definition
dragger.cpp:131
CDragger::DraggerBeamReset
void DraggerBeamReset()
Definition
dragger.cpp:89
CDragger::Match
bool Match(CDragger *pDragger)
Definition
dragger.cpp:157
CDragger::m_IgnoreWalls
bool m_IgnoreWalls
Definition
dragger.h:13
CDragger::LookForPlayersToDrag
void LookForPlayersToDrag()
Definition
dragger.cpp:27
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
entity.h
vec2
vector2_base< float > vec2
Definition
vmath.h:168
src
game
client
prediction
entities
dragger.h
Generated by
1.18.0