From 532ea85aebc9dc2ce6d87fe484766bf37ab40970 Mon Sep 17 00:00:00 2001 From: Choupom Date: Mon, 6 Sep 2010 12:29:28 +0200 Subject: separated CFlag from ctf --- src/game/server/entities/flag.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/game/server/entities/flag.h (limited to 'src/game/server/entities/flag.h') diff --git a/src/game/server/entities/flag.h b/src/game/server/entities/flag.h new file mode 100644 index 00000000..1406d982 --- /dev/null +++ b/src/game/server/entities/flag.h @@ -0,0 +1,25 @@ +#ifndef GAME_SERVER_ENTITIES_FLAG_H +#define GAME_SERVER_ENTITIES_FLAG_H + +#include + +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 -- cgit 1.4.1