ClientEvents
public abstract class S2Agent
extends java.lang.Object
Constructor | Description |
---|---|
S2Agent() |
Modifier and Type | Method | Description |
---|---|---|
ActionInterface |
actions() |
Interface for issuing actions to units.
|
ActionFeatureLayerInterface |
actionsFeatureLayer() |
Interface for issuing actions in feature layers.
|
AgentControlInterface |
agentControl() |
The AgentControlInterface is only currently used for restarting a game.
|
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 ActionInterface actions()
public ActionFeatureLayerInterface actionsFeatureLayer()
public AgentControlInterface agentControl()
public ObservationInterface observation()
public QueryInterface query()
public DebugInterface debug()
public ControlInterface control()
Copyright © 2017–2018 Ocraft Project. All rights reserved.