DDraceNetwork Docs
CGameClient Class Reference

#include <gameclient.h>

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

Classes

struct  CClientData
 
class  CClientStats
 
struct  CSnapState
 
struct  SClientEmoticonsSkin
 
struct  SClientExtrasSkin
 
struct  SClientGameSkin
 
struct  SClientHudSkin
 
struct  SClientParticlesSkin
 
struct  SMultiView
 

Public Types

enum  { SERVERMODE_PURE = 0 , SERVERMODE_MOD , SERVERMODE_PUREMOD }
 

Public Member Functions

IKernelKernel ()
 
IEngineEngine () const
 
class IGraphicsGraphics () const
 
class IClientClient () const
 
class CUiUi ()
 
class ISoundSound () const
 
class IInputInput () const
 
class IStorageStorage () const
 
class IConfigManagerConfigManager () const
 
class CConfigConfig () const
 
class IConsoleConsole ()
 
class ITextRenderTextRender () const
 
class IDemoPlayerDemoPlayer () const
 
class IDemoRecorderDemoRecorder (int Recorder) const
 
class IFavoritesFavorites () const
 
class IServerBrowserServerBrowser () const
 
class CRenderToolsRenderTools ()
 
class CLayersLayers ()
 
CCollisionCollision ()
 
const CCollisionCollision () const
 
const CRaceHelperRaceHelper () const
 
class IEditorEditor ()
 
class IFriendsFriends ()
 
class IFriendsFoes ()
 
class IHttpHttp ()
 
int NetobjNumCorrections ()
 
const char * NetobjCorrectedOn ()
 
void OnReset ()
 
size_t ComponentCount ()
 
void OnConnected () override
 
void OnRender () override
 
void OnUpdate () override
 
void OnDummyDisconnect () override
 
virtual void OnRelease ()
 
void OnInit () override
 
void OnConsoleInit () override
 
void OnStateChange (int NewState, int OldState) override
 
template<typename T >
void ApplySkin7InfoFromGameMsg (const T *pMsg, int ClientId, int Conn)
 
void ApplySkin7InfoFromSnapObj (const protocol7::CNetObj_De_ClientInfo *pObj, int ClientId) override
 
int OnDemoRecSnap7 (class CSnapshot *pFrom, class CSnapshot *pTo, int Conn) override
 
void * TranslateGameMsg (int *pMsgId, CUnpacker *pUnpacker, int Conn)
 
int TranslateSnap (CSnapshot *pSnapDstSix, CSnapshot *pSnapSrcSeven, int Conn, bool Dummy) override
 
void OnMessage (int MsgId, CUnpacker *pUnpacker, int Conn, bool Dummy) override
 
void InvalidateSnapshot () override
 
void OnNewSnapshot () override
 
void OnPredict () override
 
void OnActivateEditor () override
 
void OnDummySwap () override
 
int OnSnapInput (int *pData, bool Dummy, bool Force) override
 
void OnShutdown () override
 
void OnEnterGame () override
 
void OnRconType (bool UsernameReq) override
 
void OnRconLine (const char *pLine) override
 
virtual void OnGameOver ()
 
virtual void OnStartGame ()
 
virtual void OnStartRound ()
 
virtual void OnFlagGrab (int TeamId)
 
void OnWindowResize () override
 
void OnLanguageChange ()
 
void HandleLanguageChanged ()
 
void RefreshSkins ()
 
void RenderShutdownMessage () override
 
const char * GetItemName (int Type) const override
 
const char * Version () const override
 
const char * NetVersion () const override
 
const char * NetVersion7 () const override
 
int DDNetVersion () const override
 
const char * DDNetVersionStr () const override
 
virtual int ClientVersion7 () const override
 
void DoTeamChangeMessage7 (const char *pName, int ClientId, int Team, const char *pPrefix="")
 
void SendSwitchTeam (int Team) const
 
void SendStartInfo7 (bool Dummy)
 
void SendSkinChange7 (bool Dummy)
 
bool GotWantedSkin7 (bool Dummy)
 
void SendInfo (bool Start)
 
void SendDummyInfo (bool Start) override
 
void SendKill (int ClientId) const
 
void SendReadyChange7 ()
 
int IntersectCharacter (vec2 HookPos, vec2 NewPos, vec2 &NewPos2, int OwnId)
 
int LastRaceTick () const
 
int CurrentRaceTime () const
 
bool IsTeamPlay ()
 
bool AntiPingPlayers ()
 
bool AntiPingGrenade ()
 
bool AntiPingWeapons ()
 
bool AntiPingGunfire ()
 
bool Predict () const
 
bool PredictDummy ()
 
const CTuningParamsGetTuning (int i)
 
ColorRGBA GetDDTeamColor (int DDTeam, float Lightness=0.5f) const
 
void FormatClientId (int ClientId, char(&aClientId)[16], EClientIdFormat Format) const
 
std::vector< SSwitchers > & Switchers ()
 
std::vector< SSwitchers > & PredSwitchers ()
 
void DummyResetInput () override
 
void Echo (const char *pString) override
 
bool IsOtherTeam (int ClientId) const
 
int SwitchStateTeam () const
 
bool IsLocalCharSuper () const
 
bool CanDisplayWarning () const override
 
CNetObjHandlerGetNetObjHandler () override
 
protocol7::CNetObjHandlerGetNetObjHandler7 () override
 
void LoadGameSkin (const char *pPath, bool AsDir=false)
 
void LoadEmoticonsSkin (const char *pPath, bool AsDir=false)
 
void LoadParticlesSkin (const char *pPath, bool AsDir=false)
 
void LoadHudSkin (const char *pPath, bool AsDir=false)
 
void LoadExtrasSkin (const char *pPath, bool AsDir=false)
 
const std::vector< CSnapEntities > & SnapEntities ()
 
void ResetMultiView ()
 
int FindFirstMultiViewId ()
 
void CleanMultiViewId (int ClientId)
 
virtual void OnConsoleInit ()=0
 
virtual void OnRconType (bool UsernameReq)=0
 
virtual void OnRconLine (const char *pLine)=0
 
virtual void OnInit ()=0
 
virtual void InvalidateSnapshot ()=0
 
virtual void OnNewSnapshot ()=0
 
virtual void OnEnterGame ()=0
 
virtual void OnShutdown ()=0
 
virtual void OnRender ()=0
 
virtual void OnUpdate ()=0
 
virtual void OnStateChange (int NewState, int OldState)=0
 
virtual void OnConnected ()=0
 
virtual void OnMessage (int MsgId, CUnpacker *pUnpacker, int Conn, bool Dummy)=0
 
virtual void OnPredict ()=0
 
virtual void OnActivateEditor ()=0
 
virtual void OnWindowResize ()=0
 
virtual int OnSnapInput (int *pData, bool Dummy, bool Force)=0
 
virtual void OnDummySwap ()=0
 
virtual void SendDummyInfo (bool Start)=0
 
virtual const char * GetItemName (int Type) const =0
 
virtual const char * Version () const =0
 
virtual const char * NetVersion () const =0
 
virtual const char * NetVersion7 () const =0
 
virtual int DDNetVersion () const =0
 
virtual const char * DDNetVersionStr () const =0
 
virtual void OnDummyDisconnect ()=0
 
virtual void DummyResetInput ()=0
 
virtual void Echo (const char *pString)=0
 
virtual bool CanDisplayWarning () const =0
 
virtual void RenderShutdownMessage ()=0
 
virtual CNetObjHandlerGetNetObjHandler ()=0
 
virtual protocol7::CNetObjHandlerGetNetObjHandler7 ()=0
 
virtual int ClientVersion7 () const =0
 
virtual void ApplySkin7InfoFromSnapObj (const protocol7::CNetObj_De_ClientInfo *pObj, int ClientId)=0
 
virtual int OnDemoRecSnap7 (class CSnapshot *pFrom, class CSnapshot *pTo, int Conn)=0
 
virtual int TranslateSnap (class CSnapshot *pSnapDstSix, class CSnapshot *pSnapSrcSeven, int Conn, bool Dummy)=0
 
- Public Member Functions inherited from IInterface
 IInterface ()
 
virtual void Shutdown ()
 
virtual ~IInterface ()
 

Public Attributes

CInfoMessages m_InfoMessages
 
CCamera m_Camera
 
CChat m_Chat
 
CMotd m_Motd
 
CBroadcast m_Broadcast
 
CGameConsole m_GameConsole
 
CBinds m_Binds
 
CParticles m_Particles
 
CMenus m_Menus
 
CSkins m_Skins
 
CSkins7 m_Skins7
 
CCountryFlags m_CountryFlags
 
CFlow m_Flow
 
CHud m_Hud
 
CDebugHud m_DebugHud
 
CControls m_Controls
 
CEffects m_Effects
 
CScoreboard m_Scoreboard
 
CStatboard m_Statboard
 
CSounds m_Sounds
 
CEmoticon m_Emoticon
 
CDamageInd m_DamageInd
 
CVoting m_Voting
 
CSpectator m_Spectator
 
CPlayers m_Players
 
CNamePlates m_NamePlates
 
CFreezeBars m_FreezeBars
 
CItems m_Items
 
CMapImages m_MapImages
 
CMapLayers m_MapLayersBackground = CMapLayers{CMapLayers::TYPE_BACKGROUND}
 
CMapLayers m_MapLayersForeground = CMapLayers{CMapLayers::TYPE_FOREGROUND}
 
CBackground m_Background
 
CMenuBackground m_MenuBackground
 
CMapSounds m_MapSounds
 
CRaceDemo m_RaceDemo
 
CGhost m_Ghost
 
CTooltips m_Tooltips
 
bool m_SuppressEvents
 
bool m_NewTick
 
bool m_NewPredictedTick
 
int m_aFlagDropTick [2]
 
int m_ServerMode
 
CGameInfo m_GameInfo
 
int m_DemoSpecId
 
vec2 m_LocalCharacterPos
 
CCharacterCore m_PredictedPrevChar
 
CCharacterCore m_PredictedChar
 
CSnapState m_Snap
 
int m_aLocalTuneZone [NUM_DUMMIES]
 
bool m_aReceivedTuning [NUM_DUMMIES]
 
int m_aExpectingTuningForZone [NUM_DUMMIES]
 
int m_aExpectingTuningSince [NUM_DUMMIES]
 
CTuningParams m_aTuning [NUM_DUMMIES]
 
CClientData m_aClients [MAX_CLIENTS]
 
CClientStats m_aStats [MAX_CLIENTS]
 
CRenderTools m_RenderTools
 
bool m_LanguageChanged = false
 
int m_NextChangeInfo
 
int m_aLocalIds [NUM_DUMMIES]
 
CNetObj_PlayerInput m_DummyInput
 
CNetObj_PlayerInput m_HammerInput
 
unsigned int m_DummyFire
 
bool m_ReceivedDDNetPlayer
 
class CTeamsCore m_Teams
 
CGameWorld m_GameWorld
 
CGameWorld m_PredictedWorld
 
CGameWorld m_PrevPredictedWorld
 
SClientGameSkin m_GameSkin
 
bool m_GameSkinLoaded = false
 
SClientParticlesSkin m_ParticlesSkin
 
bool m_ParticlesSkinLoaded = false
 
SClientEmoticonsSkin m_EmoticonsSkin
 
bool m_EmoticonsSkinLoaded = false
 
SClientHudSkin m_HudSkin
 
bool m_HudSkinLoaded = false
 
SClientExtrasSkin m_ExtrasSkin
 
bool m_ExtrasSkinLoaded = false
 
int m_MultiViewTeam
 
int m_MultiViewPersonalZoom
 
bool m_MultiViewShowHud
 
bool m_MultiViewActivated
 
bool m_aMultiViewId [MAX_CLIENTS]
 

Private Types

enum  { NUM_TUNEZONES = 256 }
 

Private Member Functions

void ProcessEvents ()
 
void UpdatePositions ()
 
void UpdateEditorIngameMoved ()
 
void SnapCollectEntities ()
 
void UpdatePrediction ()
 
void UpdateRenderedCharacters ()
 
void DetectStrongHook ()
 
vec2 GetSmoothPos (int ClientId)
 
void LoadMapSettings ()
 
CTuningParamsTuningList ()
 
void HandleMultiView ()
 
bool IsMultiViewIdSet ()
 
void CleanMultiViewIds ()
 
bool InitMultiView (int Team)
 
float CalculateMultiViewMultiplier (vec2 TargetPos)
 
float CalculateMultiViewZoom (vec2 MinPos, vec2 MaxPos, float Vel)
 
float MapValue (float MaxValue, float MinValue, float MaxRange, float MinRange, float Value)
 

Static Private Member Functions

static void ConTeam (IConsole::IResult *pResult, void *pUserData)
 
static void ConKill (IConsole::IResult *pResult, void *pUserData)
 
static void ConReadyChange7 (IConsole::IResult *pResult, void *pUserData)
 
static void ConchainLanguageUpdate (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static void ConchainSpecialInfoupdate (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static void ConchainSpecialDummyInfoupdate (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static void ConchainRefreshSkins (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static void ConchainSpecialDummy (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 
static void ConTuneZone (IConsole::IResult *pResult, void *pUserData)
 
static void ConchainMenuMap (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData)
 

Private Attributes

std::vector< class CComponent * > m_vpAll
 
std::vector< class CComponent * > m_vpInput
 
CNetObjHandler m_NetObjHandler
 
protocol7::CNetObjHandler m_NetObjHandler7
 
class IEnginem_pEngine
 
class IInputm_pInput
 
class IGraphicsm_pGraphics
 
class ITextRenderm_pTextRender
 
class IClientm_pClient
 
class ISoundm_pSound
 
class IConfigManagerm_pConfigManager
 
class CConfigm_pConfig
 
class IConsolem_pConsole
 
class IStoragem_pStorage
 
class IDemoPlayerm_pDemoPlayer
 
class IFavoritesm_pFavorites
 
class IServerBrowserm_pServerBrowser
 
class IEditorm_pEditor
 
class IFriendsm_pFriends
 
class IFriendsm_pFoes
 
class IHttpm_pHttp
 
CLayers m_Layers
 
CCollision m_Collision
 
CUi m_UI
 
CRaceHelper m_RaceHelper
 
int m_EditorMovementDelay = 5
 
int m_PredictedTick
 
int m_aLastNewPredictedTick [NUM_DUMMIES]
 
int m_LastRoundStartTick
 
int m_LastRaceTick
 
int m_LastFlagCarrierRed
 
int m_LastFlagCarrierBlue
 
int m_aCheckInfo [NUM_DUMMIES]
 
char m_aDDNetVersionStr [64]
 
vec2 m_aLastPos [MAX_CLIENTS]
 
bool m_aLastActive [MAX_CLIENTS]
 
bool m_GameOver = false
 
bool m_GamePaused = false
 
int m_PrevLocalId = -1
 
std::vector< CSnapEntitiesm_vSnapEntities
 
bool m_aDDRaceMsgSent [NUM_DUMMIES]
 
int m_aShowOthers [NUM_DUMMIES]
 
int m_aLastUpdateTick [MAX_CLIENTS] = {0}
 
int m_PredictedDummyId
 
int m_IsDummySwapping
 
CCharOrder m_CharOrder
 
int m_aSwitchStateTeam [NUM_DUMMIES]
 
CTuningParams m_aTuningList [NUM_TUNEZONES]
 
float m_LastZoom
 
float m_LastScreenAspect
 
bool m_LastDummyConnected
 
SMultiView m_MultiView
 

Additional Inherited Members

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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
SERVERMODE_PURE 
SERVERMODE_MOD 
SERVERMODE_PUREMOD 

◆ anonymous enum

anonymous enum
private
Enumerator
NUM_TUNEZONES 

Member Function Documentation

◆ AntiPingGrenade()

bool CGameClient::AntiPingGrenade ( )
inline

◆ AntiPingGunfire()

bool CGameClient::AntiPingGunfire ( )
inline

◆ AntiPingPlayers()

bool CGameClient::AntiPingPlayers ( )
inline

◆ AntiPingWeapons()

bool CGameClient::AntiPingWeapons ( )
inline

◆ ApplySkin7InfoFromGameMsg()

template<typename T >
void CGameClient::ApplySkin7InfoFromGameMsg ( const T *  pMsg,
int  ClientId,
int  Conn 
)

◆ ApplySkin7InfoFromSnapObj()

void CGameClient::ApplySkin7InfoFromSnapObj ( const protocol7::CNetObj_De_ClientInfo pObj,
int  ClientId 
)
overridevirtual

Implements IGameClient.

◆ CalculateMultiViewMultiplier()

float CGameClient::CalculateMultiViewMultiplier ( vec2  TargetPos)
private

◆ CalculateMultiViewZoom()

float CGameClient::CalculateMultiViewZoom ( vec2  MinPos,
vec2  MaxPos,
float  Vel 
)
private

◆ CanDisplayWarning()

bool CGameClient::CanDisplayWarning ( ) const
overridevirtual

Implements IGameClient.

◆ CleanMultiViewId()

void CGameClient::CleanMultiViewId ( int  ClientId)

◆ CleanMultiViewIds()

void CGameClient::CleanMultiViewIds ( )
private

◆ Client()

class IClient * CGameClient::Client ( ) const
inline

◆ ClientVersion7()

int CGameClient::ClientVersion7 ( ) const
overridevirtual

Implements IGameClient.

◆ Collision() [1/2]

CCollision * CGameClient::Collision ( )
inline

◆ Collision() [2/2]

const CCollision * CGameClient::Collision ( ) const
inline

◆ ComponentCount()

size_t CGameClient::ComponentCount ( )
inline

◆ ConchainLanguageUpdate()

void CGameClient::ConchainLanguageUpdate ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprivate

◆ ConchainMenuMap()

void CGameClient::ConchainMenuMap ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprivate

◆ ConchainRefreshSkins()

void CGameClient::ConchainRefreshSkins ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprivate

◆ ConchainSpecialDummy()

void CGameClient::ConchainSpecialDummy ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprivate

◆ ConchainSpecialDummyInfoupdate()

void CGameClient::ConchainSpecialDummyInfoupdate ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprivate

◆ ConchainSpecialInfoupdate()

void CGameClient::ConchainSpecialInfoupdate ( IConsole::IResult pResult,
void *  pUserData,
IConsole::FCommandCallback  pfnCallback,
void *  pCallbackUserData 
)
staticprivate

◆ Config()

class CConfig * CGameClient::Config ( ) const
inline

◆ ConfigManager()

class IConfigManager * CGameClient::ConfigManager ( ) const
inline

◆ ConKill()

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

◆ ConReadyChange7()

void CGameClient::ConReadyChange7 ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ Console()

class IConsole * CGameClient::Console ( )
inline

◆ ConTeam()

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

◆ ConTuneZone()

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

◆ CurrentRaceTime()

int CGameClient::CurrentRaceTime ( ) const

◆ DDNetVersion()

int CGameClient::DDNetVersion ( ) const
overridevirtual

Implements IGameClient.

◆ DDNetVersionStr()

const char * CGameClient::DDNetVersionStr ( ) const
overridevirtual

Implements IGameClient.

◆ DemoPlayer()

class IDemoPlayer * CGameClient::DemoPlayer ( ) const
inline

◆ DemoRecorder()

class IDemoRecorder * CGameClient::DemoRecorder ( int  Recorder) const
inline

◆ DetectStrongHook()

void CGameClient::DetectStrongHook ( )
private

◆ DoTeamChangeMessage7()

void CGameClient::DoTeamChangeMessage7 ( const char *  pName,
int  ClientId,
int  Team,
const char *  pPrefix = "" 
)

◆ DummyResetInput()

void CGameClient::DummyResetInput ( )
overridevirtual

Implements IGameClient.

◆ Echo()

void CGameClient::Echo ( const char *  pString)
overridevirtual

Implements IGameClient.

◆ Editor()

class IEditor * CGameClient::Editor ( )
inline

◆ Engine()

IEngine * CGameClient::Engine ( ) const
inline

◆ Favorites()

class IFavorites * CGameClient::Favorites ( ) const
inline

◆ FindFirstMultiViewId()

int CGameClient::FindFirstMultiViewId ( )

◆ Foes()

class IFriends * CGameClient::Foes ( )
inline

◆ FormatClientId()

void CGameClient::FormatClientId ( int  ClientId,
char(&)  aClientId[16],
EClientIdFormat  Format 
) const

◆ Friends()

class IFriends * CGameClient::Friends ( )
inline

◆ GetDDTeamColor()

ColorRGBA CGameClient::GetDDTeamColor ( int  DDTeam,
float  Lightness = 0.5f 
) const

◆ GetItemName()

const char * CGameClient::GetItemName ( int  Type) const
overridevirtual

Implements IGameClient.

◆ GetNetObjHandler()

CNetObjHandler * CGameClient::GetNetObjHandler ( )
overridevirtual

Implements IGameClient.

◆ GetNetObjHandler7()

protocol7::CNetObjHandler * CGameClient::GetNetObjHandler7 ( )
overridevirtual

Implements IGameClient.

◆ GetSmoothPos()

vec2 CGameClient::GetSmoothPos ( int  ClientId)
private

◆ GetTuning()

const CTuningParams * CGameClient::GetTuning ( int  i)
inline

◆ GotWantedSkin7()

bool CGameClient::GotWantedSkin7 ( bool  Dummy)

◆ Graphics()

class IGraphics * CGameClient::Graphics ( ) const
inline

◆ HandleLanguageChanged()

void CGameClient::HandleLanguageChanged ( )

◆ HandleMultiView()

void CGameClient::HandleMultiView ( )
private

◆ Http()

class IHttp * CGameClient::Http ( )
inline

◆ InitMultiView()

bool CGameClient::InitMultiView ( int  Team)
private

◆ Input()

class IInput * CGameClient::Input ( ) const
inline

◆ IntersectCharacter()

int CGameClient::IntersectCharacter ( vec2  HookPos,
vec2  NewPos,
vec2 NewPos2,
int  OwnId 
)

◆ InvalidateSnapshot()

void CGameClient::InvalidateSnapshot ( )
overridevirtual

Implements IGameClient.

◆ IsLocalCharSuper()

bool CGameClient::IsLocalCharSuper ( ) const

◆ IsMultiViewIdSet()

bool CGameClient::IsMultiViewIdSet ( )
private

◆ IsOtherTeam()

bool CGameClient::IsOtherTeam ( int  ClientId) const

◆ IsTeamPlay()

bool CGameClient::IsTeamPlay ( )
inline

◆ Kernel()

IKernel * CGameClient::Kernel ( )
inline

◆ LastRaceTick()

int CGameClient::LastRaceTick ( ) const

◆ Layers()

class CLayers * CGameClient::Layers ( )
inline

◆ LoadEmoticonsSkin()

void CGameClient::LoadEmoticonsSkin ( const char *  pPath,
bool  AsDir = false 
)

◆ LoadExtrasSkin()

void CGameClient::LoadExtrasSkin ( const char *  pPath,
bool  AsDir = false 
)

◆ LoadGameSkin()

void CGameClient::LoadGameSkin ( const char *  pPath,
bool  AsDir = false 
)

◆ LoadHudSkin()

void CGameClient::LoadHudSkin ( const char *  pPath,
bool  AsDir = false 
)

◆ LoadMapSettings()

void CGameClient::LoadMapSettings ( )
private

◆ LoadParticlesSkin()

void CGameClient::LoadParticlesSkin ( const char *  pPath,
bool  AsDir = false 
)

◆ MapValue()

float CGameClient::MapValue ( float  MaxValue,
float  MinValue,
float  MaxRange,
float  MinRange,
float  Value 
)
private

◆ NetobjCorrectedOn()

const char * CGameClient::NetobjCorrectedOn ( )
inline

◆ NetobjNumCorrections()

int CGameClient::NetobjNumCorrections ( )
inline

◆ NetVersion()

const char * CGameClient::NetVersion ( ) const
overridevirtual

Implements IGameClient.

◆ NetVersion7()

const char * CGameClient::NetVersion7 ( ) const
overridevirtual

Implements IGameClient.

◆ OnActivateEditor()

void CGameClient::OnActivateEditor ( )
overridevirtual

Implements IGameClient.

◆ OnConnected()

void CGameClient::OnConnected ( )
overridevirtual

Implements IGameClient.

◆ OnConsoleInit()

void CGameClient::OnConsoleInit ( )
overridevirtual

Implements IGameClient.

◆ OnDemoRecSnap7()

int CGameClient::OnDemoRecSnap7 ( class CSnapshot pFrom,
class CSnapshot pTo,
int  Conn 
)
overridevirtual

Implements IGameClient.

◆ OnDummyDisconnect()

void CGameClient::OnDummyDisconnect ( )
overridevirtual

Implements IGameClient.

◆ OnDummySwap()

void CGameClient::OnDummySwap ( )
overridevirtual

Implements IGameClient.

◆ OnEnterGame()

void CGameClient::OnEnterGame ( )
overridevirtual

Implements IGameClient.

◆ OnFlagGrab()

void CGameClient::OnFlagGrab ( int  TeamId)
virtual

◆ OnGameOver()

void CGameClient::OnGameOver ( )
virtual

◆ OnInit()

void CGameClient::OnInit ( )
overridevirtual

Implements IGameClient.

◆ OnLanguageChange()

void CGameClient::OnLanguageChange ( )

◆ OnMessage()

void CGameClient::OnMessage ( int  MsgId,
CUnpacker pUnpacker,
int  Conn,
bool  Dummy 
)
overridevirtual

Implements IGameClient.

◆ OnNewSnapshot()

void CGameClient::OnNewSnapshot ( )
overridevirtual

Implements IGameClient.

◆ OnPredict()

void CGameClient::OnPredict ( )
overridevirtual

Implements IGameClient.

◆ OnRconLine()

void CGameClient::OnRconLine ( const char *  pLine)
overridevirtual

Implements IGameClient.

◆ OnRconType()

void CGameClient::OnRconType ( bool  UsernameReq)
overridevirtual

Implements IGameClient.

◆ OnRelease()

void CGameClient::OnRelease ( )
virtual

◆ OnRender()

void CGameClient::OnRender ( )
overridevirtual

Implements IGameClient.

◆ OnReset()

void CGameClient::OnReset ( )

◆ OnShutdown()

void CGameClient::OnShutdown ( )
overridevirtual

Implements IGameClient.

◆ OnSnapInput()

int CGameClient::OnSnapInput ( int *  pData,
bool  Dummy,
bool  Force 
)
overridevirtual

Implements IGameClient.

◆ OnStartGame()

void CGameClient::OnStartGame ( )
virtual

◆ OnStartRound()

void CGameClient::OnStartRound ( )
virtual

◆ OnStateChange()

void CGameClient::OnStateChange ( int  NewState,
int  OldState 
)
overridevirtual

Implements IGameClient.

◆ OnUpdate()

void CGameClient::OnUpdate ( )
overridevirtual

Implements IGameClient.

◆ OnWindowResize()

void CGameClient::OnWindowResize ( )
overridevirtual

Implements IGameClient.

◆ Predict()

bool CGameClient::Predict ( ) const

◆ PredictDummy()

bool CGameClient::PredictDummy ( )
inline

◆ PredSwitchers()

std::vector< SSwitchers > & CGameClient::PredSwitchers ( )
inline

◆ ProcessEvents()

void CGameClient::ProcessEvents ( )
private

◆ RaceHelper()

const CRaceHelper * CGameClient::RaceHelper ( ) const
inline

◆ RefreshSkins()

void CGameClient::RefreshSkins ( )

◆ RenderShutdownMessage()

void CGameClient::RenderShutdownMessage ( )
overridevirtual

Implements IGameClient.

◆ RenderTools()

class CRenderTools * CGameClient::RenderTools ( )
inline

◆ ResetMultiView()

void CGameClient::ResetMultiView ( )

◆ SendDummyInfo()

void CGameClient::SendDummyInfo ( bool  Start)
overridevirtual

Implements IGameClient.

◆ SendInfo()

void CGameClient::SendInfo ( bool  Start)

◆ SendKill()

void CGameClient::SendKill ( int  ClientId) const

◆ SendReadyChange7()

void CGameClient::SendReadyChange7 ( )

◆ SendSkinChange7()

void CGameClient::SendSkinChange7 ( bool  Dummy)

◆ SendStartInfo7()

void CGameClient::SendStartInfo7 ( bool  Dummy)

◆ SendSwitchTeam()

void CGameClient::SendSwitchTeam ( int  Team) const

◆ ServerBrowser()

class IServerBrowser * CGameClient::ServerBrowser ( ) const
inline

◆ SnapCollectEntities()

void CGameClient::SnapCollectEntities ( )
private

◆ SnapEntities()

const std::vector< CSnapEntities > & CGameClient::SnapEntities ( )
inline

◆ Sound()

class ISound * CGameClient::Sound ( ) const
inline

◆ Storage()

class IStorage * CGameClient::Storage ( ) const
inline

◆ Switchers()

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

◆ SwitchStateTeam()

int CGameClient::SwitchStateTeam ( ) const

◆ TextRender()

class ITextRender * CGameClient::TextRender ( ) const
inline

◆ TranslateGameMsg()

void * CGameClient::TranslateGameMsg ( int *  pMsgId,
CUnpacker pUnpacker,
int  Conn 
)

Prints chat message only once even if it is being sent to main tee and dummy

◆ TranslateSnap()

int CGameClient::TranslateSnap ( CSnapshot pSnapDstSix,
CSnapshot pSnapSrcSeven,
int  Conn,
bool  Dummy 
)
overridevirtual

Implements IGameClient.

◆ TuningList()

CTuningParams * CGameClient::TuningList ( )
inlineprivate

◆ Ui()

class CUi * CGameClient::Ui ( )
inline

◆ UpdateEditorIngameMoved()

void CGameClient::UpdateEditorIngameMoved ( )
private

◆ UpdatePositions()

void CGameClient::UpdatePositions ( )
private

◆ UpdatePrediction()

void CGameClient::UpdatePrediction ( )
private

◆ UpdateRenderedCharacters()

void CGameClient::UpdateRenderedCharacters ( )
private

◆ Version()

const char * CGameClient::Version ( ) const
overridevirtual

Implements IGameClient.

Member Data Documentation

◆ m_aCheckInfo

int CGameClient::m_aCheckInfo[NUM_DUMMIES]
private

◆ m_aClients

CClientData CGameClient::m_aClients[MAX_CLIENTS]

◆ m_aDDNetVersionStr

char CGameClient::m_aDDNetVersionStr[64]
private

◆ m_aDDRaceMsgSent

bool CGameClient::m_aDDRaceMsgSent[NUM_DUMMIES]
private

◆ m_aExpectingTuningForZone

int CGameClient::m_aExpectingTuningForZone[NUM_DUMMIES]

◆ m_aExpectingTuningSince

int CGameClient::m_aExpectingTuningSince[NUM_DUMMIES]

◆ m_aFlagDropTick

int CGameClient::m_aFlagDropTick[2]

◆ m_aLastActive

bool CGameClient::m_aLastActive[MAX_CLIENTS]
private

◆ m_aLastNewPredictedTick

int CGameClient::m_aLastNewPredictedTick[NUM_DUMMIES]
private

◆ m_aLastPos

vec2 CGameClient::m_aLastPos[MAX_CLIENTS]
private

◆ m_aLastUpdateTick

int CGameClient::m_aLastUpdateTick[MAX_CLIENTS] = {0}
private

◆ m_aLocalIds

int CGameClient::m_aLocalIds[NUM_DUMMIES]

◆ m_aLocalTuneZone

int CGameClient::m_aLocalTuneZone[NUM_DUMMIES]

◆ m_aMultiViewId

bool CGameClient::m_aMultiViewId[MAX_CLIENTS]

◆ m_aReceivedTuning

bool CGameClient::m_aReceivedTuning[NUM_DUMMIES]

◆ m_aShowOthers

int CGameClient::m_aShowOthers[NUM_DUMMIES]
private

◆ m_aStats

CClientStats CGameClient::m_aStats[MAX_CLIENTS]

◆ m_aSwitchStateTeam

int CGameClient::m_aSwitchStateTeam[NUM_DUMMIES]
private

◆ m_aTuning

CTuningParams CGameClient::m_aTuning[NUM_DUMMIES]

◆ m_aTuningList

CTuningParams CGameClient::m_aTuningList[NUM_TUNEZONES]
private

◆ m_Background

CBackground CGameClient::m_Background

◆ m_Binds

CBinds CGameClient::m_Binds

◆ m_Broadcast

CBroadcast CGameClient::m_Broadcast

◆ m_Camera

CCamera CGameClient::m_Camera

◆ m_CharOrder

CCharOrder CGameClient::m_CharOrder
private

◆ m_Chat

CChat CGameClient::m_Chat

◆ m_Collision

CCollision CGameClient::m_Collision
private

◆ m_Controls

CControls CGameClient::m_Controls

◆ m_CountryFlags

CCountryFlags CGameClient::m_CountryFlags

◆ m_DamageInd

CDamageInd CGameClient::m_DamageInd

◆ m_DebugHud

CDebugHud CGameClient::m_DebugHud

◆ m_DemoSpecId

int CGameClient::m_DemoSpecId

◆ m_DummyFire

unsigned int CGameClient::m_DummyFire

◆ m_DummyInput

CNetObj_PlayerInput CGameClient::m_DummyInput

◆ m_EditorMovementDelay

int CGameClient::m_EditorMovementDelay = 5
private

◆ m_Effects

CEffects CGameClient::m_Effects

◆ m_Emoticon

CEmoticon CGameClient::m_Emoticon

◆ m_EmoticonsSkin

SClientEmoticonsSkin CGameClient::m_EmoticonsSkin

◆ m_EmoticonsSkinLoaded

bool CGameClient::m_EmoticonsSkinLoaded = false

◆ m_ExtrasSkin

SClientExtrasSkin CGameClient::m_ExtrasSkin

◆ m_ExtrasSkinLoaded

bool CGameClient::m_ExtrasSkinLoaded = false

◆ m_Flow

CFlow CGameClient::m_Flow

◆ m_FreezeBars

CFreezeBars CGameClient::m_FreezeBars

◆ m_GameConsole

CGameConsole CGameClient::m_GameConsole

◆ m_GameInfo

CGameInfo CGameClient::m_GameInfo

◆ m_GameOver

bool CGameClient::m_GameOver = false
private

◆ m_GamePaused

bool CGameClient::m_GamePaused = false
private

◆ m_GameSkin

SClientGameSkin CGameClient::m_GameSkin

◆ m_GameSkinLoaded

bool CGameClient::m_GameSkinLoaded = false

◆ m_GameWorld

CGameWorld CGameClient::m_GameWorld

◆ m_Ghost

CGhost CGameClient::m_Ghost

◆ m_HammerInput

CNetObj_PlayerInput CGameClient::m_HammerInput

◆ m_Hud

CHud CGameClient::m_Hud

◆ m_HudSkin

SClientHudSkin CGameClient::m_HudSkin

◆ m_HudSkinLoaded

bool CGameClient::m_HudSkinLoaded = false

◆ m_InfoMessages

CInfoMessages CGameClient::m_InfoMessages

◆ m_IsDummySwapping

int CGameClient::m_IsDummySwapping
private

◆ m_Items

CItems CGameClient::m_Items

◆ m_LanguageChanged

bool CGameClient::m_LanguageChanged = false

◆ m_LastDummyConnected

bool CGameClient::m_LastDummyConnected
private

◆ m_LastFlagCarrierBlue

int CGameClient::m_LastFlagCarrierBlue
private

◆ m_LastFlagCarrierRed

int CGameClient::m_LastFlagCarrierRed
private

◆ m_LastRaceTick

int CGameClient::m_LastRaceTick
private

◆ m_LastRoundStartTick

int CGameClient::m_LastRoundStartTick
private

◆ m_LastScreenAspect

float CGameClient::m_LastScreenAspect
private

◆ m_LastZoom

float CGameClient::m_LastZoom
private

◆ m_Layers

CLayers CGameClient::m_Layers
private

◆ m_LocalCharacterPos

vec2 CGameClient::m_LocalCharacterPos

◆ m_MapImages

CMapImages CGameClient::m_MapImages

◆ m_MapLayersBackground

CMapLayers CGameClient::m_MapLayersBackground = CMapLayers{CMapLayers::TYPE_BACKGROUND}

◆ m_MapLayersForeground

CMapLayers CGameClient::m_MapLayersForeground = CMapLayers{CMapLayers::TYPE_FOREGROUND}

◆ m_MapSounds

CMapSounds CGameClient::m_MapSounds

◆ m_MenuBackground

CMenuBackground CGameClient::m_MenuBackground

◆ m_Menus

CMenus CGameClient::m_Menus

◆ m_Motd

CMotd CGameClient::m_Motd

◆ m_MultiView

SMultiView CGameClient::m_MultiView
private

◆ m_MultiViewActivated

bool CGameClient::m_MultiViewActivated

◆ m_MultiViewPersonalZoom

int CGameClient::m_MultiViewPersonalZoom

◆ m_MultiViewShowHud

bool CGameClient::m_MultiViewShowHud

◆ m_MultiViewTeam

int CGameClient::m_MultiViewTeam

◆ m_NamePlates

CNamePlates CGameClient::m_NamePlates

◆ m_NetObjHandler

CNetObjHandler CGameClient::m_NetObjHandler
private

◆ m_NetObjHandler7

protocol7::CNetObjHandler CGameClient::m_NetObjHandler7
private

◆ m_NewPredictedTick

bool CGameClient::m_NewPredictedTick

◆ m_NewTick

bool CGameClient::m_NewTick

◆ m_NextChangeInfo

int CGameClient::m_NextChangeInfo

◆ m_Particles

CParticles CGameClient::m_Particles

◆ m_ParticlesSkin

SClientParticlesSkin CGameClient::m_ParticlesSkin

◆ m_ParticlesSkinLoaded

bool CGameClient::m_ParticlesSkinLoaded = false

◆ m_pClient

class IClient* CGameClient::m_pClient
private

◆ m_pConfig

class CConfig* CGameClient::m_pConfig
private

◆ m_pConfigManager

class IConfigManager* CGameClient::m_pConfigManager
private

◆ m_pConsole

class IConsole* CGameClient::m_pConsole
private

◆ m_pDemoPlayer

class IDemoPlayer* CGameClient::m_pDemoPlayer
private

◆ m_pEditor

class IEditor* CGameClient::m_pEditor
private

◆ m_pEngine

class IEngine* CGameClient::m_pEngine
private

◆ m_pFavorites

class IFavorites* CGameClient::m_pFavorites
private

◆ m_pFoes

class IFriends* CGameClient::m_pFoes
private

◆ m_pFriends

class IFriends* CGameClient::m_pFriends
private

◆ m_pGraphics

class IGraphics* CGameClient::m_pGraphics
private

◆ m_pHttp

class IHttp* CGameClient::m_pHttp
private

◆ m_pInput

class IInput* CGameClient::m_pInput
private

◆ m_Players

CPlayers CGameClient::m_Players

◆ m_PredictedChar

CCharacterCore CGameClient::m_PredictedChar

◆ m_PredictedDummyId

int CGameClient::m_PredictedDummyId
private

◆ m_PredictedPrevChar

CCharacterCore CGameClient::m_PredictedPrevChar

◆ m_PredictedTick

int CGameClient::m_PredictedTick
private

◆ m_PredictedWorld

CGameWorld CGameClient::m_PredictedWorld

◆ m_PrevLocalId

int CGameClient::m_PrevLocalId = -1
private

◆ m_PrevPredictedWorld

CGameWorld CGameClient::m_PrevPredictedWorld

◆ m_pServerBrowser

class IServerBrowser* CGameClient::m_pServerBrowser
private

◆ m_pSound

class ISound* CGameClient::m_pSound
private

◆ m_pStorage

class IStorage* CGameClient::m_pStorage
private

◆ m_pTextRender

class ITextRender* CGameClient::m_pTextRender
private

◆ m_RaceDemo

CRaceDemo CGameClient::m_RaceDemo

◆ m_RaceHelper

CRaceHelper CGameClient::m_RaceHelper
private

◆ m_ReceivedDDNetPlayer

bool CGameClient::m_ReceivedDDNetPlayer

◆ m_RenderTools

CRenderTools CGameClient::m_RenderTools

◆ m_Scoreboard

CScoreboard CGameClient::m_Scoreboard

◆ m_ServerMode

int CGameClient::m_ServerMode

◆ m_Skins

CSkins CGameClient::m_Skins

◆ m_Skins7

CSkins7 CGameClient::m_Skins7

◆ m_Snap

CSnapState CGameClient::m_Snap

◆ m_Sounds

CSounds CGameClient::m_Sounds

◆ m_Spectator

CSpectator CGameClient::m_Spectator

◆ m_Statboard

CStatboard CGameClient::m_Statboard

◆ m_SuppressEvents

bool CGameClient::m_SuppressEvents

◆ m_Teams

class CTeamsCore CGameClient::m_Teams

◆ m_Tooltips

CTooltips CGameClient::m_Tooltips

◆ m_UI

CUi CGameClient::m_UI
private

◆ m_Voting

CVoting CGameClient::m_Voting

◆ m_vpAll

std::vector<class CComponent *> CGameClient::m_vpAll
private

◆ m_vpInput

std::vector<class CComponent *> CGameClient::m_vpInput
private

◆ m_vSnapEntities

std::vector<CSnapEntities> CGameClient::m_vSnapEntities
private

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