TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
|
#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... | |
cherrypi::PlayScript::PlayScript | ( | std::vector< EnvVar > const & | vars, |
std::string | script = "/workspace/scripts/ladder/play" |
||
) |
cherrypi::PlayScript::~PlayScript | ( | ) |
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.