diff options
| author | Teetime <TeetimeTW@yahoo.de> | 2012-08-03 16:31:42 +0200 |
|---|---|---|
| committer | Teetime <TeetimeTW@yahoo.de> | 2012-08-03 16:31:42 +0200 |
| commit | 53b7b44d46c11557788791d8f5c1d76ad2c8e800 (patch) | |
| tree | 8394570776de82ca54b302a4aff0a30e5e676111 /src/game/server/gamemodes/zcatch.h | |
| parent | 6c6e29265cecb2d6432ec0f3058f6d2e4d1f0548 (diff) | |
| download | zcatch-53b7b44d46c11557788791d8f5c1d76ad2c8e800.tar.gz zcatch-53b7b44d46c11557788791d8f5c1d76ad2c8e800.zip | |
renamed file
Diffstat (limited to 'src/game/server/gamemodes/zcatch.h')
| -rw-r--r-- | src/game/server/gamemodes/zcatch.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/game/server/gamemodes/zcatch.h b/src/game/server/gamemodes/zcatch.h new file mode 100644 index 00000000..d4e33bd1 --- /dev/null +++ b/src/game/server/gamemodes/zcatch.h @@ -0,0 +1,33 @@ +/* (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 */ + +#ifndef GAME_SERVER_GAMEMODES_ZCATCH_H +#define GAME_SERVER_GAMEMODES_ZCATCH_H + +#include <game/server/gamecontroller.h> + +class CGameController_zCatch : public IGameController +{ + private: + int m_OldMode; + + public: + CGameController_zCatch(class CGameContext *pGameServer); + virtual void Tick(); + virtual void DoWincheck(); + virtual bool IsZCatch(); + + enum + { + ZCATCH_NOT_CAUGHT = -1, + }; + + virtual int OnCharacterDeath(class CCharacter *pVictim, class CPlayer *pKiller, int WeaponID); + virtual void StartRound(); + virtual void OnCharacterSpawn(class CCharacter *pChr); + virtual void OnPlayerInfoChange(class CPlayer *pP); + virtual void EndRound(); +}; + +#endif |