![]() |
DDNet documentation
|
#include <ghost.h>
Classes | |
| class | CGhostPath |
| class | CGhostItem |
Public Member Functions | |
| int | Sizeof () const override |
| void | OnRender () override |
| void | OnConsoleInit () override |
| void | OnReset () override |
| void | OnMessage (int MsgType, void *pRawMsg) override |
| void | OnMapLoad () override |
| void | OnShutdown () override |
| void | OnNewSnapshot () override |
| void | OnNewPredictedSnapshot () |
| int | FreeSlots () const |
| int | Load (const char *pFilename) |
| void | Unload (int Slot) |
| void | UnloadAll () |
| void | SaveGhost (CMenus::CGhostItem *pItem) |
| const char * | GetGhostDir () const |
| class IGhostLoader * | GhostLoader () const |
| class IGhostRecorder * | GhostRecorder () const |
| Public Member Functions inherited from CComponent | |
| virtual void | OnStateChange (int NewState, int OldState) |
| virtual void | OnInit () |
| virtual void | OnWindowResize () |
| virtual void | OnUpdate () |
| virtual void | OnRelease () |
| virtual bool | OnCursorMove (float x, float y, IInput::ECursorType CursorType) |
| virtual bool | OnInput (const IInput::CEvent &Event) |
| virtual bool | OnTouchState (std::vector< IInput::CTouchFingerState > &vTouchFingerStates) |
| Public Member Functions inherited from CComponentInterfaces | |
| virtual void | OnInterfacesInit (CGameClient *pClient) |
| virtual | ~CComponentInterfaces ()=default |
Public Attributes | |
| bool | m_AllowRestart |
Private Types | |
| enum | { MAX_ACTIVE_GHOSTS = 256 } |
Private Member Functions | |
| void | GetPath (char *pBuf, int Size, const char *pPlayerName, int Time=-1) const |
| void | AddInfos (const CNetObj_Character *pChar, const CNetObj_DDNetCharacter *pDDnetChar) |
| int | GetSlot () const |
| void | CheckStart () |
| void | CheckStartLocal (bool Predicted) |
| void | TryRenderStart (int Tick, bool ServerControl) |
| void | StartRecord (int Tick) |
| void | StopRecord (int Time=-1) |
| void | StartRender (int Tick) |
| void | StopRender () |
| void | UpdateTeeRenderInfo (CGhostItem &Ghost) |
Static Private Member Functions | |
| static void | SetGhostSkinData (CGhostSkin *pSkin, const char *pSkinName, int UseCustomColor, int ColorBody, int ColorFeet) |
| static void | GetGhostCharacter (CGhostCharacter *pGhostChar, const CNetObj_Character *pChar, const CNetObj_DDNetCharacter *pDDnetChar) |
| static void | GetNetObjCharacter (CNetObj_Character *pChar, const CGhostCharacter *pGhostChar) |
| static void | ConGPlay (IConsole::IResult *pResult, void *pUserData) |
Private Attributes | |
| class IGhostLoader * | m_pGhostLoader |
| class IGhostRecorder * | m_pGhostRecorder |
| CGhostItem | m_aActiveGhosts [MAX_ACTIVE_GHOSTS] |
| CGhostItem | m_CurGhost |
| char | m_aTmpFilename [IO_MAX_PATH_LENGTH] |
| int | m_NewRenderTick = -1 |
| int | m_StartRenderTick = -1 |
| int | m_LastDeathTick = -1 |
| bool | m_Recording = false |
| bool | m_Rendering = false |
| bool | m_RenderingStartedByServer = false |
Static Private Attributes | |
| static const char * | ms_pGhostDir = "ghosts" |
Additional Inherited Members | |
| Protected Member Functions inherited from CComponentInterfaces | |
| class CGameClient * | GameClient () const |
| class IClient * | Client () const |
| class IKernel * | Kernel () const |
| class IEngine * | Engine () const |
| class IGraphics * | Graphics () const |
| class ITextRender * | TextRender () const |
| class IInput * | Input () const |
| class IStorage * | Storage () const |
| class CUi * | Ui () const |
| class ISound * | Sound () const |
| class CRenderTools * | RenderTools () const |
| class CRenderMap * | RenderMap () const |
| class IConfigManager * | ConfigManager () const |
| class CConfig * | Config () const |
| class IConsole * | Console () const |
| class IDemoPlayer * | DemoPlayer () const |
| class IDemoRecorder * | DemoRecorder (int Recorder) const |
| class IFavorites * | Favorites () const |
| class IServerBrowser * | ServerBrowser () const |
| class CLayers * | Layers () const |
| class CCollision * | Collision () const |
| int64_t | time () const |
| float | LocalTime () const |
| class IHttp * | Http () const |
|
private |
|
private |
|
private |
|
staticprivate |
| int CGhost::FreeSlots | ( | ) | const |
|
staticprivate |
|
inline |
|
staticprivate |
|
private |
|
private |
|
inline |
|
inline |
| int CGhost::Load | ( | const char * | pFilename | ) |
|
overridevirtual |
Called to let the components register their console commands.
Reimplemented from CComponent.
|
overridevirtual |
Called on map load.
Reimplemented from CComponent.
|
overridevirtual |
Called when receiving a network message.
| Msg | The message type. |
| pRawMsg | The message data. |
Reimplemented from CComponent.
| void CGhost::OnNewPredictedSnapshot | ( | ) |
|
overridevirtual |
Called when a new snapshot is received.
Reimplemented from CComponent.
|
overridevirtual |
Called when the component should get rendered.
The render order depends on the component insertion order.
Reimplemented from CComponent.
|
overridevirtual |
Called to reset the component. This method is usually called on your component constructor to avoid code duplication.
Reimplemented from CComponent.
|
overridevirtual |
Called to cleanup the component. This method is called when the client is closed.
Reimplemented from CComponent.
| void CGhost::SaveGhost | ( | CMenus::CGhostItem * | pItem | ) |
|
staticprivate |
|
inlineoverridevirtual |
Gets the size of the non-abstract component.
Implements CComponent.
|
private |
|
private |
|
private |
|
private |
|
private |
| void CGhost::Unload | ( | int | Slot | ) |
| void CGhost::UnloadAll | ( | ) |
|
private |
|
private |
| bool CGhost::m_AllowRestart |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |