TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
|
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 |
Records "snapshots" – low-fidelity recordings of game state which can be loaded as micro scenarios.
|
inlinevirtual |
Is the current game state appropriate for taking a snapshot?
|
virtual |
void cherrypi::Snapshotter::step | ( | torchcraft::State * | state | ) |
|
protected |
int cherrypi::Snapshotter::cooldownFramesMax = 24 * 10 |
Minimum number of frames in between taking snapshots.
|
protected |
int cherrypi::Snapshotter::maxSnapshots = 20 |
Stop snapshotting a game after this many snapshots have been taken.
std::string cherrypi::Snapshotter::snapshotName = "snapshot" |
|
protected |