Modifier and Type | Field | Description |
---|---|---|
static Point2d |
Fixtures.END |
|
static Point2d |
Fixtures.POS |
|
static Point2d |
Fixtures.START |
Modifier and Type | Method | Description |
---|---|---|
DebugInterface |
DebugInterface.debugCreateUnit(UnitType unitType,
Point2d p,
int playerId,
int count) |
Creates a unit at the given position.
|
DebugInterface |
DebugInterface.debugTextOut(java.lang.String out,
Point2d ptVirtual2d,
Color color,
int size) |
Outputs text at any 2D point on the screen.
|
Visibility |
ObservationInterface.getVisibility(Point2d point) |
Returns visibility value of the given point for the current player.
|
boolean |
ObservationInterface.hasCreep(Point2d point) |
Returns 'true' if the given point has creep.
|
boolean |
ObservationInterface.isPathable(Point2d point) |
Returns 'true' if the given point on the terrain is pathable.
|
boolean |
ObservationInterface.isPlacable(Point2d point) |
Returns 'true' if the given point on the terrain is buildable.
|
float |
QueryInterface.pathingDistance(Point2d start,
Point2d end) |
Returns pathing distance between two locations.
|
float |
QueryInterface.pathingDistance(Unit start,
Point2d end) |
Returns pathing distance between a unit and a target location.
|
boolean |
QueryInterface.placement(Ability ability,
Point2d target) |
|
boolean |
QueryInterface.placement(Ability ability,
Point2d target,
Unit unit) |
Returns whether a building can be placed at a location.
|
float |
ObservationInterface.terrainHeight(Point2d point) |
Returns terrain height of the given point.
|
ActionInterface |
ActionInterface.unitCommand(Unit unit,
Ability ability,
Point2d point,
boolean queuedCommand) |
Issues a command to a unit.
|
ActionInterface |
ActionInterface.unitCommand(java.util.List<Unit> units,
Ability ability,
Point2d point,
boolean queuedCommand) |
Issues a command to multiple units (prefer this where possible).
|
Modifier and Type | Method | Description |
---|---|---|
Point2d |
ActionObserverCameraMove.getPosition() |
Modifier and Type | Method | Description |
---|---|---|
WithDistanceSyntax |
ActionObserverCameraMove.Builder.to(Point2d point2d) |
Modifier and Type | Method | Description |
---|---|---|
java.util.Optional<Point2d> |
ActionRawUnitCommand.getTargetedWorldSpacePosition() |
Modifier and Type | Method | Description |
---|---|---|
QueuedSyntax |
ActionRawUnitCommand.Builder.target(Point2d worldPosition) |
Modifier and Type | Method | Description |
---|---|---|
Point2d |
DebugCreateUnit.getPosition() |
Modifier and Type | Method | Description |
---|---|---|
WithQuantitySyntax |
DebugCreateUnit.Builder.on(Point2d position) |
Modifier and Type | Method | Description |
---|---|---|
java.util.Set<Point2d> |
StartRaw.getStartLocations() |
Modifier and Type | Method | Description |
---|---|---|
java.util.Set<Point2d> |
EffectLocations.getPositions() |
Modifier and Type | Method | Description |
---|---|---|
int |
ImageData.sample(Point2d point) |
Modifier and Type | Method | Description |
---|---|---|
Point2d |
QueryPathing.getEnd() |
|
Point2d |
QueryBuildingPlacement.getTarget() |
Modifier and Type | Method | Description |
---|---|---|
java.util.Optional<Point2d> |
QueryPathing.getStart() |
Modifier and Type | Method | Description |
---|---|---|
ToSyntax |
QueryPathing.Builder.from(Point2d start) |
|
ToSyntax |
QueryPathingSyntax.from(Point2d start) |
|
QueryBuildingPlacementBuilder |
QueryBuildingPlacement.Builder.on(Point2d target) |
|
QueryBuildingPlacementBuilder |
TargetSyntax.on(Point2d target) |
|
QueryPathingBuilder |
QueryPathing.Builder.to(Point2d end) |
Modifier and Type | Method | Description |
---|---|---|
Point2d |
ResponseGameInfo.findRandomLocation() |
|
Point2d |
ResponseGameInfo.findRandomLocation(Point2d min,
Point2d max) |
Modifier and Type | Method | Description |
---|---|---|
PointI |
ResponseGameInfo.convertWorldToCamera(Point2d cameraWorld,
Point2d world) |
|
PointI |
ResponseGameInfo.convertWorldToMinimap(Point2d world) |
|
Point2d |
ResponseGameInfo.findRandomLocation(Point2d min,
Point2d max) |
Modifier and Type | Method | Description |
---|---|---|
Point2d |
Point2d.add(float addX,
float addY) |
|
Point2d |
Point2d.add(Point2d pointToAdd) |
|
Point2d |
Point2d.div(float divBy) |
|
static Point2d |
Point2d.from(SC2APIProtocol.Common.Point2D sc2ApiPoint2d) |
|
Point2d |
Point2d.mul(float mulBy) |
|
static Point2d |
Point2d.of(float x,
float y) |
|
Point2d |
Point2d.sub(float subX,
float subY) |
|
Point2d |
Point2d.sub(Point2d pointToSubtract) |
|
Point2d |
Point.toPoint2d() |
|
Point2d |
PointI.toPoint2d() |
Modifier and Type | Method | Description |
---|---|---|
Point2d |
Point2d.add(Point2d pointToAdd) |
|
double |
Point2d.distance(Point2d b) |
|
float |
Point2d.dot(Point2d b) |
|
Point2d |
Point2d.sub(Point2d pointToSubtract) |
Modifier and Type | Method | Description |
---|---|---|
WithDistanceSyntax |
ActionObserverCameraMoveSyntax.to(Point2d point2d) |
Modifier and Type | Method | Description |
---|---|---|
QueuedSyntax |
TargetSyntax.target(Point2d worldPosition) |
Modifier and Type | Method | Description |
---|---|---|
WithQuantitySyntax |
UnitPositionSyntax.on(Point2d position) |
Modifier and Type | Method | Description |
---|---|---|
QueryPathingBuilder |
ToSyntax.to(Point2d end) |
Copyright © 2017–2018 Ocraft Project. All rights reserved.