SC2API
An API for AI for StarCraft II
|
Public Member Functions | |
virtual ProtoInterface & | Proto ()=0 |
virtual bool | Connect (const std::string &address, int port, int timeout_ms)=0 |
virtual bool | RemoteSaveMap (const void *data, int data_size, std::string remote_path)=0 |
virtual bool | CreateGame (const std::string &map_path, const std::vector< PlayerSetup > &players, bool realtime)=0 |
virtual bool | RequestJoinGame (PlayerSetup setup, const InterfaceSettings &settings, const Ports &ports=Ports())=0 |
virtual bool | WaitJoinGame ()=0 |
virtual bool | RequestLeaveGame ()=0 |
virtual bool | PollLeaveGame ()=0 |
virtual bool | Step (int count=1)=0 |
virtual bool | WaitStep ()=0 |
virtual bool | SaveReplay (const std::string &path)=0 |
virtual bool | Ping ()=0 |
virtual GameResponsePtr | WaitForResponse ()=0 |
virtual void | SetProcessInfo (const ProcessInfo &pi)=0 |
virtual const ProcessInfo & | GetProcessInfo () const =0 |
virtual AppState | GetAppState () const =0 |
virtual SC2APIProtocol::Status | GetLastStatus () const =0 |
virtual bool | IsInGame () const =0 |
virtual bool | IsFinishedGame () const =0 |
virtual bool | IsReadyForCreateGame () const =0 |
virtual bool | HasResponsePending () const =0 |
virtual bool | GetObservation ()=0 |
virtual bool | PollResponse ()=0 |
virtual bool | ConsumeResponse ()=0 |
virtual bool | IssueEvents (const std::vector< Tag > &commands={})=0 |
virtual void | OnGameStart ()=0 |
virtual void | DumpProtoUsage ()=0 |
virtual void | Error (ClientError error, const std::vector< std::string > &errors={})=0 |
virtual void | ErrorIf (bool condition, ClientError error, const std::vector< std::string > &errors={})=0 |
virtual const std::vector< ClientError > & | GetClientErrors () const =0 |
virtual const std::vector< std::string > & | GetProtocolErrors () const =0 |
virtual void | ClearClientErrors ()=0 |
virtual void | ClearProtocolErrors ()=0 |
virtual void | UseGeneralizedAbility (bool value)=0 |
virtual void | Save ()=0 |
virtual void | Load ()=0 |