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

#include <playscript.h>

Public Member Functions

 PlayScript (std::vector< EnvVar > const &vars, std::string script="/workspace/scripts/ladder/play")
 
 ~PlayScript ()
 
bool connect (torchcraft::Client *client, int timeoutMs=-1)
 Connect a TorchCraft client to this instance. More...
 

Constructor & Destructor Documentation

cherrypi::PlayScript::PlayScript ( std::vector< EnvVar > const &  vars,
std::string  script = "/workspace/scripts/ladder/play" 
)
cherrypi::PlayScript::~PlayScript ( )

Member Function Documentation

bool cherrypi::PlayScript::connect ( torchcraft::Client client,
int  timeoutMs = -1 
)

Connect a TorchCraft client to this instance.

Returns whether the client connected successfully connected. Note that this function can be called multiple times. After a game ends, it can be called again to start and connect to the next game in the series.


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