Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CDummyReplayLogger Class Reference

Implementation of IReplayLogger that simply throws away all data. More...

#include <Replay.h>

Inheritance diagram for CDummyReplayLogger:
Collaboration diagram for CDummyReplayLogger:

Public Member Functions

virtual void StartGame (JS::MutableHandleValue attribs)
 Started the game with the given game attributes. More...
 
virtual void Turn (u32 n, u32 turnLength, 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...
 
virtual void SaveMetadata (const CSimulation2 &simulation)
 Saves metadata.json containing part of the simulation state used for the summary screen. More...
 
virtual OsPath GetDirectory () const
 Remember the directory containing the commands.txt file, so that we can save additional files to it. More...
 
- Public Member Functions inherited from IReplayLogger
 IReplayLogger ()
 
virtual ~IReplayLogger ()
 
virtual void StartGame (JS::MutableHandleValue attribs)=0
 Started the game with the given game attributes. More...
 
virtual void Turn (u32 n, u32 turnLength, 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...
 
virtual void SaveMetadata (const CSimulation2 &simulation)=0
 Saves metadata.json containing part of the simulation state used for the summary screen. More...
 
virtual OsPath GetDirectory () const =0
 Remember the directory containing the commands.txt file, so that we can save additional files to it. More...
 

Detailed Description

Implementation of IReplayLogger that simply throws away all data.

Member Function Documentation

◆ GetDirectory()

virtual OsPath CDummyReplayLogger::GetDirectory ( ) const
inlinevirtual

Remember the directory containing the commands.txt file, so that we can save additional files to it.

Implements IReplayLogger.

◆ Hash()

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

Optional hash of simulation state (for sync checking).

Implements IReplayLogger.

◆ SaveMetadata()

virtual void CDummyReplayLogger::SaveMetadata ( const CSimulation2 simulation)
inlinevirtual

Saves metadata.json containing part of the simulation state used for the summary screen.

Implements IReplayLogger.

◆ StartGame()

virtual void CDummyReplayLogger::StartGame ( JS::MutableHandleValue  attribs)
inlinevirtual

Started the game with the given game attributes.

Implements IReplayLogger.

◆ Turn()

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

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

Implements IReplayLogger.


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