Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
IReplayLogger Class Referenceabstract

Replay log recorder interface. More...

#include <Replay.h>

Inheritance diagram for IReplayLogger:
CDummyReplayLogger CReplayLogger

Public Member Functions

 IReplayLogger ()
 
virtual ~IReplayLogger ()
 
virtual void StartGame (const CScriptValRooted &attribs)=0
 Started the game with the given game attributes. More...
 
virtual void Turn (u32 n, u32 turnLength, const std::vector< SimulationCommand > &commands)=0
 Run the given turn with the given collection of player commands. More...
 
virtual void Hash (const std::string &hash, bool quick)=0
 Optional hash of simulation state (for sync checking). More...
 

Detailed Description

Replay log recorder interface.

Call its methods at appropriate times during the game.

Definition at line 29 of file Replay.h.

Constructor & Destructor Documentation

IReplayLogger::IReplayLogger ( )
inline

Definition at line 32 of file Replay.h.

virtual IReplayLogger::~IReplayLogger ( )
inlinevirtual

Definition at line 33 of file Replay.h.

Member Function Documentation

virtual void IReplayLogger::Hash ( const std::string &  hash,
bool  quick 
)
pure virtual

Optional hash of simulation state (for sync checking).

Implemented in CReplayLogger, and CDummyReplayLogger.

virtual void IReplayLogger::StartGame ( const CScriptValRooted attribs)
pure virtual

Started the game with the given game attributes.

Implemented in CReplayLogger, and CDummyReplayLogger.

virtual void IReplayLogger::Turn ( u32  n,
u32  turnLength,
const std::vector< SimulationCommand > &  commands 
)
pure virtual

Run the given turn with the given collection of player commands.

Implemented in CReplayLogger, and CDummyReplayLogger.


The documentation for this class was generated from the following file: