DDraceNetwork Docs
CGameContext Class Reference

#include <gamecontext.h>

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

Classes

struct  CLog
 
struct  CMute
 
struct  CPersistentClientData
 
struct  CPersistentData
 

Public Types

enum  {
  VOTE_ENFORCE_UNKNOWN = 0 , VOTE_ENFORCE_NO , VOTE_ENFORCE_YES , VOTE_ENFORCE_NO_ADMIN ,
  VOTE_ENFORCE_YES_ADMIN , VOTE_ENFORCE_ABORT , VOTE_ENFORCE_CANCEL
}
 
enum  { FLAG_SIX = 1 << 0 , FLAG_SIXUP = 1 << 1 }
 
enum  { VOTE_TYPE_UNKNOWN = 0 , VOTE_TYPE_OPTION , VOTE_TYPE_KICK , VOTE_TYPE_SPECTATE }
 

Public Member Functions

IServerServer () const
 
IConfigManagerConfigManager () const
 
CConfigConfig ()
 
IConsoleConsole ()
 
IEngineEngine ()
 
IStorageStorage ()
 
CCollisionCollision ()
 
CTuningParamsTuning ()
 
CTuningParamsTuningList ()
 
IAntibotAntibot ()
 
CTeeHistorianTeeHistorian ()
 
bool TeeHistorianActive () const
 
 CGameContext ()
 
 CGameContext (int Reset)
 
 ~CGameContext ()
 
void Clear ()
 
CNetObj_PlayerInput GetLastPlayerInput (int ClientId) const
 
class CCharacterGetPlayerChar (int ClientId)
 
bool EmulateBug (int Bug)
 
std::vector< SSwitchers > & Switchers ()
 
void StartVote (const char *pDesc, const char *pCommand, const char *pReason, const char *pSixupDesc)
 
void EndVote ()
 
void SendVoteSet (int ClientId)
 
void SendVoteStatus (int ClientId, int Total, int Yes, int No)
 
void AbortVoteKickOnDisconnect (int ClientId)
 
void CreateAllEntities (bool Initial)
 
void DeleteTempfile ()
 
void CreateDamageInd (vec2 Pos, float AngleMod, int Amount, CClientMask Mask=CClientMask().set())
 
void CreateExplosion (vec2 Pos, int Owner, int Weapon, bool NoDamage, int ActivatedTeam, CClientMask Mask=CClientMask().set())
 
void CreateHammerHit (vec2 Pos, CClientMask Mask=CClientMask().set())
 
void CreatePlayerSpawn (vec2 Pos, CClientMask Mask=CClientMask().set())
 
void CreateDeath (vec2 Pos, int ClientId, CClientMask Mask=CClientMask().set())
 
void CreateBirthdayEffect (vec2 Pos, CClientMask Mask=CClientMask().set())
 
void CreateFinishEffect (vec2 Pos, CClientMask Mask=CClientMask().set())
 
void CreateSound (vec2 Pos, int Sound, CClientMask Mask=CClientMask().set())
 
void CreateSoundGlobal (int Sound, int Target=-1) const
 
void SnapSwitchers (int SnappingClient)
 
bool SnapLaserObject (const CSnapContext &Context, int SnapId, const vec2 &To, const vec2 &From, int StartTick, int Owner=-1, int LaserType=-1, int Subtype=-1, int SwitchNumber=-1) const
 
bool SnapPickup (const CSnapContext &Context, int SnapId, const vec2 &Pos, int Type, int SubType, int SwitchNumber) const
 
void CallVote (int ClientId, const char *pDesc, const char *pCmd, const char *pReason, const char *pChatmsg, const char *pSixupDesc=0)
 
void SendChatTarget (int To, const char *pText, int VersionFlags=FLAG_SIX|FLAG_SIXUP) const
 
void SendChatTeam (int Team, const char *pText) const
 
void SendChat (int ClientId, int Team, const char *pText, int SpamProtectionClientId=-1, int VersionFlags=FLAG_SIX|FLAG_SIXUP)
 
void SendStartWarning (int ClientId, const char *pMessage)
 
void SendEmoticon (int ClientId, int Emoticon, int TargetClientId) const
 
void SendWeaponPickup (int ClientId, int Weapon) const
 
void SendMotd (int ClientId) const
 
void SendSettings (int ClientId) const
 
void SendBroadcast (const char *pText, int ClientId, bool IsImportant=true)
 
void List (int ClientId, const char *pFilter)
 
void CheckPureTuning ()
 
void SendTuningParams (int ClientId, int Zone=0)
 
const CVoteOptionServerGetVoteOption (int Index) const
 
void ProgressVoteOptions (int ClientId)
 
void LoadMapSettings ()
 
void OnInit (const void *pPersistentData) override
 
void OnConsoleInit () override
 
void RegisterDDRaceCommands ()
 
void RegisterChatCommands ()
 
void OnMapChange (char *pNewMapName, int MapNameSize) override
 
void OnShutdown (void *pPersistentData) override
 
void OnTick () override
 
void OnPreSnap () override
 
void OnSnap (int ClientId) override
 
void OnPostSnap () override
 
void UpdatePlayerMaps ()
 
void * PreProcessMsg (int *pMsgId, CUnpacker *pUnpacker, int ClientId)
 
void CensorMessage (char *pCensoredMessage, const char *pMessage, int Size)
 
void OnMessage (int MsgId, CUnpacker *pUnpacker, int ClientId) override
 
void OnSayNetMessage (const CNetMsg_Cl_Say *pMsg, int ClientId, const CUnpacker *pUnpacker)
 
void OnCallVoteNetMessage (const CNetMsg_Cl_CallVote *pMsg, int ClientId)
 
void OnVoteNetMessage (const CNetMsg_Cl_Vote *pMsg, int ClientId)
 
void OnSetTeamNetMessage (const CNetMsg_Cl_SetTeam *pMsg, int ClientId)
 
void OnIsDDNetLegacyNetMessage (const CNetMsg_Cl_IsDDNetLegacy *pMsg, int ClientId, CUnpacker *pUnpacker)
 
void OnShowOthersLegacyNetMessage (const CNetMsg_Cl_ShowOthersLegacy *pMsg, int ClientId)
 
void OnShowOthersNetMessage (const CNetMsg_Cl_ShowOthers *pMsg, int ClientId)
 
void OnShowDistanceNetMessage (const CNetMsg_Cl_ShowDistance *pMsg, int ClientId)
 
void OnSetSpectatorModeNetMessage (const CNetMsg_Cl_SetSpectatorMode *pMsg, int ClientId)
 
void OnChangeInfoNetMessage (const CNetMsg_Cl_ChangeInfo *pMsg, int ClientId)
 
void OnEmoticonNetMessage (const CNetMsg_Cl_Emoticon *pMsg, int ClientId)
 
void OnKillNetMessage (const CNetMsg_Cl_Kill *pMsg, int ClientId)
 
void OnStartInfoNetMessage (const CNetMsg_Cl_StartInfo *pMsg, int ClientId)
 
bool OnClientDataPersist (int ClientId, void *pData) override
 
void OnClientConnected (int ClientId, void *pData) override
 
void OnClientEnter (int ClientId) override
 
void OnClientDrop (int ClientId, const char *pReason) override
 
void OnClientPrepareInput (int ClientId, void *pInput) override
 
void OnClientDirectInput (int ClientId, void *pInput) override
 
void OnClientPredictedInput (int ClientId, void *pInput) override
 
void OnClientPredictedEarlyInput (int ClientId, void *pInput) override
 
void TeehistorianRecordAntibot (const void *pData, int DataSize) override
 
void TeehistorianRecordPlayerJoin (int ClientId, bool Sixup) override
 
void TeehistorianRecordPlayerDrop (int ClientId, const char *pReason) override
 
void TeehistorianRecordPlayerRejoin (int ClientId) override
 
void TeehistorianRecordPlayerName (int ClientId, const char *pName) override
 
void TeehistorianRecordPlayerFinish (int ClientId, int TimeTicks) override
 
void TeehistorianRecordTeamFinish (int TeamId, int TimeTicks) override
 
bool IsClientReady (int ClientId) const override
 
bool IsClientPlayer (int ClientId) const override
 
int PersistentDataSize () const override
 
int PersistentClientDataSize () const override
 
CUuid GameUuid () const override
 
const char * GameType () const override
 
const char * Version () const override
 
const char * NetVersion () const override
 
void OnPreTickTeehistorian () override
 
