![]() |
DDraceNetwork Documentation
|
#include <client.h>
Classes | |
| class | CSnapItem |
Public Types | |
| enum | EClientState { STATE_OFFLINE = 0 , STATE_CONNECTING , STATE_LOADING , STATE_ONLINE , STATE_DEMOPLAYBACK , STATE_QUITTING , STATE_RESTARTING } |
| enum | ELoadingStateDetail { LOADING_STATE_DETAIL_INITIAL , LOADING_STATE_DETAIL_LOADING_MAP , LOADING_STATE_DETAIL_LOADING_DEMO , LOADING_STATE_DETAIL_SENDING_READY , LOADING_STATE_DETAIL_GETTING_READY } |
| enum | ELoadingCallbackDetail { LOADING_CALLBACK_DETAIL_MAP , LOADING_CALLBACK_DETAIL_DEMO } |
| enum | { CONN_MAIN = 0 , CONN_DUMMY , CONN_CONTACT , NUM_CONNS } |
| enum | { CONNECTIVITY_UNKNOWN , CONNECTIVITY_CHECKING , CONNECTIVITY_UNREACHABLE , CONNECTIVITY_REACHABLE , CONNECTIVITY_DIFFERING_UDP_TCP_IP_ADDRESSES } |
| enum | { SNAP_CURRENT = 0 , SNAP_PREV = 1 , NUM_SNAPSHOT_TYPES = 2 } |
| enum class | EInfoState { LOADING , SUCCESS , ERROR } |
| typedef std::function< void(ELoadingCallbackDetail Detail)> | TLoadingCallback |
Public Member Functions | |
| EClientState | State () const |
| ELoadingStateDetail | LoadingStateDetail () const |
| int64_t | StateStartTime () const |
| void | SetLoadingStateDetail (ELoadingStateDetail LoadingStateDetail) |
| void | SetLoadingCallback (TLoadingCallback &&Func) |
| int | PrevGameTick (int Conn) const |
| int | GameTick (int Conn) const |
| int | PredGameTick (int Conn) const |
| float | IntraGameTick (int Conn) const |
| float | PredIntraGameTick (int Conn) const |
| float | IntraGameTickSincePrev (int Conn) const |
| float | GameTickTime (int Conn) const |
| int | GameTickSpeed () const |
| float | RenderFrameTime () const |
| float | LocalTime () const |
| float | GlobalTime () const |
| float | FrameTimeAverage () const |
| virtual void | Connect (const char *pAddress, const char *pPassword=nullptr)=0 |
| virtual void | Disconnect ()=0 |
| virtual void | DummyDisconnect (const char *pReason)=0 |
| virtual void | DummyConnect ()=0 |
| virtual bool | DummyConnected () const =0 |
| virtual bool | DummyConnecting () const =0 |
| virtual bool | DummyConnectingDelayed () const =0 |
| virtual bool | DummyAllowed () const =0 |
| virtual void | Restart ()=0 |
| virtual void | Quit ()=0 |
| virtual const char * | DemoPlayer_Play (const char *pFilename, int StorageType)=0 |
| virtual const char * | DemoPlayer_Render (const char *pFilename, int StorageType, const char *pVideoName, int SpeedIndex, bool StartPaused=false)=0 |
| virtual void | DemoRecorder_Start (const char *pFilename, bool WithTimestamp, int Recorder)=0 |
| virtual void | DemoRecorder_HandleAutoStart ()=0 |
| virtual void | DemoRecorder_UpdateReplayRecorder ()=0 |
| virtual class IDemoRecorder * | DemoRecorder (int Recorder)=0 |
| virtual void | AutoScreenshot_Start ()=0 |
| virtual void | AutoStatScreenshot_Start ()=0 |
| virtual void | AutoCSV_Start ()=0 |
| virtual void | ServerBrowserUpdate ()=0 |
| virtual void | Notify (const char *pTitle, const char *pMessage)=0 |
| virtual void | OnWindowResize ()=0 |
| virtual void | UpdateAndSwap ()=0 |
| virtual void | EnterGame (int Conn)=0 |
| virtual const NETADDR & | ServerAddress () const =0 |
| virtual int | ConnectNetTypes () const =0 |
| virtual const char * | ConnectAddressString () const =0 |
| virtual const char * | MapDownloadName () const =0 |
| virtual int | MapDownloadAmount () const =0 |
| virtual int | MapDownloadTotalsize () const =0 |
| virtual int * | GetInput (int Tick, int IsDummy=0) const =0 |
| virtual void | RconAuth (const char *pUsername, const char *pPassword, bool Dummy)=0 |
| virtual bool | RconAuthed () const =0 |
| virtual bool | UseTempRconCommands () const =0 |
| virtual void | Rcon (const char *pLine)=0 |
| virtual bool | ReceivingRconCommands () const =0 |
| virtual float | GotRconCommandsPercentage () const =0 |
| virtual bool | ReceivingMaplist () const =0 |
| virtual float | GotMaplistPercentage () const =0 |
| virtual const std::vector< std::string > & | MaplistEntries () const =0 |
| virtual void | GetServerInfo (class CServerInfo *pServerInfo) const =0 |
| virtual bool | ServerCapAnyPlayerFlag () const =0 |
| virtual int | GetPredictionTime ()=0 |
| virtual int | GetPredictionTick ()=0 |
| virtual int | SnapNumItems (int SnapId) const =0 |
| virtual const void * | SnapFindItem (int SnapId, int Type, int Id) const =0 |
| virtual CSnapItem | SnapGetItem (int SnapId, int Index) const =0 |
| virtual void | SnapSetStaticsize (int ItemType, int Size)=0 |
| virtual void | SnapSetStaticsize7 (int ItemType, int Size)=0 |
| virtual int | SendMsg (int Conn, CMsgPacker *pMsg, int Flags)=0 |
| virtual int | SendMsgActive (CMsgPacker *pMsg, int Flags)=0 |
| template<class T> | |
| int | SendPackMsgActive (T *pMsg, int Flags, bool NoTranslate=false) |
| template<class T> | |
| int | SendPackMsg (int Conn, T *pMsg, int Flags, bool NoTranslate=false) |
| virtual const char * | PlayerName () const =0 |
| virtual const char * | DummyName ()=0 |
| virtual const char * | ErrorString () const =0 |
| virtual const char * | LatestVersion () const =0 |
| virtual bool | ConnectionProblems () const =0 |
| virtual IGraphics::CTextureHandle | GetDebugFont () const =0 |
| virtual const char * | GetCurrentMap () const =0 |
| virtual const char * | GetCurrentMapPath () const =0 |
| virtual SHA256_DIGEST | GetCurrentMapSha256 () const =0 |
| virtual unsigned | GetCurrentMapCrc () const =0 |
| const char * | News () const |
| int | Points () const |
| int64_t | ReconnectTime () const |
| void | SetReconnectTime (int64_t ReconnectTime) |
| virtual bool | IsSixup () const =0 |
| virtual void | RaceRecord_Start (const char *pFilename)=0 |
| virtual void | RaceRecord_Stop ()=0 |
| virtual bool | RaceRecord_IsRecording ()=0 |
| virtual void | DemoSliceBegin ()=0 |
| virtual void | DemoSliceEnd ()=0 |
| virtual void | DemoSlice (const char *pDstPath, CLIENTFUNC_FILTER pfnFilter, void *pUser)=0 |
| virtual EInfoState | InfoState () const =0 |
| virtual void | RequestDDNetInfo ()=0 |
| virtual bool | EditorHasUnsavedData () const =0 |
| virtual void | GenerateTimeoutSeed ()=0 |
| virtual IFriends * | Foes ()=0 |
| virtual void | GetSmoothTick (int *pSmoothTick, float *pSmoothIntraTick, float MixAmount)=0 |
| virtual void | AddWarning (const SWarning &Warning)=0 |
| virtual std::optional< SWarning > | CurrentWarning ()=0 |
| virtual CChecksumData * | ChecksumData ()=0 |
| virtual int | UdpConnectivity (int NetType)=0 |
| virtual bool | ViewLink (const char *pLink)=0 |
| virtual bool | ViewFile (const char *pFilename)=0 |
| virtual std::optional< int > | ShowMessageBox (const IGraphics::CMessageBox &MessageBox)=0 |
| virtual void | GetGpuInfoString (char(&aGpuInfo)[512])=0 |
| Public Member Functions inherited from IInterface | |
| IInterface () | |
| virtual void | Shutdown () |
| virtual | ~IInterface ()=default |
Static Public Member Functions | |
| static const char * | InterfaceName () |
Public Attributes | |
| CTranslationContext | m_TranslationContext |
Protected Attributes | |
| EClientState | m_State = IClient::STATE_OFFLINE |
| ELoadingStateDetail | m_LoadingStateDetail = LOADING_STATE_DETAIL_INITIAL |
| int64_t | m_StateStartTime |
| int | m_aPrevGameTick [NUM_DUMMIES] = {0, 0} |
| int | m_aCurGameTick [NUM_DUMMIES] = {0, 0} |
| float | m_aGameIntraTick [NUM_DUMMIES] = {0.0f, 0.0f} |
| float | m_aGameTickTime [NUM_DUMMIES] = {0.0f, 0.0f} |
| float | m_aGameIntraTickSincePrev [NUM_DUMMIES] = {0.0f, 0.0f} |
| int | m_aPredTick [NUM_DUMMIES] = {0, 0} |
| float | m_aPredIntraTick [NUM_DUMMIES] = {0.0f, 0.0f} |
| float | m_LocalTime = 0.0f |
| float | m_GlobalTime = 0.0f |
| float | m_RenderFrameTime = 0.0001f |
| float | m_FrameTimeAverage = 0.0001f |
| TLoadingCallback | m_LoadingCallback = nullptr |
| char | m_aNews [3000] = "" |
| int | m_Points = -1 |
| int64_t | m_ReconnectTime = 0 |
Additional Inherited Members | |
| Protected Member Functions inherited from IInterface | |
| IKernel * | Kernel () |
| typedef std::function<void(ELoadingCallbackDetail Detail)> IClient::TLoadingCallback |
| anonymous enum |
|
strong |
More precise state for
| Enumerator | |
|---|---|
| LOADING_STATE_DETAIL_INITIAL | |
| LOADING_STATE_DETAIL_LOADING_MAP | |
| LOADING_STATE_DETAIL_LOADING_DEMO | |
| LOADING_STATE_DETAIL_SENDING_READY | |
| LOADING_STATE_DETAIL_GETTING_READY | |
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
inline |
|
inline |
|
inline |
|
inline |
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
inline |
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
inlinestatic |
|
inline |
|
inline |
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
inline |
|
inline |
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
inline |
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
inline |
|
inline |
|
inline |
|
inline |
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
inline |
|
inline |
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
inline |
|
inline |
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
inline |
|
inline |
|
inline |
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
inline |
|
inline |
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Implemented in CClient.
|
pure virtual |
Opens a file or directory with the default program.
| pFilename | The file or folder to open with the default program. |
Implemented in CClient.
|
pure virtual |
Opens a link in the browser.
| pLink | The link to open in a browser. |
Implemented in CClient.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| CTranslationContext IClient::m_TranslationContext |