about summary refs log tree commit diff
path: root/src/game/server/entities/flag.h
diff options
context:
space:
mode:
authorChoupom <andycootlapin@hotmail.fr>2010-09-06 12:29:28 +0200
committeroy <Tom_Adams@web.de>2010-09-07 20:02:46 +0200
commit532ea85aebc9dc2ce6d87fe484766bf37ab40970 (patch)
treed7820215260874cbaa01d9ed15fcdc46c52043b2 /src/game/server/entities/flag.h
parent6299f6518aa8576fa06f62101aa466c3da528fb1 (diff)
downloadzcatch-532ea85aebc9dc2ce6d87fe484766bf37ab40970.tar.gz
zcatch-532ea85aebc9dc2ce6d87fe484766bf37ab40970.zip
separated CFlag from ctf
Diffstat (limited to 'src/game/server/entities/flag.h')
-rw-r--r--src/game/server/entities/flag.h25
1 files changed, 25 insertions, 0 deletions
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 <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