about summary refs log tree commit diff
path: root/src/game/server/gamemodes/zcatch.h
diff options
context:
space:
mode:
authorTeetime <TeetimeTW@yahoo.de>2013-01-12 07:59:20 +0100
committerTeetime <TeetimeTW@yahoo.de>2013-01-12 07:59:20 +0100
commit90770bc12e3266cf428b66abbbd4d6bb85a5bc55 (patch)
tree6a51446a4a1ea4ca73ce61bd97bb4bad5a48c431 /src/game/server/gamemodes/zcatch.h
parent198122516365d17a489cc86f205d44cc0008f99d (diff)
downloadzcatch-90770bc12e3266cf428b66abbbd4d6bb85a5bc55.tar.gz
zcatch-90770bc12e3266cf428b66abbbd4d6bb85a5bc55.zip
Refactored some things, corrected indentation etc..
Diffstat (limited to 'src/game/server/gamemodes/zcatch.h')
-rw-r--r--src/game/server/gamemodes/zcatch.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/game/server/gamemodes/zcatch.h b/src/game/server/gamemodes/zcatch.h
index cb01ff8b..4f110a03 100644
--- a/src/game/server/gamemodes/zcatch.h
+++ b/src/game/server/gamemodes/zcatch.h
@@ -1,13 +1,13 @@
 /* (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.                */
-/* zCatch by erd and Teetime */
+/* zCatch by erd and Teetime                                                                 */
 
 #ifndef GAME_SERVER_GAMEMODES_ZCATCH_H
 #define GAME_SERVER_GAMEMODES_ZCATCH_H
 
 #include <game/server/gamecontroller.h>
 
-class CGameController_zCatch : public IGameController
+class CGameController_zCatch: public IGameController
 {
 	int m_OldMode;
 
@@ -15,17 +15,13 @@ public:
 	CGameController_zCatch(class CGameContext *pGameServer);
 	virtual void Tick();
 	virtual void DoWincheck();
-	virtual bool IsZCatch();
-
-	enum
-	{
-		ZCATCH_NOT_CAUGHT = -1,
-	}; 
 
 	virtual void StartRound();
 	virtual void OnCharacterSpawn(class CCharacter *pChr);
 	virtual void OnPlayerInfoChange(class CPlayer *pP);
 	virtual int OnCharacterDeath(class CCharacter *pVictim, class CPlayer *pKiller, int WeaponID);
+	virtual bool OnEntity(int Index, vec2 Pos);
+	virtual bool CanChangeTeam(CPlayer *pPlayer, int JoinTeam);
 	virtual void EndRound();
 };