![]() |
DDraceNetwork Documentation
|
#include <demo.h>
Classes | |
| class | IListener |
| class | CPlaybackInfo |
| class | CKeyFrame |
Public Member Functions | |
| CDemoPlayer (class CSnapshotDelta *pSnapshotDelta, bool UseVideo) | |
| CDemoPlayer (class CSnapshotDelta *pSnapshotDelta, bool UseVideo, TUpdateIntraTimesFunc &&UpdateIntraTimesFunc) | |
| ~CDemoPlayer () override | |
| void | Construct (class CSnapshotDelta *pSnapshotDelta, bool UseVideo) |
| void | SetListener (IListener *pListener) |
| int | Load (class IStorage *pStorage, class IConsole *pConsole, const char *pFilename, int StorageType) |
| unsigned char * | GetMapData (class IStorage *pStorage) |
| bool | ExtractMap (class IStorage *pStorage) |
| void | Play () |
| void | Pause () override |
| void | Unpause () override |
| void | Stop (const char *pErrorMessage="") |
| void | SetSpeed (float Speed) override |
| void | SetSpeedIndex (int SpeedIndex) override |
| void | AdjustSpeedIndex (int Offset) override |
| bool | SeekPercent (float Percent) override |
| bool | SeekTime (float Seconds) override |
| bool | SeekTick (ETickOffset TickOffset) override |
| bool | SetPos (int WantedTick) override |
| const CInfo * | BaseInfo () const override |
| void | GetDemoName (char *pBuffer, size_t BufferSize) const override |
| bool | GetDemoInfo (class IStorage *pStorage, class IConsole *pConsole, const char *pFilename, int StorageType, CDemoHeader *pDemoHeader, CTimelineMarkers *pTimelineMarkers, CMapInfo *pMapInfo, IOHANDLE *pFile=nullptr, char *pErrorMessage=nullptr, size_t ErrorMessageSize=0) const override |
| const char * | Filename () const |
| const char * | ErrorMessage () const override |
| void | Update (bool RealTime=true) |
| bool | IsSixup () const |
| const CPlaybackInfo * | Info () const |
| bool | IsPlaying () const override |
| const CMapInfo * | GetMapInfo () const |
| Public Member Functions inherited from IInterface | |
| IInterface () | |
| virtual void | Shutdown () |
| virtual | ~IInterface ()=default |
Private Types | |
| enum | EReadChunkHeaderResult { CHUNKHEADER_SUCCESS , CHUNKHEADER_ERROR , CHUNKHEADER_EOF } |
| enum class | EScanFileResult { SUCCESS , ERROR_RECOVERABLE , ERROR_UNRECOVERABLE } |
Private Member Functions | |
| EReadChunkHeaderResult | ReadChunkHeader (int *pType, int *pSize, int *pTick) |
| void | DoTick () |
| EScanFileResult | ScanFile () |
| void | UpdateTimes () |
| int64_t | Time () |
Private Attributes | |
| IListener * | m_pListener |
| TUpdateIntraTimesFunc | m_UpdateIntraTimesFunc |
| class IConsole * | m_pConsole |
| IOHANDLE | m_File |
| int64_t | m_MapOffset |
| char | m_aFilename [IO_MAX_PATH_LENGTH] |
| char | m_aErrorMessage [256] |
| std::vector< CKeyFrame > | m_vKeyFrames |
| CMapInfo | m_MapInfo |
| int | m_SpeedIndex |
| CPlaybackInfo | m_Info |
| unsigned char | m_aCompressedSnapshotData [CSnapshot::MAX_SIZE] |
| unsigned char | m_aDecompressedSnapshotData [CSnapshot::MAX_SIZE] |
| unsigned char | m_aChunkData [CSnapshot::MAX_SIZE] |
| unsigned char | m_aSnapshot [CSnapshot::MAX_SIZE] |
| unsigned char | m_aLastSnapshotData [CSnapshot::MAX_SIZE] |
| int | m_LastSnapshotDataSize |
| class CSnapshotDelta * | m_pSnapshotDelta |
| bool | m_UseVideo |
| bool | m_WasRecording = false |
| bool | m_Sixup |
Additional Inherited Members | |
| Public Types inherited from IDemoPlayer | |
| enum | ETickOffset { TICK_CURRENT , TICK_PREVIOUS , TICK_NEXT } |
| Static Public Member Functions inherited from IDemoPlayer | |
| static const char * | InterfaceName () |
| Protected Member Functions inherited from IInterface | |
| IKernel * | Kernel () |
|
private |
|
strongprivate |
| CDemoPlayer::CDemoPlayer | ( | class CSnapshotDelta * | pSnapshotDelta, |
| bool | UseVideo ) |
| CDemoPlayer::CDemoPlayer | ( | class CSnapshotDelta * | pSnapshotDelta, |
| bool | UseVideo, | ||
| TUpdateIntraTimesFunc && | UpdateIntraTimesFunc ) |
|
override |
|
overridevirtual |
Implements IDemoPlayer.
|
inlineoverridevirtual |
Implements IDemoPlayer.
| void CDemoPlayer::Construct | ( | class CSnapshotDelta * | pSnapshotDelta, |
| bool | UseVideo ) |
|
private |
|
inlineoverridevirtual |
Implements IDemoPlayer.
| bool CDemoPlayer::ExtractMap | ( | class IStorage * | pStorage | ) |
|
inline |
|
overridevirtual |
Implements IDemoPlayer.
|
overridevirtual |
Implements IDemoPlayer.
| unsigned char * CDemoPlayer::GetMapData | ( | class IStorage * | pStorage | ) |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements IDemoPlayer.
|
inline |
| int CDemoPlayer::Load | ( | class IStorage * | pStorage, |
| class IConsole * | pConsole, | ||
| const char * | pFilename, | ||
| int | StorageType ) |
|
overridevirtual |
Implements IDemoPlayer.
| void CDemoPlayer::Play | ( | ) |
|
private |
|
private |
|
overridevirtual |
Implements IDemoPlayer.
|
overridevirtual |
Implements IDemoPlayer.
|
overridevirtual |
Implements IDemoPlayer.
| void CDemoPlayer::SetListener | ( | IListener * | pListener | ) |
|
overridevirtual |
Implements IDemoPlayer.
|
overridevirtual |
Implements IDemoPlayer.
|
overridevirtual |
Implements IDemoPlayer.
| void CDemoPlayer::Stop | ( | const char * | pErrorMessage = "" | ) |
|
private |
|
overridevirtual |
Implements IDemoPlayer.
| void CDemoPlayer::Update | ( | bool | RealTime = true | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |