DDraceNetwork Docs
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_SERVER_ENTITIES_DRAGGER_H
3#define GAME_SERVER_ENTITIES_DRAGGER_H
4
6class CDraggerBeam;
7
22class CDragger : public CEntity
23{
24 // m_Core is the direction vector by which a dragger is shifted at each movement tick (every 150ms)
26 float m_Strength;
27 bool m_IgnoreWalls;
29
32
34
35public:
36 CDragger(CGameWorld *pGameWorld, vec2 Pos, float Strength, bool IgnoreWalls, int Layer = 0, int Number = 0);
37
38 void RemoveDraggerBeam(int ClientId);
39 bool WillDraggerBeamUseDraggerId(int TargetClientId, int SnappingClientId);
40
41 void Reset() override;
42 void Tick() override;
43 void Snap(int SnappingClient) override;
44 void SwapClients(int Client1, int Client2) override;
45};
46
47#endif // GAME_SERVER_ENTITIES_DRAGGER_H
Definition: dragger_beam.h:25
Definition: dragger.h:10
bool WillDraggerBeamUseDraggerId(int TargetClientId, int SnappingClientId)
Definition: dragger.cpp:164
void Snap(int SnappingClient) override
Definition: dragger.cpp:194
void SwapClients(int Client1, int Client2) override
Definition: dragger.cpp:244
float m_Strength
Definition: dragger.h:12
void RemoveDraggerBeam(int ClientId)
Definition: dragger.cpp:159
void Tick() override
int m_EvalTick
Definition: dragger.h:28
vec2 m_Core
Definition: dragger.h:11
int m_aTargetIdInTeam[MAX_CLIENTS]
Definition: dragger.h:30
void Reset() override
Definition: dragger.cpp:189
CDraggerBeam * m_apDraggerBeam[MAX_CLIENTS]
Definition: dragger.h:31
CDragger(CGameWorld *pGameWorld, int Id, const CLaserData *pData)
Definition: dragger.cpp:131
bool m_IgnoreWalls
Definition: dragger.h:13
void LookForPlayersToDrag()
Definition: entity.h:13
Definition: gameworld.h:17
@ MAX_CLIENTS
Definition: protocol.h:88