bool OnClientDDNetVersionKnown (int ClientId)
 
void FillAntibot (CAntibotRoundData *pData) override
 
bool ProcessSpamProtection (int ClientId, bool RespectChatInitialDelay=true)
 
int GetDDRaceTeam (int ClientId) const
 
int GetClientVersion (int ClientId) const
 
CClientMask ClientsMaskExcludeClientVersionAndHigher (int Version) const
 
bool PlayerExists (int ClientId) const override
 
bool PlayerModerating () const
 
void ForceVote (int EnforcerId, bool Success)
 
bool RateLimitPlayerVote (int ClientId)
 
bool RateLimitPlayerMapVote (int ClientId) const
 
void OnUpdatePlayerServerInfo (CJsonStringWriter *pJSonWriter, int Id) override
 
void ReadCensorList ()
 
CLayersLayers ()
 
CScoreScore ()
 
bool IsOptionVote () const
 
bool IsKickVote () const
 
bool IsSpecVote () const
 
void SendRecord (int ClientId)
 
void OnSetAuthed (int ClientId, int Level) override
 
void ResetTuning ()
 
virtual void OnInit (const void *pPersistentData)=0
 
virtual void OnConsoleInit ()=0
 
virtual void OnMapChange (char *pNewMapName, int MapNameSize)=0
 
virtual void OnShutdown (void *pPersistentData)=0
 
virtual void OnTick ()=0
 
virtual void OnPreSnap ()=0
 
virtual void OnSnap (int ClientId)=0
 
virtual void OnPostSnap ()=0
 
virtual void OnMessage (int MsgId, CUnpacker *pUnpacker, int ClientId)=0
 
virtual bool OnClientDataPersist (int ClientId, void *pData)=0
 
virtual void OnClientConnected (int ClientId, void *pPersistentData)=0
 
virtual void OnClientEnter (int ClientId)=0
 
virtual void OnClientDrop (int ClientId, const char *pReason)=0
 
virtual void OnClientPrepareInput (int ClientId, void *pInput)=0
 
virtual void OnClientDirectInput (int ClientId, void *pInput)=0
 
virtual void OnClientPredictedInput (int ClientId, void *pInput)=0
 
virtual void OnClientPredictedEarlyInput (int ClientId, void *pInput)=0
 
virtual bool IsClientReady (int ClientId) const =0
 
virtual bool IsClientPlayer (int ClientId) const =0
 
virtual int PersistentDataSize () const =0
 
virtual int PersistentClientDataSize () const =0
 
virtual CUuid GameUuid () const =0
 
virtual const char * GameType () const =0
 
virtual const char * Version () const =0
 
virtual const char * NetVersion () const =0
 
virtual void OnPreTickTeehistorian ()=0
 
virtual void OnSetAuthed (int ClientId, int Level)=0
 
virtual bool PlayerExists (int ClientId) const =0
 
virtual void TeehistorianRecordAntibot (const void *pData, int DataSize)=0
 
virtual void TeehistorianRecordPlayerJoin (int ClientId, bool Sixup)=0
 
virtual void TeehistorianRecordPlayerDrop (int ClientId, const char *pReason)=0
 
virtual void TeehistorianRecordPlayerRejoin (int ClientId)=0
 
virtual void TeehistorianRecordPlayerName (int ClientId, const char *pName)=0
 
virtual void TeehistorianRecordPlayerFinish (int ClientId, int TimeTicks)=0
 
virtual void TeehistorianRecordTeamFinish (int TeamId, int TimeTicks)=0
 
virtual void FillAntibot (CAntibotRoundData *pData)=0
 
virtual void OnUpdatePlayerServerInfo (CJsonStringWriter *pJSonWriter, int Id)=0
 
- Public Member Functions inherited from IInterface
 IInterface ()
 
virtual void Shutdown ()
 
virtual ~IInterface ()
 

Public Attributes

CEventHandler m_Events
 
CPlayerm_apPlayers [MAX_CLIENTS]
 
CNetObj_PlayerInput m_aLastPlayerInput [MAX_CLIENTS]
 
bool m_aPlayerHasInput [MAX_CLIENTS]
 
CSaveTeamm_apSavedTeams [MAX_CLIENTS]
 
CSaveTeem_apSavedTees [MAX_CLIENTS]
 
CSaveTeem_apSavedTeleTees [MAX_CLIENTS]
 
int m_aTeamMapping [MAX_CLIENTS]
 
IGameControllerm_pController
 
CGameWorld m_World
 
int m_VoteCreator
 
int m_VoteType
 
int64_t m_VoteCloseTime
 
bool m_VoteUpdate
 
int m_VotePos
 
char m_aVoteDescription [VOTE_DESC_LENGTH]
 
char m_aSixupVoteDescription [VOTE_DESC_LENGTH]
 
char m_aVoteCommand [VOTE_CMD_LENGTH]
 
char m_aVoteReason [VOTE_REASON_LENGTH]
 
int m_NumVoteOptions
 
int m_VoteEnforce
 
char m_aaZoneEnterMsg [NUM_TUNEZONES][256]
 
char m_aaZoneLeaveMsg [NUM_TUNEZONES][256]
 
char m_aDeleteTempfile [128]
 
CHeapm_pVoteOptionHeap
 
CVoteOptionServerm_pVoteOptionFirst
 
CVoteOptionServerm_pVoteOptionLast
 
int64_t m_NonEmptySince
 
int64_t m_LastMapVote
 
std::shared_ptr< CScoreRandomMapResultm_SqlRandomMapResult
 
int m_VoteVictim
 

Private Types

enum  { MAX_MUTES = 128 , MAX_VOTE_MUTES = 128 }
 
enum  { MAX_LOG_SECONDS = 600 , MAX_LOGS = 512 }
 

Private Member Functions

void Construct (int Resetting)
 
void Destruct (int Resetting)
 
void AddVote (const char *pDescription, const char *pCommand)
 
void ModifyWeapons (IConsole::IResult *pResult, void *pUserData, int Weapon, bool Remove)
 
void MoveCharacter (int ClientId, int X, int Y, bool Raw=false)
 
void Teleport (CCharacter *pChr, vec2 Pos)
 
CCharacterGetPracticeCharacter (IConsole::IResult *pResult)
 
bool TryMute (const NETADDR *pAddr, int Secs, const char *pReason, bool InitialChatDelay)
 
void Mute (const NETADDR *pAddr, int Secs, const char *pDisplayName, const char *pReason="", bool InitialChatDelay=false)
 
bool TryVoteMute (const NETADDR *pAddr, int Secs, const char *pReason)
 
void VoteMute (const NETADDR *pAddr, int Secs, const char *pReason, const char *pDisplayName, int AuthedId)
 
bool VoteUnmute (const NETADDR *pAddr, const char *pDisplayName, int AuthedId)
 
void Whisper (int ClientId, char *pStr)
 
void WhisperId (int ClientId, int VictimId, const char *pMessage)
 
void Converse (int ClientId, char *pStr)
 
bool IsVersionBanned (int Version)
 
void UnlockTeam (int ClientId, int Team) const
 
void AttemptJoinTeam (int ClientId, int Team)
 
void LogEvent (const char *Description, int ClientId)
 

Static Private Member Functions

static void CommandCallback (int ClientId, int FlagMask, const char *pCmd, IConsole::IResult *pResult, void *pUser)
 
static void TeeHistorianWrite (const void *pData, int DataSize, void *pUser)
 
static void ConTuneParam (IConsole::IResult *pResult, void *pUserData)
 
static void ConToggleTuneParam (IConsole::IResult *pResult, void *pUserData)
 
static void ConTuneReset (IConsole::IResult *pResult, void *pUserData)
 
static void ConTunes (IConsole::IResult *pResult, void *pUserData)
 
static void ConTuneZone (IConsole::IResult *pResult, void *pUserData)
 
static void ConTuneDumpZone (IConsole::IResult *pResult, void *pUserData)
 
static void ConTuneResetZone (IConsole::IResult *pResult, void *pUserData)
 
static void ConTuneSetZoneMsgEnter (IConsole::IResult *pResult, void *pUserData)
 
static void ConTuneSetZoneMsgLeave (IConsole::IResult *pResult, void *pUserData)
 
static void ConMapbug (IConsole::IResult *pResult, void *pUserData)
 
static void ConSwitchOpen (IConsole::IResult *pResult, void *pUserData)
 
static void ConPause (IConsole::IResult *pResult, void *pUserData)
 
static void ConChangeMap (IConsole::IResult *pResult, void *pUserData)
 
