ddnet/src/game/server/entities/dragger.h

40 lines
854 B
C
Raw Normal View History

/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
#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();
2010-09-22 10:43:59 +00:00
CCharacter * m_Target;
bool m_NW;
2010-09-22 10:43:59 +00:00
int m_CatchedTeam;
public:
CDragger(CGameWorld *pGameWorld, vec2 Pos, float Strength, bool NW,
int CatchedTeam, int Layer = 0, int Number = 0);
virtual void Reset();
virtual void Tick();
virtual void Snap(int snapping_client);
};
class CDraggerTeam
{
2010-09-22 10:43:59 +00:00
CDragger * m_Draggers[MAX_CLIENTS];
2010-09-22 10:43:59 +00:00
public:
CDraggerTeam(CGameWorld *pGameWorld, vec2 Pos, float Strength, bool NW =
false, int Layer = 0, int Number = 0);
2010-09-22 10:49:19 +00:00
//~CDraggerTeam();
2010-09-22 10:43:59 +00:00
};
#endif