DDraceNetwork Docs
CGameControllerMod Class Reference

#include <mod.h>

Inheritance diagram for CGameControllerMod:
[legend]
Collaboration diagram for CGameControllerMod:
[legend]

Public Member Functions

 CGameControllerMod (class CGameContext *pGameServer)
 
 ~CGameControllerMod ()
 
void Tick () override
 
- Public Member Functions inherited from IGameController
 IGameController (class CGameContext *pGameServer)
 
virtual ~IGameController ()
 
virtual int OnCharacterDeath (class CCharacter *pVictim, class CPlayer *pKiller, int Weapon)
 
virtual void OnCharacterSpawn (class CCharacter *pChr)
 
virtual void HandleCharacterTiles (class CCharacter *pChr, int MapIndex)
 
virtual void SetArmorProgress (CCharacter *pCharacer, int Progress)
 
virtual bool OnEntity (int Index, int x, int y, int Layer, int Flags, bool Initial, int Number=0)
 
virtual void OnPlayerConnect (class CPlayer *pPlayer)
 
virtual void OnPlayerDisconnect (class CPlayer *pPlayer, const char *pReason)
 
virtual void OnReset ()
 
void DoWarmup (int Seconds)
 
void StartRound ()
 
void EndRound ()
 
void ChangeMap (const char *pToMap)
 
bool IsForceBalanced ()
 
virtual bool CanBeMovedOnBalance (int ClientId)
 
virtual void Tick ()
 
virtual void Snap (int SnappingClient)
 
virtual bool CanSpawn (int Team, vec2 *pOutPos, int DDTeam)
 
virtual void DoTeamChange (class CPlayer *pPlayer, int Team, bool DoChatMsg=true)
 
virtual const char * GetTeamName (int Team)
 
virtual int GetAutoTeam (int NotThisId)
 
virtual bool CanJoinTeam (int Team, int NotThisId, char *pErrorReason, int ErrorReasonSize)
 
int ClampTeam (int Team)
 
CClientMask GetMaskForPlayerWorldEvent (int Asker, int ExceptID=-1)
 
bool IsTeamPlay ()
 
CGameTeamsTeams ()
 

Additional Inherited Members

- Public Attributes inherited from IGameController
const char * m_pGameType
 
float m_CurrentRecord
 
std::shared_ptr< CScoreLoadBestTimeResultm_pLoadBestTimeResult
 
- Protected Member Functions inherited from IGameController
CGameContextGameServer () const
 
CConfigConfig ()
 
IServerServer () const
 
void DoActivityCheck ()
 
float EvaluateSpawnPos (CSpawnEval *pEval, vec2 Pos, int DDTeam)
 
void EvaluateSpawnType (CSpawnEval *pEval, int Type, int DDTeam)
 
void ResetGame ()
 
- Protected Attributes inherited from IGameController
char m_aMapWish [MAX_MAP_LENGTH]
 
int m_RoundStartTick
 
int m_GameOverTick
 
int m_SuddenDeath
 
int m_Warmup
 
int m_RoundCount
 
int m_GameFlags
 
int m_UnbalancedTick
 
bool m_ForceBalanced
 

Constructor & Destructor Documentation

◆ CGameControllerMod()

CGameControllerMod::CGameControllerMod ( class CGameContext pGameServer)

◆ ~CGameControllerMod()

CGameControllerMod::~CGameControllerMod ( )
default

Member Function Documentation

◆ Tick()

void CGameControllerMod::Tick ( )
overridevirtual

Reimplemented from IGameController.


The documentation for this class was generated from the following files: