![]() |
DDraceNetwork Documentation
|
#include <gameclient.h>
Classes | |
| class | CSnapState |
| class | CCursorInfo |
| class | CClientData |
| class | CClientStats |
| struct | SClientGameSkin |
| struct | SClientParticlesSkin |
| struct | SClientEmoticonsSkin |
| struct | SClientHudSkin |
| struct | SClientExtrasSkin |
| struct | SMultiView |
Public Types | |
| enum | { SERVERMODE_PURE = 0 , SERVERMODE_MOD , SERVERMODE_PUREMOD } |
Public Member Functions | |
| IKernel * | Kernel () |
| IEngine * | Engine () const |
| class IGraphics * | Graphics () const |
| class IClient * | Client () const |
| class CUi * | Ui () |
| class ISound * | Sound () const |
| class IInput * | Input () const |
| class IStorage * | Storage () const |
| class IConfigManager * | ConfigManager () const |
| class CConfig * | Config () const |
| class IConsole * | Console () |
| class ITextRender * | TextRender () const |
| class IDemoPlayer * | DemoPlayer () const |
| class IDemoRecorder * | DemoRecorder (int Recorder) const |
| class IFavorites * | Favorites () const |
| class IServerBrowser * | ServerBrowser () const |
| class CRenderTools * | RenderTools () |
| class CRenderMap * | RenderMap () |
| class CLayers * | Layers () |
| CCollision * | Collision () |
| const CCollision * | Collision () const |
| const CRaceHelper * | RaceHelper () const |
| class IEditor * | Editor () |
| class IFriends * | Friends () |
| class IFriends * | Foes () |
| class IHttp * | Http () |
| int | NetobjNumCorrections () |
| const char * | NetobjCorrectedOn () |
| void | OnReset () |
| size_t | ComponentCount () const |
| 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 | InitializeLanguage () override |
| void | OnLanguageChange () |
| void | HandleLanguageChanged () |
| void | ForceUpdateConsoleRemoteCompletionSuggestions () override |
| void | RefreshSkin (const std::shared_ptr< CManagedTeeRenderInfo > &pManagedTeeRenderInfo) |
| void | RefreshSkins (int SkinDescriptorFlags) |
| void | OnSkinUpdate (const char *pSkinName) |
| std::shared_ptr< CManagedTeeRenderInfo > | CreateManagedTeeRenderInfo (const CTeeRenderInfo &TeeRenderInfo, const CSkinDescriptor &SkinDescriptor) |
| std::shared_ptr< CManagedTeeRenderInfo > | CreateManagedTeeRenderInfo (const CClientData &Client) |
| void | CollectManagedTeeRenderInfos (const std::function< void(const char *pSkinName)> &ActiveSkinAcceptor) |
| void | RenderShutdownMessage () override |
| void | ProcessDemoSnapshot (CSnapshot *pSnap) 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 |
| 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 () const |
| void | SendReadyChange7 () |
| void | ApplyPreInputs (int Tick, bool Direct, CGameWorld &GameWorld) |
| int | IntersectCharacter (vec2 HookPos, vec2 NewPos, vec2 &NewPos2, int OwnId, vec2 *pPlayerPosition=nullptr) |
| int | LastRaceTick () const |
| int | CurrentRaceTime () const |
| bool | IsTeamPlay () const |
| bool | AntiPingPlayers () const |
| bool | AntiPingGrenade () const |
| bool | AntiPingWeapons () const |
| bool | AntiPingGunfire () const |
| bool | Predict () const |
| bool | PredictDummy () const |
| const CTuningParams * | GetTuning (int i) const |
| 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 |
| CNetObjHandler * | GetNetObjHandler () override |
| protocol7::CNetObjHandler * | GetNetObjHandler7 () 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) |
| Public Member Functions inherited from IInterface | |
| IInterface () | |
| virtual void | Shutdown () |
| virtual | ~IInterface ()=default |
Private Member Functions | |
| void | ProcessEvents () |
| void | UpdatePositions () |
| void | UpdateEditorIngameMoved () |
| void | SnapCollectEntities () |
| void | UpdateManagedTeeRenderInfos () |
| void | UpdateLocalTuning () |
| void | UpdatePrediction () |
| void | UpdateSpectatorCursor () |
| void | UpdateRenderedCharacters () |
| void | DetectStrongHook () |
| vec2 | GetSmoothPos (int ClientId) |
| void | LoadMapSettings () |
| CTuningParams * | TuningList () |
| 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) |
| void | OnSaveCodeNetMessage (const CNetMsg_Sv_SaveCode *pMsg) |
| void | StoreSave (const char *pTeamMembers, const char *pGeneratedCode) const |
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 | ConchainRefreshEventSkins (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 | ConTuneParam (IConsole::IResult *pResult, void *pUserData) |
| static void | ConTuneZone (IConsole::IResult *pResult, void *pUserData) |
| static void | ConMapbug (IConsole::IResult *pResult, void *pUserData) |
| static void | ConchainMenuMap (IConsole::IResult *pResult, void *pUserData, IConsole::FCommandCallback pfnCallback, void *pCallbackUserData) |
| static std::function< bool(int, int, int, int)> | GetScoreComparator (bool TimeScore, bool ReceivedMillisecondFinishTimes, bool Race7) |
Additional Inherited Members | |
| Static Public Member Functions inherited from IGameClient | |
| static const char * | InterfaceName () |
| Protected Member Functions inherited from IInterface | |
| IKernel * | Kernel () |
|
inline |
|
inline |
|
inline |
|
inline |
| void CGameClient::ApplyPreInputs | ( | int | Tick, |
| bool | Direct, | ||
| CGameWorld & | GameWorld ) |
| void CGameClient::ApplySkin7InfoFromGameMsg | ( | const T * | pMsg, |
| int | ClientId, | ||
| int | Conn ) |
|
overridevirtual |
Implements IGameClient.
|
private |
|
overridevirtual |
Implements IGameClient.
| void CGameClient::CleanMultiViewId | ( | int | ClientId | ) |
|
private |
|
inline |
|
overridevirtual |
Implements IGameClient.
| void CGameClient::CollectManagedTeeRenderInfos | ( | const std::function< void(const char *pSkinName)> & | ActiveSkinAcceptor | ) |
|
inline |
|
inline |
|
inline |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
inline |
|
inline |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
inline |
|
staticprivate |
|
staticprivate |
|
staticprivate |
| std::shared_ptr< CManagedTeeRenderInfo > CGameClient::CreateManagedTeeRenderInfo | ( | const CClientData & | Client | ) |
| std::shared_ptr< CManagedTeeRenderInfo > CGameClient::CreateManagedTeeRenderInfo | ( | const CTeeRenderInfo & | TeeRenderInfo, |
| const CSkinDescriptor & | SkinDescriptor ) |
| int CGameClient::CurrentRaceTime | ( | ) | const |
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
inline |
|
inline |
|
private |
| void CGameClient::DoTeamChangeMessage7 | ( | const char * | pName, |
| int | ClientId, | ||
| int | Team, | ||
| const char * | pPrefix = "" ) |
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
inline |
|
inline |
|
inline |
| int CGameClient::FindFirstMultiViewId | ( | ) |
|
inline |
|
overridevirtual |
Implements IGameClient.
| void CGameClient::FormatClientId | ( | int | ClientId, |
| char(&) | aClientId[16], | ||
| EClientIdFormat | Format ) const |
|
inline |
| ColorRGBA CGameClient::GetDDTeamColor | ( | int | DDTeam, |
| float | Lightness = 0.5f ) const |
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
staticprivate |
|
private |
|
inline |
| bool CGameClient::GotWantedSkin7 | ( | bool | Dummy | ) |
|
inline |
| void CGameClient::HandleLanguageChanged | ( | ) |
|
private |
|
inline |
|
overridevirtual |
Implements IGameClient.
|
private |
|
inline |
| int CGameClient::IntersectCharacter | ( | vec2 | HookPos, |
| vec2 | NewPos, | ||
| vec2 & | NewPos2, | ||
| int | OwnId, | ||
| vec2 * | pPlayerPosition = nullptr ) |
|
overridevirtual |
Implements IGameClient.
| bool CGameClient::IsLocalCharSuper | ( | ) | const |
|
private |
| bool CGameClient::IsOtherTeam | ( | int | ClientId | ) | const |
|
inline |
|
inline |
| int CGameClient::LastRaceTick | ( | ) | const |
|
inline |
| void CGameClient::LoadEmoticonsSkin | ( | const char * | pPath, |
| bool | AsDir = false ) |
| void CGameClient::LoadExtrasSkin | ( | const char * | pPath, |
| bool | AsDir = false ) |
| void CGameClient::LoadGameSkin | ( | const char * | pPath, |
| bool | AsDir = false ) |
| void CGameClient::LoadHudSkin | ( | const char * | pPath, |
| bool | AsDir = false ) |
|
private |
| void CGameClient::LoadParticlesSkin | ( | const char * | pPath, |
| bool | AsDir = false ) |
|
private |
|
inline |
|
inline |
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
virtual |
|
virtual |
|
overridevirtual |
Implements IGameClient.
| void CGameClient::OnLanguageChange | ( | ) |
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
virtual |
|
overridevirtual |
Implements IGameClient.
| void CGameClient::OnReset | ( | ) |
|
private |
|
overridevirtual |
Implements IGameClient.
| void CGameClient::OnSkinUpdate | ( | const char * | pSkinName | ) |
|
overridevirtual |
Implements IGameClient.
|
virtual |
|
virtual |
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
| bool CGameClient::Predict | ( | ) | const |
|
inline |
|
inline |
|
overridevirtual |
Implements IGameClient.
|
private |
|
inline |
| void CGameClient::RefreshSkin | ( | const std::shared_ptr< CManagedTeeRenderInfo > & | pManagedTeeRenderInfo | ) |
| void CGameClient::RefreshSkins | ( | int | SkinDescriptorFlags | ) |
|
inline |
|
overridevirtual |
Implements IGameClient.
|
inline |
| void CGameClient::ResetMultiView | ( | ) |
|
overridevirtual |
Implements IGameClient.
| void CGameClient::SendInfo | ( | bool | Start | ) |
| void CGameClient::SendKill | ( | ) | const |
| void CGameClient::SendReadyChange7 | ( | ) |
| void CGameClient::SendSkinChange7 | ( | bool | Dummy | ) |
| void CGameClient::SendStartInfo7 | ( | bool | Dummy | ) |
| void CGameClient::SendSwitchTeam | ( | int | Team | ) | const |
|
inline |
|
private |
|
inline |
|
inline |
|
inline |
|
private |
|
inline |
| int CGameClient::SwitchStateTeam | ( | ) | const |
|
inline |
| 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
|
overridevirtual |
Implements IGameClient.
|
inlineprivate |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
overridevirtual |
Implements IGameClient.
|
private |
| CClientData CGameClient::m_aClients[MAX_CLIENTS] |
| std::bitset<RECORDER_MAX> CGameClient::m_ActiveRecordings |
|
private |
|
private |
|
private |
| int CGameClient::m_aExpectingTuningForZone[NUM_DUMMIES] |
| int CGameClient::m_aExpectingTuningSince[NUM_DUMMIES] |
| int CGameClient::m_aFlagDropTick[2] |
|
private |
|
private |
|
private |
|
private |
| int CGameClient::m_aLocalIds[NUM_DUMMIES] |
| int CGameClient::m_aLocalTuneZone[NUM_DUMMIES] |
| bool CGameClient::m_aMultiViewId[MAX_CLIENTS] |
| int CGameClient::m_aNextChangeInfo[NUM_DUMMIES] |
| bool CGameClient::m_aReceivedTuning[NUM_DUMMIES] |
|
private |
| CClientStats CGameClient::m_aStats[MAX_CLIENTS] |
|
private |
| CTuningParams CGameClient::m_aTuning[NUM_DUMMIES] |
|
private |
| CBackground CGameClient::m_Background |
| CBinds CGameClient::m_Binds |
| CBroadcast CGameClient::m_Broadcast |
| CCamera CGameClient::m_Camera |
| CCensor CGameClient::m_Censor |
|
private |
| CChat CGameClient::m_Chat |
|
private |
| CControls CGameClient::m_Controls |
| CCountryFlags CGameClient::m_CountryFlags |
| class CGameClient::CCursorInfo CGameClient::m_CursorInfo |
| CDamageInd CGameClient::m_DamageInd |
| CDebugHud CGameClient::m_DebugHud |
| int CGameClient::m_DemoSpecId |
| unsigned int CGameClient::m_DummyFire |
| CNetObj_PlayerInput CGameClient::m_DummyInput |
|
private |
| CEffects CGameClient::m_Effects |
| CEmoticon CGameClient::m_Emoticon |
| SClientEmoticonsSkin CGameClient::m_EmoticonsSkin |
| bool CGameClient::m_EmoticonsSkinLoaded = false |
| SClientExtrasSkin CGameClient::m_ExtrasSkin |
| bool CGameClient::m_ExtrasSkinLoaded = false |
| CFlow CGameClient::m_Flow |
| CFreezeBars CGameClient::m_FreezeBars |
| CGameConsole CGameClient::m_GameConsole |
| CGameInfo CGameClient::m_GameInfo |
|
private |
|
private |
| SClientGameSkin CGameClient::m_GameSkin |
| bool CGameClient::m_GameSkinLoaded = false |
| CGameWorld CGameClient::m_GameWorld |
| CGhost CGameClient::m_Ghost |
| CNetObj_PlayerInput CGameClient::m_HammerInput |
| CHud CGameClient::m_Hud |
| SClientHudSkin CGameClient::m_HudSkin |
| bool CGameClient::m_HudSkinLoaded = false |
| CImportantAlert CGameClient::m_ImportantAlert |
| CInfoMessages CGameClient::m_InfoMessages |
|
private |
| CItems CGameClient::m_Items |
| CKeyBinder CGameClient::m_KeyBinder |
| bool CGameClient::m_LanguageChanged = false |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| vec2 CGameClient::m_LocalCharacterPos |
| CLocalServer CGameClient::m_LocalServer |
| int CGameClient::m_MapBestTimeMillis |
| int CGameClient::m_MapBestTimeSeconds |
|
private |
| CMapImages CGameClient::m_MapImages |
| CMapLayers CGameClient::m_MapLayersBackground = CMapLayers{ERenderType::RENDERTYPE_BACKGROUND} |
| CMapLayers CGameClient::m_MapLayersForeground = CMapLayers{ERenderType::RENDERTYPE_FOREGROUND} |
| CMapSounds CGameClient::m_MapSounds |
| CMenuBackground CGameClient::m_MenuBackground |
| CMenus CGameClient::m_Menus |
| CMotd CGameClient::m_Motd |
|
private |
| bool CGameClient::m_MultiViewActivated |
| float CGameClient::m_MultiViewPersonalZoom |
| bool CGameClient::m_MultiViewShowHud |
| int CGameClient::m_MultiViewTeam |
| CNamePlates CGameClient::m_NamePlates |
|
private |
|
private |
| bool CGameClient::m_NewPredictedTick |
| bool CGameClient::m_NewTick |
| CParticles CGameClient::m_Particles |
| SClientParticlesSkin CGameClient::m_ParticlesSkin |
| bool CGameClient::m_ParticlesSkinLoaded = false |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| CPlayers CGameClient::m_Players |
| CCharacterCore CGameClient::m_PredictedChar |
| CCharacterCore CGameClient::m_PredictedPrevChar |
|
private |
| CGameWorld CGameClient::m_PredictedWorld |
| CGameWorld CGameClient::m_PrevPredictedWorld |
|
private |
|
private |
|
private |
|
private |
| CRaceDemo CGameClient::m_RaceDemo |
|
private |
| bool CGameClient::m_ReceivedDDNetPlayer |
| bool CGameClient::m_ReceivedDDNetPlayerFinishTimes |
| CRenderMap CGameClient::m_RenderMap |
| CRenderTools CGameClient::m_RenderTools |
| CScoreboard CGameClient::m_Scoreboard |
| int CGameClient::m_ServerMode |
| CSkins CGameClient::m_Skins |
| CSkins7 CGameClient::m_Skins7 |
| CSnapState CGameClient::m_Snap |
| CSounds CGameClient::m_Sounds |
| CSpectator CGameClient::m_Spectator |
| CStatboard CGameClient::m_Statboard |
| bool CGameClient::m_SuppressEvents |
| class CTeamsCore CGameClient::m_Teams |
| CTooltips CGameClient::m_Tooltips |
| CTouchControls CGameClient::m_TouchControls |
|
private |
| CVoting CGameClient::m_Voting |
|
private |
|
private |
|
private |
|
private |