TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Member Functions | Public Attributes | Protected Attributes | List of all members
cherrypi::Snapshotter Class Reference

Records "snapshots" – low-fidelity recordings of game state which can be loaded as micro scenarios. More...

#include <snapshotter.h>

Public Member Functions

virtual bool isCameraReady (torchcraft::State *)
 Is the current game state appropriate for taking a snapshot? More...
 
virtual std::string outputDirectory ()
 
void step (torchcraft::State *)
 

Public Attributes

int cooldownFramesMax = 24 * 10
 Minimum number of frames in between taking snapshots. More...
 
int maxSnapshots = 20
 Stop snapshotting a game after this many snapshots have been taken. More...
 
std::string snapshotName = "snapshot"
 

Protected Attributes

int lastFrame_ = 0
 
int cooldownFrames_ = 0
 
int snapshots_ = 0
 

Detailed Description

Records "snapshots" – low-fidelity recordings of game state which can be loaded as micro scenarios.

Member Function Documentation

virtual bool cherrypi::Snapshotter::isCameraReady ( torchcraft::State )
inlinevirtual

Is the current game state appropriate for taking a snapshot?

std::string cherrypi::Snapshotter::outputDirectory ( )
virtual
void cherrypi::Snapshotter::step ( torchcraft::State state)

Member Data Documentation

int cherrypi::Snapshotter::cooldownFrames_ = 0
protected
int cherrypi::Snapshotter::cooldownFramesMax = 24 * 10

Minimum number of frames in between taking snapshots.

int cherrypi::Snapshotter::lastFrame_ = 0
protected
int cherrypi::Snapshotter::maxSnapshots = 20

Stop snapshotting a game after this many snapshots have been taken.

std::string cherrypi::Snapshotter::snapshotName = "snapshot"
int cherrypi::Snapshotter::snapshots_ = 0
protected

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