11 #include <torchcraft/client.h> 13 #include "forkserver.h" 16 #include "fifopipes.h" 32 std::string
const& map,
33 torchcraft::BW::Race myRace,
34 std::string
const& enemyBot,
36 std::string
const& replayPath = std::string(),
37 bool forceGui =
false);
39 std::shared_ptr<torchcraft::Client>
makeClient(
44 std::shared_ptr<OpenBwProcess> proc1_;
45 std::shared_ptr<OpenBwProcess> proc2_;
58 std::vector<std::string> maps,
60 std::string outputPath =
"playoutput",
61 std::vector<EnvVar> vars = {});
65 std::string outputPath =
"playoutput",
66 std::vector<EnvVar> vars = {});
70 std::shared_ptr<torchcraft::Client>
makeClient(
75 void setAutoDelete(
bool autoDelete);
80 return numGamesStarted_;
94 std::shared_ptr<PlayScript> proc_;
95 std::string enemyBot_;
96 size_t numGamesStarted_ = 0;
98 bool autoDelete_ =
false;
std::shared_ptr< torchcraft::Client > makeClient(torchcraft::Client::Options opts=torchcraft::Client::Options())
Definition: gamevsbot.cpp:64
GameType
Definition: gametype.h:12
std::string path() const
Path to playoutput directory for this series.
Definition: gamevsbot.h:84
std::string enemyBot() const
Enemy bot as specified in the constructor.
Definition: gamevsbot.h:89
Launches a game series against a bot using StarCraft: Brood War(TM) via Wine.
Definition: gamevsbot.h:55
GameVsBotInOpenBW(std::string const &map, torchcraft::BW::Race myRace, std::string const &enemyBot, GameType gameType=GameType::Melee, std::string const &replayPath=std::string(), bool forceGui=false)
Definition: gamevsbot.cpp:29
Definition: fifopipes.h:14
size_t numGamesStarted() const
The number of games that have been started in this series.
Definition: gamevsbot.h:79
Launches a game against a DLL bot using OpenBW.
Definition: gamevsbot.h:29
Main namespace for bot-related code.
Definition: areainfo.cpp:17