13 #include "sc2api/sc2_game_settings.h" 14 #include "sc2api/sc2_proto_interface.h" 64 void SetTimeoutMS(uint32_t timeout_ms = kDefaultProtoInterfaceTimeout);
102 void SetReplayRecovery(
bool value);
123 bool StartGame(
const std::string& map_path = std::string());
128 bool CreateGame(
const std::string& map_path = std::string());
138 void SetupPorts(
size_t num_agents,
int port_start,
bool check_single =
true);
187 bool RemoteSaveMap(
const void* data,
int data_size, std::string remote_path);
193 CoordinatorImp* imp_;
bool SetReplayPath(const std::string &path)
Sets the path for to a folder of replays to analyze.
void SaveReplayList(const std::string &file_path)
Saves replays to a file.
void SetPortStart(int port_start)
Settings for an RGB rendered output.
Definition: sc2_game_settings.h:49
void SetParticipants(const std::vector< PlayerSetup > &participants)
Sets up the bots and whether they are controlled by in-built AI, human or a custom bot...
void WaitForAllResponses()
Blocks for all bots to receive any pending responses.
void AddReplayObserver(ReplayObserver *replay_observer)
Add an instance of ReplayObserver, each ReplayObserver will run a separate StarCraft II client...
void LaunchStarcraft()
Uses settings gathered from LoadSettings, specifically the path to the executable, to run StarCraft II.
Definition: sc2_action.h:9
void SetMultithreaded(bool value)
void SetProcessPath(const std::string &path)
void SetWindowLocation(int x, int y)
Coordinator of one or more clients. Used to start, step and stop games and replays.
Definition: sc2_coordinator.h:23
bool LoadSettings(int argc, char **argv)
void SetupPorts(size_t num_agents, int port_start, bool check_single=true)
void SetRealtime(bool value)
bool RemoteSaveMap(const void *data, int data_size, std::string remote_path)
Saves a binary blob as a map to a remote location.
A client for running a replay.
Definition: sc2_replay_observer.h:20
bool AllGamesEnded() const
Returns true if all running games have ended.
bool CreateGame(const std::string &map_path=std::string())
void AddCommandLine(const std::string &option)
Appends a command line argument to be fed to StarCraft II when starting.
void SetTimeoutMS(uint32_t timeout_ms=kDefaultProtoInterfaceTimeout)
void Connect(int port)
Attaches to a running Starcraft.
void SetUseGeneralizedAbilityId(bool value)
bool LoadReplayList(const std::string &file_path)
Loads replays from a file.
void SetWindowSize(int width, int height)
void SetFeatureLayers(const FeatureLayerSettings &settings)
void SetRender(const RenderSettings &settings)
Settings for feature layer output.
Definition: sc2_game_settings.h:65
void SetDataVersion(const std::string &version)
void SetStepSize(int step_size)
void LeaveGame()
Requests for the currently running game to end.
bool StartGame(const std::string &map_path=std::string())
std::string GetExePath() const