static void ConRandomMap (IConsole::IResult *pResult, void *pUserData)
 
static void ConRandomUnfinishedMap (IConsole::IResult *pResult, void *pUserData)
 
static void ConRestart (IConsole::IResult *pResult, void *pUserData)
 
static void ConBroadcast (IConsole::IResult *pResult, void *pUserData)
 
static void ConSay (IConsole::IResult *pResult, void *pUserData)
 
static void ConSetTeam (IConsole::IResult *pResult, void *pUserData)
 
static void ConSetTeamAll (IConsole::IResult *pResult, void *pUserData)
 
static void ConHotReload (IConsole::IResult *pResult, void *pUserData)
 
static void ConAddVote (IConsole::IResult *pResult, void *pUserData)
 
static void ConRemoveVote (IConsole::IResult *pResult, void *pUserData)
 
static void ConForceVote (IConsole::IResult *pResult, void *pUserData)
 
static void ConClearVotes (IConsole::IResult *pResult, void *pUserData)
 
static void ConAddMapVotes (IConsole::IResult *pResult, void *pUserData)
 
static void ConVote (IConsole::IResult *pResult, void *pUserData)
 
static void ConVotes (IConsole::IResult *pResult, void *pUserData)
 
static void ConVoteNo (IConsole::IResult *pResult, void *pUserData)
 
static void ConDrySave (IConsole::IResult *pResult, void *pUserData)
 
static void ConDumpAntibot (IConsole::IResult *pResult, void *pUserData)
 
static void ConAntibot (IConsole::IResult *pResult, void *pUserData)
 
