ClientEvents
public class S2ReplayObserver
extends java.lang.Object
Constructor | Description |
---|---|
S2ReplayObserver() |
Modifier and Type | Method | Description |
---|---|---|
ControlInterface |
control() |
The ControlInterface is only meant to be used by the coordinator as it provides functionality for connecting
to Starcraft2, setting up a websocket connection and issuing blocking commands via SC2's protocol.
|
DebugInterface |
debug() |
The DebugInterface allows a derived class to print text, draw primitive shapes and spawn/destroy units.
|
ObservationInterface |
observation() |
The ObservationInterface is used to query game state.
|
QueryInterface |
query() |
The QueryInterface interface is used to issue commands to units.
|
onBuildingConstructionComplete, onError, onGameEnd, onGameFullStart, onGameStart, onNuclearLaunchDetected, onNydusDetected, onStep, onUnitCreated, onUnitDestroyed, onUnitEnterVision, onUnitIdle, onUpgradeCompleted
public ObservationInterface observation()
public QueryInterface query()
public DebugInterface debug()
public ControlInterface control()
Copyright © 2017–2018 Ocraft Project. All rights reserved.