DDraceNetwork Docs
CGameControllerDDRace Class Reference

#include <DDRace.h>

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

Public Member Functions

 CGameControllerDDRace (class CGameContext *pGameServer)
 
 ~CGameControllerDDRace ()
 
CScoreScore ()
 
void HandleCharacterTiles (class CCharacter *pChr, int MapIndex) override
 
void SetArmorProgress (CCharacter *pCharacer, int Progress) override
 
void OnPlayerConnect (class CPlayer *pPlayer) override
 
void OnPlayerDisconnect (class CPlayer *pPlayer, const char *pReason) override
 
void OnReset () override
 
void Tick () override
 
void DoTeamChange (class CPlayer *pPlayer, int Team, bool DoChatMsg=true) 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

◆ CGameControllerDDRace()

CGameControllerDDRace::CGameControllerDDRace ( class CGameContext pGameServer)

◆ ~CGameControllerDDRace()

CGameControllerDDRace::~CGameControllerDDRace ( )
default

Member Function Documentation

◆ DoTeamChange()

void CGameControllerDDRace::DoTeamChange ( class CPlayer pPlayer,
int  Team,
bool  DoChatMsg = true 
)
overridevirtual

Reimplemented from IGameController.

◆ HandleCharacterTiles()

void CGameControllerDDRace::HandleCharacterTiles ( class CCharacter pChr,
int  MapIndex 
)
overridevirtual

Reimplemented from IGameController.

◆ OnPlayerConnect()

void CGameControllerDDRace::OnPlayerConnect ( class CPlayer pPlayer)
overridevirtual

Reimplemented from IGameController.

◆ OnPlayerDisconnect()

void CGameControllerDDRace::OnPlayerDisconnect ( class CPlayer pPlayer,
const char *  pReason 
)
overridevirtual

Reimplemented from IGameController.

◆ OnReset()

void CGameControllerDDRace::OnReset ( )
overridevirtual

Reimplemented from IGameController.

◆ Score()

CScore * CGameControllerDDRace::Score ( )

◆ SetArmorProgress()

void CGameControllerDDRace::SetArmorProgress ( CCharacter pCharacer,
int  Progress 
)
overridevirtual

Reimplemented from IGameController.

◆ Tick()

void CGameControllerDDRace::Tick ( )
overridevirtual

Reimplemented from IGameController.


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