ddnet/src/game/server/gamemodes/mod.cpp

22 lines
721 B
C++
Raw Normal View History

/* // copyright (c) 2007 magnus auvinen, see licence.txt for more info
2010-05-29 07:25:38 +00:00
#include "mod.h"
2009-01-11 09:29:15 +00:00
2010-05-29 07:25:38 +00:00
CGameControllerMOD::CGameControllerMOD(class CGameContext *pGameServer)
: IGameController(pGameServer)
2009-01-11 09:29:15 +00:00
{
2009-01-11 13:23:40 +00:00
// Exchange this to a string that identifies your game mode.
// DM, TDM and CTF are reserved for teeworlds original modes.
2010-05-29 07:25:38 +00:00
m_pGameType = "MOD";
2009-01-11 13:23:40 +00:00
2010-05-29 07:25:38 +00:00
//m_GameFlags = GAMEFLAG_TEAMS; // GAMEFLAG_TEAMS makes it a two-team gamemode
2009-01-11 09:29:15 +00:00
}
2010-05-29 07:25:38 +00:00
void CGameControllerMOD::Tick()
2009-01-11 09:29:15 +00:00
{
// this is the main part of the gamemode, this function is run every tick
2010-05-29 07:25:38 +00:00
DoPlayerScoreWincheck(); // checks for winners, no teams version
//DoTeamScoreWincheck(); // checks for winners, two teams version
2009-01-11 09:29:15 +00:00
2010-05-29 07:25:38 +00:00
IGameController::Tick();
2009-01-11 09:29:15 +00:00
}
*/