2010-11-20 10:37:14 +00:00
|
|
|
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
|
|
|
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
2010-09-06 10:29:28 +00:00
|
|
|
#ifndef GAME_SERVER_ENTITIES_FLAG_H
|
|
|
|
#define GAME_SERVER_ENTITIES_FLAG_H
|
|
|
|
|
|
|
|
#include <game/server/entity.h>
|
|
|
|
|
|
|
|
class CFlag : public CEntity
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
static const int ms_PhysSize = 14;
|
|
|
|
CCharacter *m_pCarryingCharacter;
|
|
|
|
vec2 m_Vel;
|
|
|
|
vec2 m_StandPos;
|
|
|
|
|
|
|
|
int m_Team;
|
|
|
|
int m_AtStand;
|
|
|
|
int m_DropTick;
|
|
|
|
int m_GrabTick;
|
|
|
|
|
|
|
|
CFlag(CGameWorld *pGameWorld, int Team);
|
|
|
|
|
|
|
|
virtual void Reset();
|
|
|
|
virtual void Snap(int SnappingClient);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|