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

Play back a Brood War replay using OpenBW. More...

#include <replayer.h>

Inherited by cherrypi::Replayer.

Public Member Functions

 TCReplayer (std::string replayPath)
 
 TCReplayer (ReplayerConfiguration)
 
virtual ~TCReplayer ()
 
torchcraft::Statetcstate () const
 
void init ()
 
void step ()
 
void run ()
 
bool isComplete ()
 
virtual void onStep ()
 

Protected Attributes

ReplayerConfiguration configuration_
 
std::unique_ptr< OpenBwProcessopenbw_
 
std::shared_ptr< torchcraft::Clientclient_
 
bool initialized_ = false
 

Detailed Description

Play back a Brood War replay using OpenBW.

Provides a TorchCraft view of the game state.

Constructor & Destructor Documentation

cherrypi::TCReplayer::TCReplayer ( std::string  replayPath)
cherrypi::TCReplayer::TCReplayer ( ReplayerConfiguration  configuration)
virtual cherrypi::TCReplayer::~TCReplayer ( )
inlinevirtual

Member Function Documentation

void cherrypi::TCReplayer::init ( )
bool cherrypi::TCReplayer::isComplete ( )
inline
virtual void cherrypi::TCReplayer::onStep ( )
inlinevirtual

Reimplemented in cherrypi::Replayer.

void cherrypi::TCReplayer::run ( )
void cherrypi::TCReplayer::step ( )
torchcraft::State * cherrypi::TCReplayer::tcstate ( ) const

Member Data Documentation

std::shared_ptr<torchcraft::Client> cherrypi::TCReplayer::client_
protected
ReplayerConfiguration cherrypi::TCReplayer::configuration_
protected
bool cherrypi::TCReplayer::initialized_ = false
protected
std::unique_ptr<OpenBwProcess> cherrypi::TCReplayer::openbw_
protected

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