Modifier and Type | Field | Description |
---|---|---|
static Point |
Fixtures.P0 |
|
static Point |
Fixtures.P1 |
Modifier and Type | Method | Description |
---|---|---|
Point |
ObservationInterface.getCameraPos() |
Position of the center of the camera.
|
Point |
ObservationInterface.getStartLocation() |
Gets the initial start location of the player.
|
Modifier and Type | Method | Description |
---|---|---|
default java.util.List<Point> |
QueryInterface.calculateExpansionLocations(ObservationInterface observation) |
|
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.
|
static java.util.Map<Point,java.util.List<UnitInPool>> |
QueryInterface.cluster(java.util.List<UnitInPool> units,
double distanceApart) |
Clusters units within some distance of each other and returns a list of them and their center of mass.
|
Modifier and Type | Method | Description |
---|---|---|
DebugInterface |
DebugInterface.debugBoxOut(Point p0,
Point p1,
Color color) |
Outputs a box specified as two 3D points in the game world.
|
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.debugSphereOut(Point p,
float r,
Color color) |
Outputs a sphere specified as a 3D point in the game world and a radius.
|
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 |
---|---|---|
Point |
ActionRawCameraMove.getCenterInWorldSpace() |
Modifier and Type | Method | Description |
---|---|---|
ActionRawCameraMoveBuilder |
ActionRawCameraMove.Builder.to(Point point) |
Modifier and Type | Method | Description |
---|---|---|
Point |
DebugSphere.getCenter() |
|
Point |
DebugBox.getMax() |
|
Point |
DebugBox.getMin() |
|
Point |
Line.getP0() |
|
Point |
Line.getP1() |
Modifier and Type | Method | Description |
---|---|---|
java.util.Optional<Point> |
DebugText.getPoint2d() |
|
java.util.Optional<Point> |
DebugText.getPoint3d() |
Modifier and Type | Method | Description |
---|---|---|
WithBoxColorSyntax |
DebugBox.Builder.of(Point min,
Point max) |
|
WithLineColorSyntax |
DebugLine.Builder.of(Point p0,
Point p1) |
|
static Line |
Line.of(Point p0,
Point p1) |
|
WithRadiusSyntax |
DebugSphere.Builder.on(Point center) |
|
DebugTextBuilder |
DebugText.Builder.on(Point point2d) |
|
DebugTextBuilder |
DebugText.Builder.onMap(Point point3d) |
Modifier and Type | Method | Description |
---|---|---|
Point |
PlayerRaw.getCamera() |
|
Point |
PowerSource.getPosition() |
Modifier and Type | Method | Description |
---|---|---|
Point |
Point.add(Point pointToAdd) |
|
Point |
Point.div(float divBy) |
|
static Point |
Point.from(SC2APIProtocol.Common.Point sc2ApiPoint) |
|
Point |
Point.mul(float mulBy) |
|
static Point |
Point.of(float x,
float y) |
|
static Point |
Point.of(float x,
float y,
float z) |
|
Point |
Point.sub(float subX,
float subY,
float subZ) |
|
Point |
Point.sub(Point pointToSubtract) |
Modifier and Type | Method | Description |
---|---|---|
Point |
Point.add(Point pointToAdd) |
|
double |
Point.distance(Point b) |
|
float |
Point.dot(Point b) |
|
Point |
Point.sub(Point pointToSubtract) |
Modifier and Type | Method | Description |
---|---|---|
ActionRawCameraMoveBuilder |
ActionRawCameraMoveSyntax.to(Point point) |
Modifier and Type | Method | Description |
---|---|---|
WithBoxColorSyntax |
DebugBoxSyntax.of(Point min,
Point max) |
|
WithLineColorSyntax |
DebugLineSyntax.of(Point p0,
Point p1) |
|
WithRadiusSyntax |
DebugSphereSyntax.on(Point center) |
|
DebugTextBuilder |
TextPositionSyntax.on(Point point2d) |
|
DebugTextBuilder |
TextPositionSyntax.onMap(Point point3d) |
Modifier and Type | Method | Description |
---|---|---|
Point |
Unit.getPosition() |
Modifier and Type | Method | Description |
---|---|---|
java.util.Optional<Point> |
UnitOrder.getTargetedWorldSpacePosition() |
Constructor | Description |
---|---|
UnitOrder(Ability ability,
Tag targetedUnitTag,
Point targetedWorldSpacePosition,
java.lang.Float progress) |
Copyright © 2017–2018 Ocraft Project. All rights reserved.