public interface ControlInterface
Modifier and Type | Method | Description |
---|---|---|
AgentControlInterface |
agentControl() |
|
void |
clearClientErrors() |
|
void |
clearProtocolErrors() |
|
boolean |
connect(ProcessSettings processSettings) |
|
boolean |
createGame(BattlenetMap battlenetMap,
java.util.List<PlayerSettings> playerSettings,
java.lang.Boolean realtime) |
|
boolean |
createGame(LocalMap localMap,
java.util.List<PlayerSettings> playerSettings,
java.lang.Boolean realtime) |
|
DebugInterface |
debug() |
|
void |
dumpProtoUsage() |
|
void |
error(ClientError error,
java.util.List<java.lang.String> errors) |
|
void |
errorIf(boolean condition,
ClientError error,
java.util.List<java.lang.String> errors) |
|
AppState |
getAppState() |
|
java.util.List<ClientError> |
getClientErrors() |
|
GameStatus |
getLastStatus() |
|
boolean |
getObservation() |
|
ProcessInfo |
getProcessInfo() |
|
java.util.List<java.lang.String> |
getProtocolErrors() |
|
io.reactivex.Maybe<Response> |
getResponsePending(ResponseType type) |
|
boolean |
hasResponsePending() |
|
boolean |
hasResponsePending(ResponseType type) |
|
boolean |
isFinishedGame() |
|
boolean |
isInGame() |
|
boolean |
isMultiplayer() |
|
boolean |
isReadyForCreateGame() |
|
boolean |
issueEvents(java.util.List<Tag> commands) |
|
boolean |
load() |
|
ObservationInterface |
observation() |
|
ObserverActionInterface |
observerAction() |
|
void |
onGameStart() |
|
boolean |
ping() |
|
boolean |
pollLeaveGame() |
|
boolean |
pollLeaveGame(io.reactivex.Maybe<Response> waitFor) |
|
boolean |
pollResponse(ResponseType type) |
|
ProtoInterface |
proto() |
|
QueryInterface |
query() |
|
void |
quit() |
|
boolean |
remoteSaveMap(LocalMap localMap) |
|
ReplayControlInterface |
replayControl(S2ReplayObserver replayObserver) |
|
io.reactivex.Maybe<Response> |
requestJoinGame(PlayerSettings playerSettings,
InterfaceSettings interfaceSettings,
MultiplayerOptions multiplayerOptions) |
|
io.reactivex.Maybe<Response> |
requestLeaveGame() |
|
boolean |
save() |
|
boolean |
saveReplay(java.nio.file.Path path) |
|
void |
setProcessInfo(ProcessInfo pi) |
|
io.reactivex.Maybe<Response> |
step(int count) |
|
void |
useGeneralizedAbility(boolean useGeneralizedAbilityId) |
|
java.util.Optional<Response> |
waitForResponse(io.reactivex.Maybe<Response> waitFor) |
|
boolean |
waitJoinGame(io.reactivex.Maybe<Response> waitFor) |
|
boolean |
waitStep(io.reactivex.Maybe<Response> waitFor) |
ProtoInterface proto()
ObservationInterface observation()
boolean connect(ProcessSettings processSettings)
boolean remoteSaveMap(LocalMap localMap)
boolean createGame(BattlenetMap battlenetMap, java.util.List<PlayerSettings> playerSettings, java.lang.Boolean realtime)
boolean createGame(LocalMap localMap, java.util.List<PlayerSettings> playerSettings, java.lang.Boolean realtime)
io.reactivex.Maybe<Response> requestJoinGame(PlayerSettings playerSettings, InterfaceSettings interfaceSettings, MultiplayerOptions multiplayerOptions)
boolean isMultiplayer()
boolean waitJoinGame(io.reactivex.Maybe<Response> waitFor)
io.reactivex.Maybe<Response> requestLeaveGame()
boolean pollLeaveGame(io.reactivex.Maybe<Response> waitFor)
boolean pollLeaveGame()
io.reactivex.Maybe<Response> step(int count)
boolean waitStep(io.reactivex.Maybe<Response> waitFor)
boolean saveReplay(java.nio.file.Path path) throws java.io.IOException
java.io.IOException
boolean ping()
void quit()
void setProcessInfo(ProcessInfo pi)
ProcessInfo getProcessInfo()
AppState getAppState()
GameStatus getLastStatus()
boolean isInGame()
boolean isFinishedGame()
boolean isReadyForCreateGame()
boolean pollResponse(ResponseType type)
boolean hasResponsePending(ResponseType type)
boolean hasResponsePending()
io.reactivex.Maybe<Response> getResponsePending(ResponseType type)
boolean getObservation()
boolean issueEvents(java.util.List<Tag> commands)
void onGameStart()
void dumpProtoUsage()
void error(ClientError error, java.util.List<java.lang.String> errors)
void errorIf(boolean condition, ClientError error, java.util.List<java.lang.String> errors)
java.util.List<ClientError> getClientErrors()
java.util.List<java.lang.String> getProtocolErrors()
void clearClientErrors()
void clearProtocolErrors()
void useGeneralizedAbility(boolean useGeneralizedAbilityId)
boolean save()
boolean load()
AgentControlInterface agentControl()
QueryInterface query()
DebugInterface debug()
ObserverActionInterface observerAction()
ReplayControlInterface replayControl(S2ReplayObserver replayObserver)
Copyright © 2017–2018 Ocraft Project. All rights reserved.