mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-22 02:24:17 +00:00
41 lines
939 B
C++
41 lines
939 B
C++
/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
|
|
#ifndef GAME_SERVER_ENTITIES_DRAGGER_H
|
|
#define GAME_SERVER_ENTITIES_DRAGGER_H
|
|
|
|
#include <game/server/entity.h>
|
|
class CCharacter;
|
|
|
|
class CDragger : public CEntity
|
|
{
|
|
vec2 m_Core;
|
|
float m_Strength;
|
|
int m_EvalTick;
|
|
void Move();
|
|
void Drag();
|
|
int m_TargetID;
|
|
bool m_NW;
|
|
int m_CaughtTeam;
|
|
|
|
int m_SoloEntIDs[MAX_CLIENTS];
|
|
int m_SoloIDs[MAX_CLIENTS];
|
|
|
|
public:
|
|
CDragger(CGameWorld *pGameWorld, vec2 Pos, float Strength, bool NW,
|
|
int CaughtTeam, int Layer = 0, int Number = 0);
|
|
|
|
virtual void Reset();
|
|
virtual void Tick();
|
|
virtual void Snap(int SnappingClient);
|
|
};
|
|
|
|
class CDraggerTeam
|
|
{
|
|
CDragger *m_Draggers[MAX_CLIENTS];
|
|
|
|
public:
|
|
CDraggerTeam(CGameWorld *pGameWorld, vec2 Pos, float Strength, bool NW = false, int Layer = 0, int Number = 0);
|
|
//~CDraggerTeam();
|
|
};
|
|
|
|
#endif // GAME_SERVER_ENTITIES_DRAGGER_H
|