about summary refs log tree commit diff
path: root/src/game/server/gamemodes/zcatch.hpp
diff options
context:
space:
mode:
authorTeetime <anton.tsoulos@yahoo.de>2011-07-03 16:42:29 +0200
committerTeetime <anton.tsoulos@yahoo.de>2011-07-03 16:42:29 +0200
commitde7c2a5f47cc1c854e6210ba056888e7a7ae7a08 (patch)
tree8b1c1cbf8d54fd554d06a1b989b12e51280b55a8 /src/game/server/gamemodes/zcatch.hpp
parent76594f348fc01ef3cad44fc4536dbb732a8ca653 (diff)
downloadzcatch-de7c2a5f47cc1c854e6210ba056888e7a7ae7a08.tar.gz
zcatch-de7c2a5f47cc1c854e6210ba056888e7a7ae7a08.zip
Added general zCatch-Support
Diffstat (limited to 'src/game/server/gamemodes/zcatch.hpp')
-rw-r--r--src/game/server/gamemodes/zcatch.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/game/server/gamemodes/zcatch.hpp b/src/game/server/gamemodes/zcatch.hpp
new file mode 100644
index 00000000..7d6836d2
--- /dev/null
+++ b/src/game/server/gamemodes/zcatch.hpp
@@ -0,0 +1,26 @@
+/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
+#ifndef GAME_SERVER_GAMEMODES_ZCATCH_H
+#define GAME_SERVER_GAMEMODES_DM_H
+
+#include <game/server/gamecontroller.h>
+
+class CGameController_zCatch : public IGameController
+{
+	public:
+	CGameController_zCatch(class CGameContext *pGameServer);
+	virtual void Tick();
+	virtual bool IsZCatch();
+	
+	enum
+	{
+		ZCATCH_JOINED_NEW = -2,
+		ZCATCH_NOT_CATCHED = -1,
+	}; 
+
+	virtual int OnCharacterDeath(class CCharacter *pVictim, class CPlayer *pKiller, int WeaponID);
+	virtual void StartRound();
+	virtual void OnCharacterSpawn(class CCharacter *pChr);
+	virtual void EndRound();
+};
+
+#endif