ddnet/src/game/server/entities/dragger.h
2010-09-22 14:43:59 +04:00

39 lines
733 B
C++

/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
#ifndef GAME_SERVER_ENTITY_DRAGGER_H
#define GAME_SERVER_ENTITY_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();
CCharacter * m_Target;
bool m_NW;
int m_CatchedTeam;
public:
CDragger(CGameWorld *pGameWorld, vec2 Pos, float Strength, bool NW, int CatchedTeam);
virtual void Reset();
virtual void Tick();
virtual void Snap(int snapping_client);
};
class CDraggerTeam {
CDragger * m_Draggers[MAX_CLIENTS];
public:
CDraggerTeam(CGameWorld *pGameWorld, vec2 Pos, float Strength, bool NW=false);
~CDraggerTeam();
};
#endif