Package | Description |
---|---|
com.github.ocraft.s2client.bot.gateway |
Modifier and Type | Method | Description |
---|---|---|
DebugInterface |
ControlInterface.debug() |
|
DebugInterface |
DebugInterface.debugBoxOut(Point p0,
Point p1,
Color color) |
Outputs a box specified as two 3D points in the game world.
|
DebugInterface |
DebugInterface.debugCreateUnit(UnitType unitType,
Point2d p,
int playerId,
int count) |
Creates a unit at the given position.
|
DebugInterface |
DebugInterface.debugCreateUnit(UnitType unitType,
PointI p,
int playerId,
int count) |
|
DebugInterface |
DebugInterface.debugEndGame(boolean victory) |
Ends a game.
|
DebugInterface |
DebugInterface.debugEnemyControl() |
Enables commands to be issued to enemy units.
|
DebugInterface |
DebugInterface.debugFastBuild() |
Structures and units are built much faster.
|
DebugInterface |
DebugInterface.debugGiveAllResources() |
Gives a bunch of minerals and gas.
|
DebugInterface |
DebugInterface.debugGiveAllTech() |
All tech becomes available.
|
DebugInterface |
DebugInterface.debugGiveAllUpgrades() |
All upgrades are available.
|
DebugInterface |
DebugInterface.debugGodMode() |
Makes the units of a player indestructible.
|
DebugInterface |
DebugInterface.debugIgnoreFood() |
Disables the food check.
|
DebugInterface |
DebugInterface.debugIgnoreMineral() |
Ignores mineral costs.
|
DebugInterface |
DebugInterface.debugIgnoreResourceCost() |
Disables resource checks.
|
DebugInterface |
DebugInterface.debugKillUnit(Unit unit) |
Destroy a unit.
|
DebugInterface |
DebugInterface.debugLineOut(Point p0,
Point p1,
Color color) |
Outputs a line between two 3D points in the game world.
|
DebugInterface |
DebugInterface.debugMoveCamera(Point pos) |
Sets the position of the camera.
|
DebugInterface |
DebugInterface.debugMoveCamera(PointI pos) |
|
DebugInterface |
DebugInterface.debugNoCooldowns() |
Cooldowns become instant.
|
DebugInterface |
DebugInterface.debugSetEnergy(float value,
Unit unit) |
Sets the energy level on a unit.
|
DebugInterface |
DebugInterface.debugSetLife(float value,
Unit unit) |
Sets the life on a unit.
|
DebugInterface |
DebugInterface.debugSetScore(float score) |
Sets the scripted "curriculum" score.
|
DebugInterface |
DebugInterface.debugSetShields(float value,
Unit unit) |
Sets shields on a unit.
|
DebugInterface |
DebugInterface.debugShowMap() |
Makes the entire map visible, i.e., removes the fog-of-war.
|
DebugInterface |
DebugInterface.debugSphereOut(Point p,
float r,
Color color) |
Outputs a sphere specified as a 3D point in the game world and a radius.
|
DebugInterface |
DebugInterface.debugTestApp(DebugTestProcess.Test appTest,
int delayMs) |
Cause the game to fail; useful to test library behavior.
|
DebugInterface |
DebugInterface.debugTextOut(java.lang.String out,
Color color) |
Outputs text at the top, left of the screen.
|
DebugInterface |
DebugInterface.debugTextOut(java.lang.String out,
Point2d ptVirtual2d,
Color color,
int size) |
Outputs text at any 2D point on the screen.
|
DebugInterface |
DebugInterface.debugTextOut(java.lang.String out,
Point pt3d,
Color color,
int size) |
Outputs text at any 3D point in the game world.
|
Modifier and Type | Method | Description |
---|---|---|
default java.util.List<Point> |
QueryInterface.calculateExpansionLocations(ObservationInterface observation,
DebugInterface debug) |
|
default java.util.List<Point> |
QueryInterface.calculateExpansionLocations(ObservationInterface observation,
DebugInterface debug,
ExpansionParameters parameters) |
Calculates expansion locations, this call can take on the order of 100ms since it makes blocking queries to SC2
so call it once and cache the results.
|
Copyright © 2017–2018 Ocraft Project. All rights reserved.