2010-11-20 10:37:14 +00:00
|
|
|
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
|
|
|
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
2010-05-29 07:25:38 +00:00
|
|
|
#ifndef ENGINE_DEMO_H
|
|
|
|
#define ENGINE_DEMO_H
|
|
|
|
|
|
|
|
#include "kernel.h"
|
|
|
|
|
|
|
|
class IDemoPlayer : public IInterface
|
|
|
|
{
|
|
|
|
MACRO_INTERFACE("demoplayer", 0)
|
|
|
|
public:
|
|
|
|
class CInfo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool m_Paused;
|
|
|
|
float m_Speed;
|
|
|
|
|
|
|
|
int m_FirstTick;
|
|
|
|
int m_CurrentTick;
|
|
|
|
int m_LastTick;
|
|
|
|
};
|
|
|
|
|
|
|
|
~IDemoPlayer() {}
|
|
|
|
virtual void SetSpeed(float Speed) = 0;
|
|
|
|
virtual int SetPos(float Precent) = 0;
|
|
|
|
virtual void Pause() = 0;
|
|
|
|
virtual void Unpause() = 0;
|
|
|
|
virtual const CInfo *BaseInfo() const = 0;
|
2010-09-06 19:36:39 +00:00
|
|
|
virtual char *GetDemoName() = 0;
|
2010-10-09 11:27:21 +00:00
|
|
|
virtual bool GetDemoInfo(class IStorage *pStorage, const char *pFilename, int StorageType, char *pMap, int BufferSize) const = 0;
|
2010-05-29 07:25:38 +00:00
|
|
|
};
|
|
|
|
|
2010-08-09 12:14:15 +00:00
|
|
|
class IDemoRecorder : public IInterface
|
|
|
|
{
|
|
|
|
MACRO_INTERFACE("demorecorder", 0)
|
|
|
|
public:
|
|
|
|
~IDemoRecorder() {}
|
|
|
|
virtual bool IsRecording() const = 0;
|
|
|
|
virtual int Stop() = 0;
|
|
|
|
};
|
|
|
|
|
2010-05-29 07:25:38 +00:00
|
|
|
#endif
|