DDraceNetwork Docs
|
#include <gameclient.h>
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 | |
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 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 () |
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 CTuningParams * | GetTuning (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 |
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) |
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 CNetObjHandler * | GetNetObjHandler ()=0 |
virtual protocol7::CNetObjHandler * | GetNetObjHandler7 ()=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 () |
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 () |
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) |
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) |
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::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.
|
inline |
|
inline |
|
inline |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
inline |
|
inline |
|
staticprivate |
|
staticprivate |
|
inline |
|
staticprivate |
|
staticprivate |
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 |
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.
|
private |
|
inline |
bool CGameClient::GotWantedSkin7 | ( | bool | Dummy | ) |
|
inline |
void CGameClient::HandleLanguageChanged | ( | ) |
|
private |
|
inline |
|
private |
|
inline |
|
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 | ( | ) |
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
virtual |
|
virtual |
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
|
overridevirtual |
Implements IGameClient.
bool CGameClient::Predict | ( | ) | const |
|
inline |
|
inline |
|
private |
|
inline |
void CGameClient::RefreshSkins | ( | ) |
|
overridevirtual |
Implements IGameClient.
|
inline |
void CGameClient::ResetMultiView | ( | ) |
|
overridevirtual |
Implements IGameClient.
void CGameClient::SendInfo | ( | bool | Start | ) |
void CGameClient::SendKill | ( | int | ClientId | ) | 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 |
|
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 |
|
overridevirtual |
Implements IGameClient.
|
private |
CClientData CGameClient::m_aClients[MAX_CLIENTS] |
|
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] |
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 |
|
private |
CChat CGameClient::m_Chat |
|
private |
CControls CGameClient::m_Controls |
CCountryFlags CGameClient::m_CountryFlags |
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 |
CInfoMessages CGameClient::m_InfoMessages |
|
private |
CItems CGameClient::m_Items |
bool CGameClient::m_LanguageChanged = false |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
vec2 CGameClient::m_LocalCharacterPos |
CMapImages CGameClient::m_MapImages |
CMapLayers CGameClient::m_MapLayersBackground = CMapLayers{CMapLayers::TYPE_BACKGROUND} |
CMapLayers CGameClient::m_MapLayersForeground = CMapLayers{CMapLayers::TYPE_FOREGROUND} |
CMapSounds CGameClient::m_MapSounds |
CMenuBackground CGameClient::m_MenuBackground |
CMenus CGameClient::m_Menus |
CMotd CGameClient::m_Motd |
|
private |
bool CGameClient::m_MultiViewActivated |
int 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 |
int CGameClient::m_NextChangeInfo |
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 |
CPlayers CGameClient::m_Players |
CCharacterCore CGameClient::m_PredictedChar |
|
private |
CCharacterCore CGameClient::m_PredictedPrevChar |
|
private |
CGameWorld CGameClient::m_PredictedWorld |
|
private |
CGameWorld CGameClient::m_PrevPredictedWorld |
|
private |
|
private |
|
private |
|
private |
CRaceDemo CGameClient::m_RaceDemo |
|
private |
bool CGameClient::m_ReceivedDDNetPlayer |
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 |
|
private |
CVoting CGameClient::m_Voting |
|
private |
|
private |
|
private |