MCPcopy Create free account
hub / github.com/ddnet/ddnet / IGameController

Method IGameController

src/game/server/gamecontroller.cpp:24–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include <game/teamscore.h>
23
24IGameController::IGameController(class CGameContext *pGameServer) :
25 m_Teams(pGameServer), m_pLoadBestTimeResult(nullptr)
26{
27 m_pGameServer = pGameServer;
28 m_pConfig = m_pGameServer->Config();
29 m_pServer = m_pGameServer->Server();
30 m_pGameType = "unknown";
31
32 //
33 DoWarmup(g_Config.m_SvWarmup);
34 m_GameOverTick = -1;
35 m_SuddenDeath = 0;
36 m_RoundStartTick = Server()->Tick();
37 m_RoundCount = 0;
38 m_GameFlags = 0;
39 m_aMapWish[0] = 0;
40
41 m_CurrentRecord.reset();
42}
43
44IGameController::~IGameController() = default;
45

Callers

nothing calls this directly

Calls 4

ServerClass · 0.50
ConfigMethod · 0.45
ServerMethod · 0.45
TickMethod · 0.45

Tested by

no test coverage detected