S2Agent
, S2ReplayObserver
public interface ClientEvents
Modifier and Type | Method | Description |
---|---|---|
default void |
onBuildingConstructionComplete(UnitInPool unitInPool) |
Called when the unit in the previous step had a build progress less than 1.0 but is greater than or equal to
1.0 in the current step.
|
default void |
onError(java.util.List<ClientError> clientErrors,
java.util.List<java.lang.String> protocolErrors) |
Called for various errors the library can encounter.
|
default void |
onGameEnd() |
Called when a game has ended.
|
default void |
onGameFullStart() |
Called when a game is started after a load.
|
default void |
onGameStart() |
Called when a game is started or restarted.
|
default void |
onNuclearLaunchDetected() |
Called when a nuclear launch is detected.
|
default void |
onNydusDetected() |
Called when a nydus is placed.
|
default void |
onStep() |
In non realtime games this function gets called after each step as indicated by step size.
|
default void |
onUnitCreated(UnitInPool unitInPool) |
Called when a Unit has been created by the player.
|
default void |
onUnitDestroyed(UnitInPool unitInPool) |
Called whenever one of the player's units has been destroyed.
|
default void |
onUnitEnterVision(UnitInPool unitInPool) |
Called when an enemy unit enters vision from out of fog of war.
|
default void |
onUnitIdle(UnitInPool unitInPool) |
Called when a unit becomes idle, this will only occur as an event so will only be called when the unit becomes
idle and not a second time.
|
default void |
onUpgradeCompleted(Upgrade upgrade) |
Called when an upgrade is finished, warp gate, ground weapons, baneling speed, etc.
|
default void onGameFullStart()
default void onGameStart()
default void onGameEnd()
default void onStep()
default void onUnitDestroyed(UnitInPool unitInPool)
unitInPool
- The destroyed unit.default void onUnitCreated(UnitInPool unitInPool)
unitInPool
- The created unit.default void onUnitIdle(UnitInPool unitInPool)
unitInPool
- The idle unit.default void onUpgradeCompleted(Upgrade upgrade)
upgrade
- The completed upgrade.default void onBuildingConstructionComplete(UnitInPool unitInPool)
unitInPool
- The constructed unit.default void onNydusDetected()
default void onNuclearLaunchDetected()
default void onUnitEnterVision(UnitInPool unitInPool)
unitInPool
- The unit entering vision.default void onError(java.util.List<ClientError> clientErrors, java.util.List<java.lang.String> protocolErrors)
Copyright © 2017–2018 Ocraft Project. All rights reserved.