From 53b7b44d46c11557788791d8f5c1d76ad2c8e800 Mon Sep 17 00:00:00 2001 From: Teetime Date: Fri, 3 Aug 2012 16:31:42 +0200 Subject: renamed file --- src/game/server/gamecontext.cpp | 2 +- src/game/server/gamemodes/zcatch.cpp | 2 +- src/game/server/gamemodes/zcatch.h | 33 +++++++++++++++++++++++++++++++++ src/game/server/gamemodes/zcatch.hpp | 33 --------------------------------- 4 files changed, 35 insertions(+), 35 deletions(-) create mode 100644 src/game/server/gamemodes/zcatch.h delete mode 100644 src/game/server/gamemodes/zcatch.hpp (limited to 'src') diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index df377ccc..96d8364b 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -13,7 +13,7 @@ #include "gamemodes/tdm.h" #include "gamemodes/ctf.h" #include "gamemodes/mod.h" -#include "gamemodes/zcatch.hpp" +#include "gamemodes/zcatch.h" enum { diff --git a/src/game/server/gamemodes/zcatch.cpp b/src/game/server/gamemodes/zcatch.cpp index bb36b8ae..ea7efd23 100644 --- a/src/game/server/gamemodes/zcatch.cpp +++ b/src/game/server/gamemodes/zcatch.cpp @@ -4,7 +4,7 @@ #include #include -#include "zcatch.hpp" +#include "zcatch.h" CGameController_zCatch::CGameController_zCatch(class CGameContext *pGameServer) : IGameController(pGameServer) 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 + +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 diff --git a/src/game/server/gamemodes/zcatch.hpp b/src/game/server/gamemodes/zcatch.hpp deleted file mode 100644 index d4e33bd1..00000000 --- a/src/game/server/gamemodes/zcatch.hpp +++ /dev/null @@ -1,33 +0,0 @@ -/* (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 - -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 -- cgit 1.4.1