Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CReplayLogger Class Reference

Implementation of IReplayLogger that saves data to a file in the logs directory. More...

#include <Replay.h>

Inheritance diagram for CReplayLogger:
IReplayLogger

Public Member Functions

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

Private Member Functions

 NONCOPYABLE (CReplayLogger)
 

Private Attributes

ScriptInterfacem_ScriptInterface
 
std::ostream * m_Stream
 

Detailed Description

Implementation of IReplayLogger that saves data to a file in the logs directory.

Definition at line 65 of file Replay.h.

Constructor & Destructor Documentation

CReplayLogger::CReplayLogger ( ScriptInterface scriptInterface)

Definition at line 54 of file Replay.cpp.

CReplayLogger::~CReplayLogger ( )

Definition at line 73 of file Replay.cpp.

Member Function Documentation

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

Optional hash of simulation state (for sync checking).

Implements IReplayLogger.

Definition at line 94 of file Replay.cpp.

CReplayLogger::NONCOPYABLE ( CReplayLogger  )
private
void CReplayLogger::StartGame ( const CScriptValRooted attribs)
virtual

Started the game with the given game attributes.

Implements IReplayLogger.

Definition at line 78 of file Replay.cpp.

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

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

Implements IReplayLogger.

Definition at line 83 of file Replay.cpp.

Member Data Documentation

ScriptInterface& CReplayLogger::m_ScriptInterface
private

Definition at line 77 of file Replay.h.

std::ostream* CReplayLogger::m_Stream
private

Definition at line 78 of file Replay.h.


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