diff options
Diffstat (limited to 'src/game/server/gamemodes/zcatch.h')
| -rw-r--r-- | src/game/server/gamemodes/zcatch.h | 30 |
1 files changed, 30 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..af776644 --- /dev/null +++ b/src/game/server/gamemodes/zcatch.h @@ -0,0 +1,30 @@ +/* (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 +{ + int m_OldMode; + +public: + CGameController_zCatch(class CGameContext *pGameServer); + virtual void Tick(); + virtual void DoWincheck(); + + 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(); + + void CalcPlayerColor(); +}; + +#endif |