DDraceNetwork Documentation
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
6
7class CLaserData;
8
9class CDragger : public CEntity
10{
15
17 void DraggerBeamTick();
18 void DraggerBeamReset();
19
20public:
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
int m_TargetId
Definition dragger.h:14
float m_Strength
Definition dragger.h:12
void Read(const CLaserData *pData)
Definition dragger.cpp:148
void Tick() override
Definition dragger.cpp:14
vec2 m_Core
Definition dragger.h:11
void DraggerBeamTick()
Definition dragger.cpp:92
float GetStrength() const
Definition dragger.h:24
CDragger(CGameWorld *pGameWorld, int Id, const CLaserData *pData)
Definition dragger.cpp:128
void DraggerBeamReset()
Definition dragger.cpp:87
bool Match(CDragger *pDragger)
Definition dragger.cpp:154
bool m_IgnoreWalls
Definition dragger.h:13
void LookForPlayersToDrag()
Definition dragger.cpp:27
friend CGameWorld
Definition entity.h:17
CEntity(CGameWorld *pGameWorld, int Objtype, vec2 Pos=vec2(0, 0), int ProximityRadius=0)
Definition entity.cpp:11
Definition laser_data.h:13
vector2_base< float > vec2
Definition vmath.h:161