static void ConchainSpecialMotdupdate (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static void ConchainSettingUpdate (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static void ConDumpLog (IConsole::IResult *pResult, void *pUserData)
 
static int MapScan (const char *pName, int IsDir, int DirType, void *pUserData)
 
static void ConKillPlayer (IConsole::IResult *pResult, void *pUserData)
 
static void ConNinja (IConsole::IResult *pResult, void *pUserData)
 
static void ConUnNinja (IConsole::IResult *pResult, void *pUserData)
 
static void ConEndlessHook (IConsole::IResult *pResult, void *pUserData)
 
static void ConUnEndlessHook (IConsole::IResult *pResult, void *pUserData)
 
static void ConSolo (IConsole::IResult *pResult, void *pUserData)
 
static void ConUnSolo (IConsole::IResult *pResult, void *pUserData)
 
static void ConFreeze (IConsole::IResult *pResult, void *pUserData)
 
static void ConUnFreeze (IConsole::IResult *pResult, void *pUserData)
 
static void ConDeep (IConsole::IResult *pResult, void *pUserData)
 
static void ConUnDeep (IConsole::IResult *pResult, void *pUserData)
 
static void ConLiveFreeze (IConsole::IResult *pResult, void *pUserData)
 
static void ConUnLiveFreeze (IConsole::IResult *pResult, void *pUserData)
 
static void ConUnSuper (IConsole::IResult *pResult, void *pUserData)
 
static void ConSuper (IConsole::IResult *pResult, void *pUserData)
 
static void ConToggleInvincible (IConsole::IResult *pResult, void *pUserData)
 
static void ConShotgun (IConsole::IResult *pResult, void *pUserData)
 
static void ConGrenade (IConsole::IResult *pResult, void *pUserData)
 
static void ConLaser (IConsole::IResult *pResult, void *pUserData)
 
static void ConJetpack (IConsole::IResult *pResult, void *pUserData)
 
static void ConEndlessJump (IConsole::IResult *pResult, void *pUserData)
 
static void ConSetJumps (IConsole::IResult *pResult, void *pUserData)
 
static void ConWeapons (IConsole::IResult *pResult, void *pUserData)
 
static void ConUnShotgun (IConsole::IResult *pResult, void *pUserData)
 
static void ConUnGrenade (IConsole::IResult *pResult, void *pUserData)
 
static void ConUnLaser (IConsole::IResult *pResult, void *pUserData)
 
static void ConUnJetpack (IConsole::IResult *pResult, void *pUserData)
 
static void ConUnEndlessJump (IConsole::IResult *pResult, void *pUserData)
 
static void ConUnWeapons (IConsole::IResult *pResult, void *pUserData)
 
static void ConAddWeapon (IConsole::IResult *pResult, void *pUserData)
 
static void ConRemoveWeapon (IConsole::IResult *pResult, void *pUserData)
 
static void ConGoLeft (IConsole::IResult *pResult, void *pUserData)
 
static void ConGoRight (IConsole::IResult *pResult, void *pUserData)
 
static void ConGoUp (IConsole::IResult *pResult, void *pUserData)
 
static void ConGoDown (IConsole::IResult *pResult, void *pUserData)
 
static void ConMove (IConsole::IResult *pResult, void *pUserData)
 
static void ConMoveRaw (IConsole::IResult *pResult, void *pUserData)
 
static void ConToTeleporter (IConsole::IResult *pResult, void *pUserData)
 
static void ConToCheckTeleporter (IConsole::IResult *pResult, void *pUserData)
 
static void ConTeleport (IConsole::IResult *pResult, void *pUserData)
 
static void ConCredits (IConsole::IResult *pResult, void *pUserData)
 
static void ConInfo (IConsole::IResult *pResult, void *pUserData)
 
static void ConHelp (IConsole::IResult *pResult, void *pUserData)
 
static void ConSettings (IConsole::IResult *pResult, void *pUserData)
 
static void ConRules (IConsole::IResult *pResult, void *pUserData)
 
static void ConKill (IConsole::IResult *pResult, void *pUserData)
 
static void ConTogglePause (IConsole::IResult *pResult, void *pUserData)
 
static void ConTogglePauseVoted (IConsole::IResult *pResult, void *pUserData)
 
static void ConToggleSpec (IConsole::IResult *pResult, void *pUserData)
 
static void ConToggleSpecVoted (IConsole::IResult *pResult, void *pUserData)
 
static void ConForcePause (IConsole::IResult *pResult, void *pUserData)
 
static void ConTeamTop5 (IConsole::IResult *pResult, void *pUserData)
 
static void ConTop (IConsole::IResult *pResult, void *pUserData)
 
static void ConTimes (IConsole::IResult *pResult, void *pUserData)
 
static void ConPoints (IConsole::IResult *pResult, void *pUserData)
 
static void ConTopPoints (IConsole::IResult *pResult, void *pUserData)
 
static void ConTimeCP (IConsole::IResult *pResult, void *pUserData)
 
static void ConDND (IConsole::IResult *pResult, void *pUserData)
 
static void ConWhispers (IConsole::IResult *pResult, void *pUserData)
 
static void ConMapInfo (IConsole::IResult *pResult, void *pUserData)
 
static void ConTimeout (IConsole::IResult *pResult, void *pUserData)
 
static void ConPractice (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeCmdList (IConsole::IResult *pResult, void *pUserData)
 
static void ConSwap (IConsole::IResult *pResult, void *pUserData)
 
static void ConSave (IConsole::IResult *pResult, void *pUserData)
 
static void ConLoad (IConsole::IResult *pResult, void *pUserData)
 
static void ConMap (IConsole::IResult *pResult, void *pUserData)
 
static void ConTeamRank (IConsole::IResult *pResult, void *pUserData)
 
static void ConRank (IConsole::IResult *pResult, void *pUserData)
 
static void ConTeam (IConsole::IResult *pResult, void *pUserData)
 
static void ConLock (IConsole::IResult *pResult, void *pUserData)
 
static void ConUnlock (IConsole::IResult *pResult, void *pUserData)
 
static void ConInvite (IConsole::IResult *pResult, void *pUserData)
 
static void ConJoin (IConsole::IResult *pResult, void *pUserData)
 
static void ConTeam0Mode (IConsole::IResult *pResult, void *pUserData)
 
static void ConMe (IConsole::IResult *pResult, void *pUserData)
 
static void ConWhisper (IConsole::IResult *pResult, void *pUserData)
 
static void ConConverse (IConsole::IResult *pResult, void *pUserData)
 
static void ConSetEyeEmote (IConsole::IResult *pResult, void *pUserData)
 
static void ConEyeEmote (IConsole::IResult *pResult, void *pUserData)
 
static void ConShowOthers (IConsole::IResult *pResult, void *pUserData)
 
static void ConShowAll (IConsole::IResult *pResult, void *pUserData)
 
static void ConSpecTeam (IConsole::IResult *pResult, void *pUserData)
 
static void ConNinjaJetpack (IConsole::IResult *pResult, void *pUserData)
 
static void ConSayTime (IConsole::IResult *pResult, void *pUserData)
 
static void ConSayTimeAll (IConsole::IResult *pResult, void *pUserData)
 
static void ConTime (IConsole::IResult *pResult, void *pUserData)
 
static void ConSetTimerType (IConsole::IResult *pResult, void *pUserData)
 
static void ConRescue (IConsole::IResult *pResult, void *pUserData)
 
static void ConRescueMode (IConsole::IResult *pResult, void *pUserData)
 
static void ConTeleTo (IConsole::IResult *pResult, void *pUserData)
 
static void ConTeleXY (IConsole::IResult *pResult, void *pUserData)
 
static void ConTeleCursor (IConsole::IResult *pResult, void *pUserData)
 
static void ConLastTele (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeToTeleporter (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeToCheckTeleporter (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeUnSolo (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeSolo (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeUnDeep (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeDeep (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeUnLiveFreeze (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeLiveFreeze (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeShotgun (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeGrenade (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeLaser (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeJetpack (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeEndlessJump (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeSetJumps (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeWeapons (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeUnShotgun (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeUnGrenade (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeUnLaser (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeUnJetpack (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeUnEndlessJump (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeUnWeapons (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeNinja (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeUnNinja (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeEndlessHook (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeUnEndlessHook (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeToggleInvincible (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeAddWeapon (IConsole::IResult *pResult, void *pUserData)
 
static void ConPracticeRemoveWeapon (IConsole::IResult *pResult, void *pUserData)
 
static void ConProtectedKill (IConsole::IResult *pResult, void *pUserData)
 
static void ConVoteMute (IConsole::IResult *pResult, void *pUserData)
 
static void ConVoteUnmute (IConsole::IResult *pResult, void *pUserData)
 
static void ConVoteMutes (IConsole::IResult *pResult, void *pUserData)
 
static void ConMute (IConsole::IResult *pResult, void *pUserData)
 
static void ConMuteId (IConsole::IResult *pResult, void *pUserData)
 
static void ConMuteIp (IConsole::IResult *pResult, void *pUserData)
 
static void ConUnmute (IConsole::IResult *pResult, void *pUserData)
 
static void ConUnmuteId (IConsole::IResult *pResult, void *pUserData)
 
static void ConMutes (IConsole::IResult *pResult, void *pUserData)
 
static void ConModerate (IConsole::IResult *pResult, void *pUserData)
 
static void ConList (IConsole::IResult *pResult, void *pUserData)
 
static void ConSetDDRTeam (IConsole::IResult *pResult, void *pUserData)
 
static void ConUninvite (IConsole::IResult *pResult, void *pUserData)
 
static void ConFreezeHammer (IConsole::IResult *pResult, void *pUserData)
 
static void ConUnFreezeHammer (IConsole::IResult *pResult, void *pUserData)
 
static void ConReloadCensorlist (IConsole::IResult *pResult, void *pUserData)
 
static void ConReloadAnnouncement (IConsole::IResult *pResult, void *pUserData)
 

Private Attributes

IServerm_pServer
 
IConfigManagerm_pConfigManager
 
CConfigm_pConfig
 
IConsolem_pConsole
 
IEnginem_pEngine
 
IStoragem_pStorage
 
IAntibotm_pAntibot
 
CLayers m_Layers
 
CCollision m_Collision
 
protocol7::CNetObjHandler m_NetObjHandler7
 
CNetObjHandler m_NetObjHandler
 
CTuningParams m_Tuning
 
CTuningParams m_aTuningList [NUM_TUNEZONES]
 
std::vector< std::string > m_vCensorlist
 
bool m_TeeHistorianActive
 
CTeeHistorian m_TeeHistorian
 
ASYNCIOm_pTeeHistorianFile
 
CUuid m_GameUuid
 
CMapBugs m_MapBugs
 
CPrng m_Prng
 
bool m_Resetting
 
uint32_t NextUniqueClientId = 1
 
bool m_VoteWillPass
 
CScorem_pScore
 
CMute m_aMutes [MAX_MUTES]
 
int m_NumMutes
 
CMute m_aVoteMutes [MAX_VOTE_MUTES]
 
int m_NumVoteMutes
 
CLog m_aLogs [MAX_LOGS]
 
int m_LatestLog
 

Additional Inherited Members

- Static Public Member Functions inherited from IGameServer
static const char * InterfaceName ()
 
- Protected Member Functions inherited from IInterface
IKernelKernel ()
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
VOTE_ENFORCE_UNKNOWN 
VOTE_ENFORCE_NO 
VOTE_ENFORCE_YES 
VOTE_ENFORCE_NO_ADMIN 
VOTE_ENFORCE_YES_ADMIN 
VOTE_ENFORCE_ABORT 
VOTE_ENFORCE_CANCEL 

◆ anonymous enum

anonymous enum
Enumerator
FLAG_SIX 
FLAG_SIXUP 

◆ anonymous enum

anonymous enum
private
Enumerator
MAX_MUTES 
MAX_VOTE_MUTES 

◆ anonymous enum

anonymous enum
private
Enumerator
MAX_LOG_SECONDS 
MAX_LOGS 

◆ anonymous enum

anonymous enum
Enumerator
VOTE_TYPE_UNKNOWN 
VOTE_TYPE_OPTION 
VOTE_TYPE_KICK 
VOTE_TYPE_SPECTATE 

Constructor & Destructor Documentation

◆ CGameContext() [1/2]

CGameContext::CGameContext ( )

◆ CGameContext() [2/2]

CGameContext::CGameContext ( int  Reset)

◆ ~CGameContext()

CGameContext::~CGameContext ( )

Member Function Documentation

◆ AbortVoteKickOnDisconnect()

void CGameContext::AbortVoteKickOnDisconnect ( int  ClientId)

◆ AddVote()

void CGameContext::AddVote ( const char *  pDescription,
const char *  pCommand 
)
private

◆ Antibot()

IAntibot * CGameContext::Antibot ( )
inline

◆ AttemptJoinTeam()

void CGameContext::AttemptJoinTeam ( int  ClientId,
int  Team 
)
private

◆ CallVote()

void CGameContext::CallVote ( int  ClientId,
const char *  pDesc,
const char *  pCmd,
const char *  pReason,
const char *  pChatmsg,
const char *  pSixupDesc = 0 
)

◆ CensorMessage()

void CGameContext::CensorMessage ( char *  pCensoredMessage,
const char *  pMessage,
int  Size 
)

◆ CheckPureTuning()

void CGameContext::CheckPureTuning ( )

◆ Clear()

void CGameContext::Clear ( )

◆ ClientsMaskExcludeClientVersionAndHigher()

CClientMask CGameContext::ClientsMaskExcludeClientVersionAndHigher ( int  Version) const

◆ Collision()

CCollision * CGameContext::Collision ( )
inline

◆ CommandCallback()

void CGameContext::CommandCallback ( int  ClientId,
int  FlagMask,
const char *  pCmd,
IConsole::IResult pResult,
void *  pUser 
)
staticprivate

◆ ConAddMapVotes()

void CGameContext::ConAddMapVotes ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConAddVote()

void CGameContext::ConAddVote ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConAddWeapon()

void CGameContext::ConAddWeapon ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConAntibot()

void CGameContext::ConAntibot ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConBroadcast()

void CGameContext::ConBroadcast ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConchainSettingUpdate()

void CGameContext::ConchainSettingUpdate ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprivate

◆ ConchainSpecialMotdupdate()

void CGameContext::ConchainSpecialMotdupdate ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprivate

◆ ConChangeMap()

void CGameContext::ConChangeMap ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConClearVotes()

void CGameContext::ConClearVotes ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConConverse()

void CGameContext::ConConverse ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConCredits()

void CGameContext::ConCredits ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConDeep()

void CGameContext::ConDeep ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConDND()

void CGameContext::ConDND ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConDrySave()

void CGameContext::ConDrySave ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConDumpAntibot()

void CGameContext::ConDumpAntibot ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConDumpLog()

void CGameContext::ConDumpLog ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConEndlessHook()

void CGameContext::ConEndlessHook ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConEndlessJump()

void CGameContext::ConEndlessJump ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConEyeEmote()

void CGameContext::ConEyeEmote ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ Config()

CConfig * CGameContext::Config ( )
inline

◆ ConfigManager()

IConfigManager * CGameContext::ConfigManager ( ) const
inline

◆ ConForcePause()

void CGameContext::ConForcePause ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConForceVote()

void CGameContext::ConForceVote ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConFreeze()

void CGameContext::ConFreeze ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConFreezeHammer()

void CGameContext::ConFreezeHammer ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConGoDown()

void CGameContext::ConGoDown ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConGoLeft()

void CGameContext::ConGoLeft ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConGoRight()

void CGameContext::ConGoRight ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConGoUp()

void CGameContext::ConGoUp ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConGrenade()

void CGameContext::ConGrenade ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConHelp()

void CGameContext::ConHelp ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConHotReload()

void CGameContext::ConHotReload ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConInfo()

void CGameContext::ConInfo ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConInvite()

void CGameContext::ConInvite ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConJetpack()

void CGameContext::ConJetpack ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConJoin()

void CGameContext::ConJoin ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConKill()

void CGameContext::ConKill ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConKillPlayer()

void CGameContext::ConKillPlayer ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConLaser()

void CGameContext::ConLaser ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConLastTele()

void CGameContext::ConLastTele ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConList()

void CGameContext::ConList ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConLiveFreeze()

void CGameContext::ConLiveFreeze ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConLoad()

void CGameContext::ConLoad ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConLock()

void CGameContext::ConLock ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConMap()

void CGameContext::ConMap ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConMapbug()

void CGameContext::ConMapbug ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConMapInfo()

void CGameContext::ConMapInfo ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConMe()

void CGameContext::ConMe ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConModerate()

void CGameContext::ConModerate ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConMove()

void CGameContext::ConMove ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConMoveRaw()

void CGameContext::ConMoveRaw ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConMute()

void CGameContext::ConMute ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConMuteId()

void CGameContext::ConMuteId ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConMuteIp()

void CGameContext::ConMuteIp ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConMutes()

void CGameContext::ConMutes ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConNinja()

void CGameContext::ConNinja ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConNinjaJetpack()

void CGameContext::ConNinjaJetpack ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPause()

void CGameContext::ConPause ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPoints()

void CGameContext::ConPoints ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPractice()

void CGameContext::ConPractice ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeAddWeapon()

void CGameContext::ConPracticeAddWeapon ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeCmdList()

void CGameContext::ConPracticeCmdList ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeDeep()

void CGameContext::ConPracticeDeep ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeEndlessHook()

void CGameContext::ConPracticeEndlessHook ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeEndlessJump()

void CGameContext::ConPracticeEndlessJump ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeGrenade()

void CGameContext::ConPracticeGrenade ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeJetpack()

void CGameContext::ConPracticeJetpack ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeLaser()

void CGameContext::ConPracticeLaser ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeLiveFreeze()

void CGameContext::ConPracticeLiveFreeze ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeNinja()

void CGameContext::ConPracticeNinja ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeRemoveWeapon()

void CGameContext::ConPracticeRemoveWeapon ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeSetJumps()

void CGameContext::ConPracticeSetJumps ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeShotgun()

void CGameContext::ConPracticeShotgun ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeSolo()

void CGameContext::ConPracticeSolo ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeToCheckTeleporter()

void CGameContext::ConPracticeToCheckTeleporter ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeToggleInvincible()

void CGameContext::ConPracticeToggleInvincible ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeToTeleporter()

void CGameContext::ConPracticeToTeleporter ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeUnDeep()

void CGameContext::ConPracticeUnDeep ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeUnEndlessHook()

void CGameContext::ConPracticeUnEndlessHook ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeUnEndlessJump()

void CGameContext::ConPracticeUnEndlessJump ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeUnGrenade()

void CGameContext::ConPracticeUnGrenade ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeUnJetpack()

void CGameContext::ConPracticeUnJetpack ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeUnLaser()

void CGameContext::ConPracticeUnLaser ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeUnLiveFreeze()

void CGameContext::ConPracticeUnLiveFreeze ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeUnNinja()

void CGameContext::ConPracticeUnNinja ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeUnShotgun()

void CGameContext::ConPracticeUnShotgun ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeUnSolo()

void CGameContext::ConPracticeUnSolo ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeUnWeapons()

void CGameContext::ConPracticeUnWeapons ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConPracticeWeapons()

void CGameContext::ConPracticeWeapons ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConProtectedKill()

void CGameContext::ConProtectedKill ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConRandomMap()

void CGameContext::ConRandomMap ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConRandomUnfinishedMap()

void CGameContext::ConRandomUnfinishedMap ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConRank()

void CGameContext::ConRank ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConReloadAnnouncement()

void CGameContext::ConReloadAnnouncement ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConReloadCensorlist()

void CGameContext::ConReloadCensorlist ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConRemoveVote()

void CGameContext::ConRemoveVote ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConRemoveWeapon()

void CGameContext::ConRemoveWeapon ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConRescue()

void CGameContext::ConRescue ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConRescueMode()

void CGameContext::ConRescueMode ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConRestart()

void CGameContext::ConRestart ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConRules()

void CGameContext::ConRules ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConSave()

void CGameContext::ConSave ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConSay()

void CGameContext::ConSay ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConSayTime()

void CGameContext::ConSayTime ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConSayTimeAll()

void CGameContext::ConSayTimeAll ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConSetDDRTeam()

void CGameContext::ConSetDDRTeam ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConSetEyeEmote()

void CGameContext::ConSetEyeEmote ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConSetJumps()

void CGameContext::ConSetJumps ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConSetTeam()

void CGameContext::ConSetTeam ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConSetTeamAll()

void CGameContext::ConSetTeamAll ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConSetTimerType()

void CGameContext::ConSetTimerType ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConSettings()

void CGameContext::ConSettings ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConShotgun()

void CGameContext::ConShotgun ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConShowAll()

void CGameContext::ConShowAll ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConShowOthers()

void CGameContext::ConShowOthers ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ Console()

IConsole * CGameContext::Console ( )
inline

◆ ConSolo()

void CGameContext::ConSolo ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConSpecTeam()

void CGameContext::ConSpecTeam ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ Construct()

void CGameContext::Construct ( int  Resetting)
private

◆ ConSuper()

void CGameContext::ConSuper ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConSwap()

void CGameContext::ConSwap ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConSwitchOpen()

void CGameContext::ConSwitchOpen ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTeam()

void CGameContext::ConTeam ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTeam0Mode()

void CGameContext::ConTeam0Mode ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTeamRank()

void CGameContext::ConTeamRank ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTeamTop5()

void CGameContext::ConTeamTop5 ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTeleCursor()

void CGameContext::ConTeleCursor ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTeleport()

void CGameContext::ConTeleport ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTeleTo()

void CGameContext::ConTeleTo ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTeleXY()

void CGameContext::ConTeleXY ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTime()

void CGameContext::ConTime ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTimeCP()

void CGameContext::ConTimeCP ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTimeout()

void CGameContext::ConTimeout ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTimes()

void CGameContext::ConTimes ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConToCheckTeleporter()

void CGameContext::ConToCheckTeleporter ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConToggleInvincible()

void CGameContext::ConToggleInvincible ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTogglePause()

void CGameContext::ConTogglePause ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTogglePauseVoted()

void CGameContext::ConTogglePauseVoted ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConToggleSpec()

void CGameContext::ConToggleSpec ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConToggleSpecVoted()

void CGameContext::ConToggleSpecVoted ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConToggleTuneParam()

void CGameContext::ConToggleTuneParam ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTop()

void CGameContext::ConTop ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTopPoints()

void CGameContext::ConTopPoints ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConToTeleporter()

void CGameContext::ConToTeleporter ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTuneDumpZone()

void CGameContext::ConTuneDumpZone ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTuneParam()

void CGameContext::ConTuneParam ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTuneReset()

void CGameContext::ConTuneReset ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTuneResetZone()

void CGameContext::ConTuneResetZone ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTunes()

void CGameContext::ConTunes ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTuneSetZoneMsgEnter()

void CGameContext::ConTuneSetZoneMsgEnter ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTuneSetZoneMsgLeave()

void CGameContext::ConTuneSetZoneMsgLeave ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConTuneZone()

void CGameContext::ConTuneZone ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConUnDeep()

void CGameContext::ConUnDeep ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConUnEndlessHook()

void CGameContext::ConUnEndlessHook ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConUnEndlessJump()

void CGameContext::ConUnEndlessJump ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConUnFreeze()

void CGameContext::ConUnFreeze ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConUnFreezeHammer()

void CGameContext::ConUnFreezeHammer ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConUnGrenade()

void CGameContext::ConUnGrenade ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConUninvite()

void CGameContext::ConUninvite ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConUnJetpack()

void CGameContext::ConUnJetpack ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConUnLaser()

void CGameContext::ConUnLaser ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConUnLiveFreeze()

void CGameContext::ConUnLiveFreeze ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConUnlock()

void CGameContext::ConUnlock ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConUnmute()

void CGameContext::ConUnmute ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConUnmuteId()

void CGameContext::ConUnmuteId ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConUnNinja()

void CGameContext::ConUnNinja ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConUnShotgun()

void CGameContext::ConUnShotgun ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConUnSolo()

void CGameContext::ConUnSolo ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConUnSuper()

void CGameContext::ConUnSuper ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConUnWeapons()

void CGameContext::ConUnWeapons ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ Converse()

void CGameContext::Converse ( int  ClientId,
char *  pStr 
)
private

◆ ConVote()

void CGameContext::ConVote ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConVoteMute()

void CGameContext::ConVoteMute ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConVoteMutes()

void CGameContext::ConVoteMutes ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConVoteNo()

void CGameContext::ConVoteNo ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConVotes()

void CGameContext::ConVotes ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConVoteUnmute()

void CGameContext::ConVoteUnmute ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConWeapons()

void CGameContext::ConWeapons ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConWhisper()

void CGameContext::ConWhisper ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConWhispers()

void CGameContext::ConWhispers ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ CreateAllEntities()

void CGameContext::CreateAllEntities ( bool  Initial)

◆ CreateBirthdayEffect()

void CGameContext::CreateBirthdayEffect ( vec2  Pos,
CClientMask  Mask = CClientMask().set() 
)

◆ CreateDamageInd()

void CGameContext::CreateDamageInd ( vec2  Pos,
float  AngleMod,
int  Amount,
CClientMask  Mask = CClientMask().set() 
)

◆ CreateDeath()

void CGameContext::CreateDeath ( vec2  Pos,
int  ClientId,
CClientMask  Mask = CClientMask().set() 
)

◆ CreateExplosion()

void CGameContext::CreateExplosion ( vec2  Pos,
int  Owner,
int  Weapon,
bool  NoDamage,
int  ActivatedTeam,
CClientMask  Mask = CClientMask().set() 
)

◆ CreateFinishEffect()

void CGameContext::CreateFinishEffect ( vec2  Pos,
CClientMask  Mask = CClientMask().set() 
)

◆ CreateHammerHit()

void CGameContext::CreateHammerHit ( vec2  Pos,
CClientMask  Mask = CClientMask().set() 
)

◆ CreatePlayerSpawn()

void CGameContext::CreatePlayerSpawn ( vec2  Pos,
CClientMask  Mask = CClientMask().set() 
)

◆ CreateSound()

void CGameContext::CreateSound ( vec2  Pos,
int  Sound,
CClientMask  Mask = CClientMask().set() 
)

◆ CreateSoundGlobal()

void CGameContext::CreateSoundGlobal ( int  Sound,
int  Target = -1 
) const

◆ DeleteTempfile()

void CGameContext::DeleteTempfile ( )

◆ Destruct()

void CGameContext::Destruct ( int  Resetting)
private

◆ EmulateBug()

bool CGameContext::EmulateBug ( int  Bug)

◆ EndVote()

void CGameContext::EndVote ( )

◆ Engine()

IEngine * CGameContext::Engine ( )
inline

◆ FillAntibot()

void CGameContext::FillAntibot ( CAntibotRoundData pData)
overridevirtual

Implements IGameServer.

◆ ForceVote()

void CGameContext::ForceVote ( int  EnforcerId,
bool  Success 
)

◆ GameType()

const char * CGameContext::GameType ( ) const
overridevirtual

Implements IGameServer.

◆ GameUuid()

CUuid CGameContext::GameUuid ( ) const
overridevirtual

Implements IGameServer.

◆ GetClientVersion()

int CGameContext::GetClientVersion ( int  ClientId) const

◆ GetDDRaceTeam()

int CGameContext::GetDDRaceTeam ( int  ClientId) const

◆ GetLastPlayerInput()

CNetObj_PlayerInput CGameContext::GetLastPlayerInput ( int  ClientId) const

◆ GetPlayerChar()

class CCharacter * CGameContext::GetPlayerChar ( int  ClientId)

◆ GetPracticeCharacter()

CCharacter * CGameContext::GetPracticeCharacter ( IConsole::IResult pResult)
private

◆ GetVoteOption()

const CVoteOptionServer * CGameContext::GetVoteOption ( int  Index) const

◆ IsClientPlayer()

bool CGameContext::IsClientPlayer ( int  ClientId) const
overridevirtual

Implements IGameServer.

◆ IsClientReady()

bool CGameContext::IsClientReady ( int  ClientId) const
overridevirtual

Implements IGameServer.

◆ IsKickVote()

bool CGameContext::IsKickVote ( ) const
inline

◆ IsOptionVote()

bool CGameContext::IsOptionVote ( ) const
inline

◆ IsSpecVote()

bool CGameContext::IsSpecVote ( ) const
inline

◆ IsVersionBanned()

bool CGameContext::IsVersionBanned ( int  Version)
private

◆ Layers()

CLayers * CGameContext::Layers ( )
inline

◆ List()

void CGameContext::List ( int  ClientId,
const char *  pFilter 
)

◆ LoadMapSettings()

void CGameContext::LoadMapSettings ( )

◆ LogEvent()

void CGameContext::LogEvent ( const char *  Description,
int  ClientId 
)
private

◆ MapScan()

int CGameContext::MapScan ( const char *  pName,
int  IsDir,
int  DirType,
void *  pUserData 
)
staticprivate

◆ ModifyWeapons()

void CGameContext::ModifyWeapons ( IConsole::IResult pResult,
void *  pUserData,
int  Weapon,
bool  Remove 
)
private

◆ MoveCharacter()

void CGameContext::MoveCharacter ( int  ClientId,
int  X,
int  Y,
bool  Raw = false 
)
private

◆ Mute()

void CGameContext::Mute ( const NETADDR pAddr,
int  Secs,
const char *  pDisplayName,
const char *  pReason = "",
bool  InitialChatDelay = false 
)
private

◆ NetVersion()

const char * CGameContext::NetVersion ( ) const
overridevirtual

Implements IGameServer.

◆ OnCallVoteNetMessage()

void CGameContext::OnCallVoteNetMessage ( const CNetMsg_Cl_CallVote pMsg,
int  ClientId 
)

◆ OnChangeInfoNetMessage()

void CGameContext::OnChangeInfoNetMessage ( const CNetMsg_Cl_ChangeInfo pMsg,
int  ClientId 
)

◆ OnClientConnected()

void CGameContext::OnClientConnected ( int  ClientId,
void *  pData 
)
overridevirtual

Implements IGameServer.

◆ OnClientDataPersist()

bool CGameContext::OnClientDataPersist ( int  ClientId,
void *  pData 
)
overridevirtual

Implements IGameServer.

◆ OnClientDDNetVersionKnown()

bool CGameContext::OnClientDDNetVersionKnown ( int  ClientId)

◆ OnClientDirectInput()

void CGameContext::OnClientDirectInput ( int  ClientId,
void *  pInput 
)
overridevirtual

Implements IGameServer.

◆ OnClientDrop()

void CGameContext::OnClientDrop ( int  ClientId,
const char *  pReason 
)
overridevirtual

Implements IGameServer.

◆ OnClientEnter()

void CGameContext::OnClientEnter ( int  ClientId)
overridevirtual

Implements IGameServer.

◆ OnClientPredictedEarlyInput()

void CGameContext::OnClientPredictedEarlyInput ( int  ClientId,
void *  pInput 
)
overridevirtual

Implements IGameServer.

◆ OnClientPredictedInput()

void CGameContext::OnClientPredictedInput ( int  ClientId,
void *  pInput 
)
overridevirtual

Implements IGameServer.

◆ OnClientPrepareInput()

void CGameContext::OnClientPrepareInput ( int  ClientId,
void *  pInput 
)
overridevirtual

Implements IGameServer.

◆ OnConsoleInit()

void CGameContext::OnConsoleInit ( )
overridevirtual

Implements IGameServer.

◆ OnEmoticonNetMessage()

void CGameContext::OnEmoticonNetMessage ( const CNetMsg_Cl_Emoticon pMsg,
int  ClientId 
)

◆ OnInit()

void CGameContext::OnInit ( const void *  pPersistentData)
overridevirtual

Implements IGameServer.

◆ OnIsDDNetLegacyNetMessage()

void CGameContext::OnIsDDNetLegacyNetMessage ( const CNetMsg_Cl_IsDDNetLegacy pMsg,
int  ClientId,
CUnpacker pUnpacker 
)

◆ OnKillNetMessage()

void CGameContext::OnKillNetMessage ( const CNetMsg_Cl_Kill pMsg,
int  ClientId 
)

◆ OnMapChange()

void CGameContext::OnMapChange ( char *  pNewMapName,
int  MapNameSize 
)
overridevirtual

Implements IGameServer.

◆ OnMessage()

void CGameContext::OnMessage ( int  MsgId,
CUnpacker pUnpacker,
int  ClientId 
)
overridevirtual

Implements IGameServer.

◆ OnPostSnap()

void CGameContext::OnPostSnap ( )
overridevirtual

Implements IGameServer.

◆ OnPreSnap()

void CGameContext::OnPreSnap ( )
overridevirtual

Implements IGameServer.

◆ OnPreTickTeehistorian()

void CGameContext::OnPreTickTeehistorian ( )
overridevirtual

Implements IGameServer.

◆ OnSayNetMessage()

void CGameContext::OnSayNetMessage ( const CNetMsg_Cl_Say pMsg,
int  ClientId,
const CUnpacker pUnpacker 
)

◆ OnSetAuthed()

void CGameContext::OnSetAuthed ( int  ClientId,
int  Level 
)
overridevirtual

Implements IGameServer.

◆ OnSetSpectatorModeNetMessage()

void CGameContext::OnSetSpectatorModeNetMessage ( const CNetMsg_Cl_SetSpectatorMode pMsg,
int  ClientId 
)

◆ OnSetTeamNetMessage()

void CGameContext::OnSetTeamNetMessage ( const CNetMsg_Cl_SetTeam pMsg,
int  ClientId 
)

◆ OnShowDistanceNetMessage()

void CGameContext::OnShowDistanceNetMessage ( const CNetMsg_Cl_ShowDistance pMsg,
int  ClientId 
)

◆ OnShowOthersLegacyNetMessage()

void CGameContext::OnShowOthersLegacyNetMessage ( const CNetMsg_Cl_ShowOthersLegacy pMsg,
int  ClientId 
)

◆ OnShowOthersNetMessage()

void CGameContext::OnShowOthersNetMessage ( const CNetMsg_Cl_ShowOthers pMsg,
int  ClientId 
)

◆ OnShutdown()

void CGameContext::OnShutdown ( void *  pPersistentData)
overridevirtual

Implements IGameServer.

◆ OnSnap()

void CGameContext::OnSnap ( int  ClientId)
overridevirtual

Implements IGameServer.

◆ OnStartInfoNetMessage()

void CGameContext::OnStartInfoNetMessage ( const CNetMsg_Cl_StartInfo pMsg,
int  ClientId 
)

◆ OnTick()

void CGameContext::OnTick ( )
overridevirtual

Implements IGameServer.

◆ OnUpdatePlayerServerInfo()

void CGameContext::OnUpdatePlayerServerInfo ( CJsonStringWriter pJSonWriter,
int  Id 
)
overridevirtual

Used to report custom player info to master servers.

Parameters
pJsonWriterA pointer to a CJsonStringWriter which the custom data will be added to.
iThe client id.

Implements IGameServer.

◆ OnVoteNetMessage()

void CGameContext::OnVoteNetMessage ( const CNetMsg_Cl_Vote pMsg,
int  ClientId 
)

◆ PersistentClientDataSize()

int CGameContext::PersistentClientDataSize ( ) const
inlineoverridevirtual

Implements IGameServer.

◆ PersistentDataSize()

int CGameContext::PersistentDataSize ( ) const
inlineoverridevirtual

Implements IGameServer.

◆ PlayerExists()

bool CGameContext::PlayerExists ( int  ClientId) const
inlineoverridevirtual

Implements IGameServer.

◆ PlayerModerating()

bool CGameContext::PlayerModerating ( ) const

◆ PreProcessMsg()

void * CGameContext::PreProcessMsg ( int *  pMsgId,
CUnpacker pUnpacker,
int  ClientId 
)

◆ ProcessSpamProtection()

bool CGameContext::ProcessSpamProtection ( int  ClientId,
bool  RespectChatInitialDelay = true 
)

◆ ProgressVoteOptions()

void CGameContext::ProgressVoteOptions ( int  ClientId)

◆ RateLimitPlayerMapVote()

bool CGameContext::RateLimitPlayerMapVote ( int  ClientId) const

◆ RateLimitPlayerVote()

bool CGameContext::RateLimitPlayerVote ( int  ClientId)

◆ ReadCensorList()

void CGameContext::ReadCensorList ( )

◆ RegisterChatCommands()

void CGameContext::RegisterChatCommands ( )

◆ RegisterDDRaceCommands()

void CGameContext::RegisterDDRaceCommands ( )

◆ ResetTuning()

void CGameContext::ResetTuning ( )

◆ Score()

CScore * CGameContext::Score ( )
inline

◆ SendBroadcast()

void CGameContext::SendBroadcast ( const char *  pText,
int  ClientId,
bool  IsImportant = true 
)

◆ SendChat()

void CGameContext::SendChat ( int  ClientId,
int  Team,
const char *  pText,
int  SpamProtectionClientId = -1,
int  VersionFlags = FLAG_SIX | FLAG_SIXUP 
)

◆ SendChatTarget()

void CGameContext::SendChatTarget ( int  To,
const char *  pText,
int  VersionFlags = FLAG_SIX | FLAG_SIXUP 
) const

◆ SendChatTeam()

void CGameContext::SendChatTeam ( int  Team,
const char *  pText 
) const

◆ SendEmoticon()

void CGameContext::SendEmoticon ( int  ClientId,
int  Emoticon,
int  TargetClientId 
) const

◆ SendMotd()

void CGameContext::SendMotd ( int  ClientId) const

◆ SendRecord()

void CGameContext::SendRecord ( int  ClientId)

◆ SendSettings()

void CGameContext::SendSettings ( int  ClientId) const

◆ SendStartWarning()

void CGameContext::SendStartWarning ( int  ClientId,
const char *  pMessage 
)

◆ SendTuningParams()

void CGameContext::SendTuningParams ( int  ClientId,
int  Zone = 0 
)

◆ SendVoteSet()

void CGameContext::SendVoteSet ( int  ClientId)

◆ SendVoteStatus()

void CGameContext::SendVoteStatus ( int  ClientId,
int  Total,
int  Yes,
int  No 
)

◆ SendWeaponPickup()

void CGameContext::SendWeaponPickup ( int  ClientId,
int  Weapon 
) const

◆ Server()

IServer * CGameContext::Server ( ) const
inline

◆ SnapLaserObject()

bool CGameContext::SnapLaserObject ( const CSnapContext Context,
int  SnapId,
const vec2 To,
const vec2 From,
int  StartTick,
int  Owner = -1,
int  LaserType = -1,
int  Subtype = -1,
int  SwitchNumber = -1 
) const

◆ SnapPickup()

bool CGameContext::SnapPickup ( const CSnapContext Context,
int  SnapId,
const vec2 Pos,
int  Type,
int  SubType,
int  SwitchNumber 
) const

◆ SnapSwitchers()

void CGameContext::SnapSwitchers ( int  SnappingClient)

◆ StartVote()

void CGameContext::StartVote ( const char *  pDesc,
const char *  pCommand,
const char *  pReason,
const char *  pSixupDesc 
)

◆ Storage()

IStorage * CGameContext::Storage ( )
inline

◆ Switchers()

std::vector< SSwitchers > & CGameContext::Switchers ( )
inline

◆ TeeHistorian()

CTeeHistorian * CGameContext::TeeHistorian ( )
inline

◆ TeeHistorianActive()

bool CGameContext::TeeHistorianActive ( ) const
inline

◆ TeehistorianRecordAntibot()

void CGameContext::TeehistorianRecordAntibot ( const void *  pData,
int  DataSize 
)
overridevirtual

Implements IGameServer.

◆ TeehistorianRecordPlayerDrop()

void CGameContext::TeehistorianRecordPlayerDrop ( int  ClientId,
const char *  pReason 
)
overridevirtual

Implements IGameServer.

◆ TeehistorianRecordPlayerFinish()

void CGameContext::TeehistorianRecordPlayerFinish ( int  ClientId,
int  TimeTicks 
)
overridevirtual

Implements IGameServer.

◆ TeehistorianRecordPlayerJoin()

void CGameContext::TeehistorianRecordPlayerJoin ( int  ClientId,
bool  Sixup 
)
overridevirtual

Implements IGameServer.

◆ TeehistorianRecordPlayerName()

void CGameContext::TeehistorianRecordPlayerName ( int  ClientId,
const char *  pName 
)
overridevirtual

Implements IGameServer.

◆ TeehistorianRecordPlayerRejoin()

void CGameContext::TeehistorianRecordPlayerRejoin ( int  ClientId)
overridevirtual

Implements IGameServer.

◆ TeehistorianRecordTeamFinish()

void CGameContext::TeehistorianRecordTeamFinish ( int  TeamId,
int  TimeTicks 
)
overridevirtual

Implements IGameServer.

◆ TeeHistorianWrite()

void CGameContext::TeeHistorianWrite ( const void *  pData,
int  DataSize,
void *  pUser 
)
staticprivate

◆ Teleport()

void CGameContext::Teleport ( CCharacter pChr,
vec2  Pos 
)
private

◆ TryMute()

bool CGameContext::TryMute ( const NETADDR pAddr,
int  Secs,
const char *  pReason,
bool  InitialChatDelay 
)
private

◆ TryVoteMute()

bool CGameContext::TryVoteMute ( const NETADDR pAddr,
int  Secs,
const char *  pReason 
)
private

◆ Tuning()

CTuningParams * CGameContext::Tuning ( )
inline

◆ TuningList()

CTuningParams * CGameContext::TuningList ( )
inline

◆ UnlockTeam()

void CGameContext::UnlockTeam ( int  ClientId,
int  Team 
) const
private

◆ UpdatePlayerMaps()

void CGameContext::UpdatePlayerMaps ( )

◆ Version()

const char * CGameContext::Version ( ) const
overridevirtual

Implements IGameServer.

◆ VoteMute()

void CGameContext::VoteMute ( const NETADDR pAddr,
int  Secs,
const char *  pReason,
const char *  pDisplayName,
int  AuthedId 
)
private

◆ VoteUnmute()

bool CGameContext::VoteUnmute ( const NETADDR pAddr,
const char *  pDisplayName,
int  AuthedId 
)
private

◆ Whisper()

void CGameContext::Whisper ( int  ClientId,
char *  pStr 
)
private

◆ WhisperId()

void CGameContext::WhisperId ( int  ClientId,
int  VictimId,
const char *  pMessage 
)
private

Member Data Documentation

◆ m_aaZoneEnterMsg

char CGameContext::m_aaZoneEnterMsg[NUM_TUNEZONES][256]

◆ m_aaZoneLeaveMsg

char CGameContext::m_aaZoneLeaveMsg[NUM_TUNEZONES][256]

◆ m_aDeleteTempfile

char CGameContext::m_aDeleteTempfile[128]

◆ m_aLastPlayerInput

CNetObj_PlayerInput CGameContext::m_aLastPlayerInput[MAX_CLIENTS]

◆ m_aLogs

CLog CGameContext::m_aLogs[MAX_LOGS]
private

◆ m_aMutes

CMute CGameContext::m_aMutes[MAX_MUTES]
private

◆ m_aPlayerHasInput

bool CGameContext::m_aPlayerHasInput[MAX_CLIENTS]

◆ m_apPlayers

CPlayer* CGameContext::m_apPlayers[MAX_CLIENTS]

◆ m_apSavedTeams

CSaveTeam* CGameContext::m_apSavedTeams[MAX_CLIENTS]

◆ m_apSavedTees

CSaveTee* CGameContext::m_apSavedTees[MAX_CLIENTS]

◆ m_apSavedTeleTees

CSaveTee* CGameContext::m_apSavedTeleTees[MAX_CLIENTS]

◆ m_aSixupVoteDescription

char CGameContext::m_aSixupVoteDescription[VOTE_DESC_LENGTH]

◆ m_aTeamMapping

int CGameContext::m_aTeamMapping[MAX_CLIENTS]

◆ m_aTuningList

CTuningParams CGameContext::m_aTuningList[NUM_TUNEZONES]
private

◆ m_aVoteCommand

char CGameContext::m_aVoteCommand[VOTE_CMD_LENGTH]

◆ m_aVoteDescription

char CGameContext::m_aVoteDescription[VOTE_DESC_LENGTH]

◆ m_aVoteMutes

CMute CGameContext::m_aVoteMutes[MAX_VOTE_MUTES]
private

◆ m_aVoteReason

char CGameContext::m_aVoteReason[VOTE_REASON_LENGTH]

◆ m_Collision

CCollision CGameContext::m_Collision
private

◆ m_Events

CEventHandler CGameContext::m_Events

◆ m_GameUuid

CUuid CGameContext::m_GameUuid
private

◆ m_LastMapVote

int64_t CGameContext::m_LastMapVote

◆ m_LatestLog

int CGameContext::m_LatestLog
private

◆ m_Layers

CLayers CGameContext::m_Layers
private

◆ m_MapBugs

CMapBugs CGameContext::m_MapBugs
private

◆ m_NetObjHandler

CNetObjHandler CGameContext::m_NetObjHandler
private

◆ m_NetObjHandler7

protocol7::CNetObjHandler CGameContext::m_NetObjHandler7
private

◆ m_NonEmptySince

int64_t CGameContext::m_NonEmptySince

◆ m_NumMutes

int CGameContext::m_NumMutes
private

◆ m_NumVoteMutes

int CGameContext::m_NumVoteMutes
private

◆ m_NumVoteOptions

int CGameContext::m_NumVoteOptions

◆ m_pAntibot

IAntibot* CGameContext::m_pAntibot
private

◆ m_pConfig

CConfig* CGameContext::m_pConfig
private

◆ m_pConfigManager

IConfigManager* CGameContext::m_pConfigManager
private

◆ m_pConsole

IConsole* CGameContext::m_pConsole
private

◆ m_pController

IGameController* CGameContext::m_pController

◆ m_pEngine

IEngine* CGameContext::m_pEngine
private

◆ m_Prng

CPrng CGameContext::m_Prng
private

◆ m_pScore

CScore* CGameContext::m_pScore
private

◆ m_pServer

IServer* CGameContext::m_pServer
private

◆ m_pStorage

IStorage* CGameContext::m_pStorage
private

◆ m_pTeeHistorianFile

ASYNCIO* CGameContext::m_pTeeHistorianFile
private

◆ m_pVoteOptionFirst

CVoteOptionServer* CGameContext::m_pVoteOptionFirst

◆ m_pVoteOptionHeap

CHeap* CGameContext::m_pVoteOptionHeap

◆ m_pVoteOptionLast

CVoteOptionServer* CGameContext::m_pVoteOptionLast

◆ m_Resetting

bool CGameContext::m_Resetting
private

◆ m_SqlRandomMapResult

std::shared_ptr<CScoreRandomMapResult> CGameContext::m_SqlRandomMapResult

◆ m_TeeHistorian

CTeeHistorian CGameContext::m_TeeHistorian
private

◆ m_TeeHistorianActive

bool CGameContext::m_TeeHistorianActive
private

◆ m_Tuning

CTuningParams CGameContext::m_Tuning
private

◆ m_vCensorlist

std::vector<std::string> CGameContext::m_vCensorlist
private

◆ m_VoteCloseTime

int64_t CGameContext::m_VoteCloseTime

◆ m_VoteCreator

int CGameContext::m_VoteCreator

◆ m_VoteEnforce

int CGameContext::m_VoteEnforce

◆ m_VotePos

int CGameContext::m_VotePos

◆ m_VoteType

int CGameContext::m_VoteType

◆ m_VoteUpdate

bool CGameContext::m_VoteUpdate

◆ m_VoteVictim

int CGameContext::m_VoteVictim

◆ m_VoteWillPass

bool CGameContext::m_VoteWillPass
private

◆ m_World

CGameWorld CGameContext::m_World

◆ NextUniqueClientId

uint32_t CGameContext::NextUniqueClientId = 1
private

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