DDraceNetwork Docs
|
#include <demo.h>
Classes | |
struct | CPlaybackInfo |
class | IListener |
struct | SKeyFrame |
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) |
int | 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 |
int | SeekPercent (float Percent) override |
int | SeekTime (float Seconds) override |
int | SeekTick (ETickOffset TickOffset) override |
int | 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 |
int | Update (bool RealTime=true) |
bool | IsSixup () const |
const CPlaybackInfo * | Info () const |
bool | IsPlaying () const override |
const CMapInfo * | GetMapInfo () const |
Public Member Functions inherited from IDemoPlayer | |
virtual | ~IDemoPlayer () |
virtual void | SetSpeed (float Speed)=0 |
virtual void | SetSpeedIndex (int SpeedIndex)=0 |
virtual void | AdjustSpeedIndex (int Offset)=0 |
virtual int | SeekPercent (float Percent)=0 |
virtual int | SeekTime (float Seconds)=0 |
virtual int | SeekTick (ETickOffset TickOffset)=0 |
virtual int | SetPos (int WantedTick)=0 |
virtual void | Pause ()=0 |
virtual void | Unpause ()=0 |
virtual const char * | ErrorMessage () const =0 |
virtual bool | IsPlaying () const =0 |
virtual const CInfo * | BaseInfo () const =0 |
virtual void | GetDemoName (char *pBuffer, size_t BufferSize) const =0 |
virtual 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 =0 |
Public Member Functions inherited from IInterface | |
IInterface () | |
virtual void | Shutdown () |
virtual | ~IInterface () |
Private Types | |
enum | EReadChunkHeaderResult { CHUNKHEADER_SUCCESS , CHUNKHEADER_ERROR , CHUNKHEADER_EOF } |
Private Member Functions | |
EReadChunkHeaderResult | ReadChunkHeader (int *pType, int *pSize, int *pTick) |
void | DoTick () |
bool | ScanFile () |
int64_t | Time () |
Private Attributes | |
IListener * | m_pListener |
TUpdateIntraTimesFunc | m_UpdateIntraTimesFunc |
class IConsole * | m_pConsole |
IOHANDLE | m_File |
long | m_MapOffset |
char | m_aFilename [IO_MAX_PATH_LENGTH] |
char | m_aErrorMessage [256] |
std::vector< SKeyFrame > | 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 |
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.
int 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.
int 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 |