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
7class CLaserData;
8
9class 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
20public:
21 CDragger(CGameWorld *pGameWorld, int Id, const CLaserData *pData);
22 bool Match(CDragger *pDragger);
23 void Read(const CLaserData *pData);
24 float GetStrength() { return m_Strength; }
25
26 void Tick() override;
27};
28
29#endif // GAME_CLIENT_PREDICTION_ENTITIES_DRAGGER_H
30