Package | Description |
---|---|
bwapi | |
bwem | |
bwem.util | |
bwta |
Modifier and Type | Field and Description |
---|---|
static Position |
Position.Invalid |
static Position |
Position.Invalid |
static Position |
Position.None |
static Position |
Position.None |
static Position |
Position.Origin |
static Position |
Position.Origin |
static Position |
Position.Unknown |
static Position |
Position.Unknown |
Modifier and Type | Method and Description |
---|---|
Position |
Position.add(Position other) |
Position |
Position.add(Position other) |
Position |
Position.divide(int divisor) |
Position |
Position.divide(int divisor) |
Position |
Region.getCenter()
Retrieves the center of the region.
|
Position |
Region.getCenter()
Retrieves the center of the region.
|
Position |
Unit.getInitialPosition()
Retrieves the initial position of this unit.
|
Position |
Unit.getInitialPosition()
Retrieves the initial position of this unit.
|
Position |
Game.getMousePosition()
Retrieves the position of the user's mouse on the screen, in
Position coordinates. |
Position |
Game.getMousePosition()
Retrieves the position of the user's mouse on the screen, in
Position coordinates. |
Position |
Unit.getOrderTargetPosition()
Retrieves the target position for the unit's order.
|
Position |
Unit.getOrderTargetPosition()
Retrieves the target position for the unit's order.
|
Position |
Bullet.getPosition()
Retrieves the Bullet's current position.
|
Position |
Unit.getPosition()
Retrieves the unit's position from the upper left corner of the map in pixels.
|
Position |
Unit.getPosition()
Retrieves the unit's position from the upper left corner of the map in pixels.
|
Position |
Bullet.getPosition()
Retrieves the Bullet's current position.
|
Position |
Unit.getRallyPosition()
Retrieves the position the structure is rallying units to once they are
completed.
|
Position |
Unit.getRallyPosition()
Retrieves the position the structure is rallying units to once they are
completed.
|
Position |
Game.getScreenPosition()
Retrieves the top left position of the viewport from the top left corner of the
map, in pixels.
|
Position |
Game.getScreenPosition()
Retrieves the top left position of the viewport from the top left corner of the
map, in pixels.
|
Position |
Bullet.getTargetPosition()
Retrieves the target position that the
Bullet is heading to. |
Position |
Unit.getTargetPosition()
Retrieves the target position the unit is moving to, provided a valid path to the
target position exists.
|
Position |
UnitCommand.getTargetPosition() |
Position |
UnitCommand.getTargetPosition() |
Position |
Unit.getTargetPosition()
Retrieves the target position the unit is moving to, provided a valid path to the
target position exists.
|
Position |
Bullet.getTargetPosition()
Retrieves the target position that the
Bullet is heading to. |
Position |
Position.multiply(int multiplier) |
Position |
Position.multiply(int multiplier) |
Position |
Position.subtract(Position other) |
Position |
Position.subtract(Position other) |
Position |
TilePosition.toPosition() |
Position |
WalkPosition.toPosition() |
Position |
WalkPosition.toPosition() |
Position |
TilePosition.toPosition() |
Modifier and Type | Method and Description |
---|---|
List<Position> |
Game.getNukeDots()
Retrieves the set of all accessible @Nuke dots.
|
List<Position> |
Game.getNukeDots()
Retrieves the set of all accessible @Nuke dots.
|
Modifier and Type | Method and Description |
---|---|
Position |
Position.add(Position other) |
Position |
Position.add(Position other) |
boolean |
Unit.attack(Position target) |
boolean |
Unit.attack(Position target) |
boolean |
Unit.attack(Position target,
boolean shiftQueueCommand)
Orders the unit(s) to attack move to the specified position.
|
boolean |
Unit.attack(Position target,
boolean shiftQueueCommand)
Orders the unit(s) to attack move to the specified position.
|
static UnitCommand |
UnitCommand.attack(Unit unit,
Position target) |
static UnitCommand |
UnitCommand.attack(Unit unit,
Position target) |
static UnitCommand |
UnitCommand.attack(Unit unit,
Position target,
boolean shiftQueueCommand) |
static UnitCommand |
UnitCommand.attack(Unit unit,
Position target,
boolean shiftQueueCommand) |
boolean |
Unit.canAttack(Position target) |
boolean |
Unit.canAttack(Position target) |
boolean |
Unit.canAttack(Position target,
boolean checkCanTargetUnit) |
boolean |
Unit.canAttack(Position target,
boolean checkCanTargetUnit) |
boolean |
Unit.canAttack(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
Unit.canAttack(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
Unit.canAttack(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute an attack command to attack-move or attack a unit.
|
boolean |
Unit.canAttack(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute an attack command to attack-move or attack a unit.
|
boolean |
Unit.canAttackGrouped(Position target) |
boolean |
Unit.canAttackGrouped(Position target) |
boolean |
Unit.canAttackGrouped(Position target,
boolean checkCanTargetUnit) |
boolean |
Unit.canAttackGrouped(Position target,
boolean checkCanTargetUnit) |
boolean |
Unit.canAttackGrouped(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
Unit.canAttackGrouped(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
Unit.canAttackGrouped(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped) |
boolean |
Unit.canAttackGrouped(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped) |
boolean |
Unit.canAttackGrouped(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute an attack command to attack-move or attack a unit,
as part of a List
|
boolean |
Unit.canAttackGrouped(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute an attack command to attack-move or attack a unit,
as part of a List
|
boolean |
Unit.canRightClick(Position target) |
boolean |
Unit.canRightClick(Position target) |
boolean |
Unit.canRightClick(Position target,
boolean checkCanTargetUnit) |
boolean |
Unit.canRightClick(Position target,
boolean checkCanTargetUnit) |
boolean |
Unit.canRightClick(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
Unit.canRightClick(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
Unit.canRightClick(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute a rightClick command to a position
or unit.
|
boolean |
Unit.canRightClick(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute a rightClick command to a position
or unit.
|
boolean |
Unit.canRightClickGrouped(Position target) |
boolean |
Unit.canRightClickGrouped(Position target) |
boolean |
Unit.canRightClickGrouped(Position target,
boolean checkCanTargetUnit) |
boolean |
Unit.canRightClickGrouped(Position target,
boolean checkCanTargetUnit) |
boolean |
Unit.canRightClickGrouped(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
Unit.canRightClickGrouped(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
Unit.canRightClickGrouped(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped) |
boolean |
Unit.canRightClickGrouped(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped) |
boolean |
Unit.canRightClickGrouped(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute a rightClick command to a position
or unit, as part of a List
|
boolean |
Unit.canRightClickGrouped(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibilityGrouped,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute a rightClick command to a position
or unit, as part of a List
|
boolean |
Unit.canSetRallyPoint(Position target) |
boolean |
Unit.canSetRallyPoint(Position target) |
boolean |
Unit.canSetRallyPoint(Position target,
boolean checkCanTargetUnit) |
boolean |
Unit.canSetRallyPoint(Position target,
boolean checkCanTargetUnit) |
boolean |
Unit.canSetRallyPoint(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
Unit.canSetRallyPoint(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType) |
boolean |
Unit.canSetRallyPoint(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute a setRallyPoint command to a
position or unit.
|
boolean |
Unit.canSetRallyPoint(Position target,
boolean checkCanTargetUnit,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute a setRallyPoint command to a
position or unit.
|
boolean |
Unit.canUnloadAllPosition(Position targDropPos) |
boolean |
Unit.canUnloadAllPosition(Position targDropPos) |
boolean |
Unit.canUnloadAllPosition(Position targDropPos,
boolean checkCanIssueCommandType) |
boolean |
Unit.canUnloadAllPosition(Position targDropPos,
boolean checkCanIssueCommandType) |
boolean |
Unit.canUnloadAllPosition(Position targDropPos,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute an unloadAll command for a different
position.
|
boolean |
Unit.canUnloadAllPosition(Position targDropPos,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute an unloadAll command for a different
position.
|
boolean |
Unit.canUnloadAtPosition(Position targDropPos) |
boolean |
Unit.canUnloadAtPosition(Position targDropPos) |
boolean |
Unit.canUnloadAtPosition(Position targDropPos,
boolean checkCanIssueCommandType) |
boolean |
Unit.canUnloadAtPosition(Position targDropPos,
boolean checkCanIssueCommandType) |
boolean |
Unit.canUnloadAtPosition(Position targDropPos,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute an unload command or unloadAll at
current position command or unloadAll at a different position command, for a given
position.
|
boolean |
Unit.canUnloadAtPosition(Position targDropPos,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute an unload command or unloadAll at
current position command or unloadAll at a different position command, for a given
position.
|
boolean |
Unit.canUseTech(TechType tech,
Position target) |
boolean |
Unit.canUseTech(TechType tech,
Position target) |
boolean |
Unit.canUseTech(TechType tech,
Position target,
boolean checkCanTargetUnit) |
boolean |
Unit.canUseTech(TechType tech,
Position target,
boolean checkCanTargetUnit) |
boolean |
Unit.canUseTech(TechType tech,
Position target,
boolean checkCanTargetUnit,
boolean checkTargetsType) |
boolean |
Unit.canUseTech(TechType tech,
Position target,
boolean checkCanTargetUnit,
boolean checkTargetsType) |
boolean |
Unit.canUseTech(TechType tech,
Position target,
boolean checkCanTargetUnit,
boolean checkTargetsType,
boolean checkCanIssueCommandType) |
boolean |
Unit.canUseTech(TechType tech,
Position target,
boolean checkCanTargetUnit,
boolean checkTargetsType,
boolean checkCanIssueCommandType) |
boolean |
Unit.canUseTech(TechType tech,
Position target,
boolean checkCanTargetUnit,
boolean checkTargetsType,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Checks whether the unit is able to execute a useTech command for a specified position or
unit (only specify null if the TechType does not target another position/unit).
|
boolean |
Unit.canUseTech(TechType tech,
Position target,
boolean checkCanTargetUnit,
boolean checkTargetsType,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Checks whether the unit is able to execute a useTech command for a specified position or
unit (only specify null if the TechType does not target another position/unit).
|
boolean |
Unit.canUseTechPosition(TechType tech,
Position target) |
boolean |
Unit.canUseTechPosition(TechType tech,
Position target) |
boolean |
Unit.canUseTechPosition(TechType tech,
Position target,
boolean checkTargetsPositions) |
boolean |
Unit.canUseTechPosition(TechType tech,
Position target,
boolean checkTargetsPositions) |
boolean |
Unit.canUseTechPosition(TechType tech,
Position target,
boolean checkTargetsPositions,
boolean checkCanIssueCommandType) |
boolean |
Unit.canUseTechPosition(TechType tech,
Position target,
boolean checkTargetsPositions,
boolean checkCanIssueCommandType) |
boolean |
Unit.canUseTechPosition(TechType tech,
Position target,
boolean checkTargetsPositions,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Checks whether the unit is able to execute a useTech command with an unspecified target
position.
|
boolean |
Unit.canUseTechPosition(TechType tech,
Position target,
boolean checkTargetsPositions,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Checks whether the unit is able to execute a useTech command with an unspecified target
position.
|
void |
Game.drawBoxMap(Position leftTop,
Position rightBottom,
Color color) |
void |
Game.drawBoxMap(Position leftTop,
Position rightBottom,
Color color) |
void |
Game.drawBoxMap(Position leftTop,
Position rightBottom,
Color color,
boolean isSolid) |
void |
Game.drawBoxMap(Position leftTop,
Position rightBottom,
Color color,
boolean isSolid) |
void |
Game.drawBoxMouse(Position leftTop,
Position rightBottom,
Color color) |
void |
Game.drawBoxMouse(Position leftTop,
Position rightBottom,
Color color) |
void |
Game.drawBoxMouse(Position leftTop,
Position rightBottom,
Color color,
boolean isSolid) |
void |
Game.drawBoxMouse(Position leftTop,
Position rightBottom,
Color color,
boolean isSolid) |
void |
Game.drawBoxScreen(Position leftTop,
Position rightBottom,
Color color) |
void |
Game.drawBoxScreen(Position leftTop,
Position rightBottom,
Color color) |
void |
Game.drawBoxScreen(Position leftTop,
Position rightBottom,
Color color,
boolean isSolid) |
void |
Game.drawBoxScreen(Position leftTop,
Position rightBottom,
Color color,
boolean isSolid) |
void |
Game.drawCircleMap(Position p,
int radius,
Color color) |
void |
Game.drawCircleMap(Position p,
int radius,
Color color) |
void |
Game.drawCircleMap(Position p,
int radius,
Color color,
boolean isSolid) |
void |
Game.drawCircleMap(Position p,
int radius,
Color color,
boolean isSolid) |
void |
Game.drawCircleMouse(Position p,
int radius,
Color color) |
void |
Game.drawCircleMouse(Position p,
int radius,
Color color) |
void |
Game.drawCircleMouse(Position p,
int radius,
Color color,
boolean isSolid) |
void |
Game.drawCircleMouse(Position p,
int radius,
Color color,
boolean isSolid) |
void |
Game.drawCircleScreen(Position p,
int radius,
Color color) |
void |
Game.drawCircleScreen(Position p,
int radius,
Color color) |
void |
Game.drawCircleScreen(Position p,
int radius,
Color color,
boolean isSolid) |
void |
Game.drawCircleScreen(Position p,
int radius,
Color color,
boolean isSolid) |
void |
Game.drawDotMap(Position p,
Color color) |
void |
Game.drawDotMap(Position p,
Color color) |
void |
Game.drawDotMouse(Position p,
Color color) |
void |
Game.drawDotMouse(Position p,
Color color) |
void |
Game.drawDotScreen(Position p,
Color color) |
void |
Game.drawDotScreen(Position p,
Color color) |
void |
Game.drawEllipseMap(Position p,
int xrad,
int yrad,
Color color) |
void |
Game.drawEllipseMap(Position p,
int xrad,
int yrad,
Color color) |
void |
Game.drawEllipseMap(Position p,
int xrad,
int yrad,
Color color,
boolean isSolid) |
void |
Game.drawEllipseMap(Position p,
int xrad,
int yrad,
Color color,
boolean isSolid) |
void |
Game.drawEllipseMouse(Position p,
int xrad,
int yrad,
Color color) |
void |
Game.drawEllipseMouse(Position p,
int xrad,
int yrad,
Color color) |
void |
Game.drawEllipseMouse(Position p,
int xrad,
int yrad,
Color color,
boolean isSolid) |
void |
Game.drawEllipseMouse(Position p,
int xrad,
int yrad,
Color color,
boolean isSolid) |
void |
Game.drawEllipseScreen(Position p,
int xrad,
int yrad,
Color color) |
void |
Game.drawEllipseScreen(Position p,
int xrad,
int yrad,
Color color) |
void |
Game.drawEllipseScreen(Position p,
int xrad,
int yrad,
Color color,
boolean isSolid) |
void |
Game.drawEllipseScreen(Position p,
int xrad,
int yrad,
Color color,
boolean isSolid) |
void |
Game.drawLineMap(Position a,
Position b,
Color color) |
void |
Game.drawLineMap(Position a,
Position b,
Color color) |
void |
Game.drawLineMouse(Position a,
Position b,
Color color) |
void |
Game.drawLineMouse(Position a,
Position b,
Color color) |
void |
Game.drawLineScreen(Position a,
Position b,
Color color) |
void |
Game.drawLineScreen(Position a,
Position b,
Color color) |
void |
Game.drawTextMap(Position p,
String string,
Text... colors) |
void |
Game.drawTextMap(Position p,
String string,
Text... colors) |
void |
Game.drawTextMouse(Position p,
String string,
Text... colors) |
void |
Game.drawTextMouse(Position p,
String string,
Text... colors) |
void |
Game.drawTextScreen(Position p,
String string,
Text... colors) |
void |
Game.drawTextScreen(Position p,
String string,
Text... colors) |
void |
Game.drawTriangleMap(Position a,
Position b,
Position c,
Color color) |
void |
Game.drawTriangleMap(Position a,
Position b,
Position c,
Color color) |
void |
Game.drawTriangleMap(Position a,
Position b,
Position c,
Color color,
boolean isSolid) |
void |
Game.drawTriangleMap(Position a,
Position b,
Position c,
Color color,
boolean isSolid) |
void |
Game.drawTriangleMouse(Position a,
Position b,
Position c,
Color color) |
void |
Game.drawTriangleMouse(Position a,
Position b,
Position c,
Color color) |
void |
Game.drawTriangleMouse(Position a,
Position b,
Position c,
Color color,
boolean isSolid) |
void |
Game.drawTriangleMouse(Position a,
Position b,
Position c,
Color color,
boolean isSolid) |
void |
Game.drawTriangleScreen(Position a,
Position b,
Position c,
Color color) |
void |
Game.drawTriangleScreen(Position a,
Position b,
Position c,
Color color) |
void |
Game.drawTriangleScreen(Position a,
Position b,
Position c,
Color color,
boolean isSolid) |
void |
Game.drawTriangleScreen(Position a,
Position b,
Position c,
Color color,
boolean isSolid) |
Unit |
Game.getClosestUnit(Position center) |
Unit |
Game.getClosestUnit(Position center) |
Unit |
Game.getClosestUnit(Position center,
int radius) |
Unit |
Game.getClosestUnit(Position center,
int radius) |
Unit |
Game.getClosestUnit(Position center,
int radius,
UnitFilter pred)
Retrieves the closest unit to center that matches the criteria of the callback
pred within an optional radius.
|
Unit |
Game.getClosestUnit(Position center,
int radius,
UnitFilter pred)
Retrieves the closest unit to center that matches the criteria of the callback
pred within an optional radius.
|
Unit |
Game.getClosestUnit(Position center,
UnitFilter pred) |
Unit |
Game.getClosestUnit(Position center,
UnitFilter pred) |
Unit |
Game.getClosestUnitInRectangle(Position center,
int left,
int top,
int right,
int bottom) |
Unit |
Game.getClosestUnitInRectangle(Position center,
int left,
int top,
int right,
int bottom) |
Unit |
Game.getClosestUnitInRectangle(Position center,
int left,
int top,
int right,
int bottom,
UnitFilter pred)
Retrieves the closest unit to center that matches the criteria of the callback
pred within an optional rectangle.
|
Unit |
Game.getClosestUnitInRectangle(Position center,
int left,
int top,
int right,
int bottom,
UnitFilter pred)
Retrieves the closest unit to center that matches the criteria of the callback
pred within an optional rectangle.
|
int |
Unit.getDistance(Position target)
Retrieves the distance between this unit and a target position.
|
int |
Unit.getDistance(Position target)
Retrieves the distance between this unit and a target position.
|
Region |
Game.getRegionAt(Position position) |
Region |
Game.getRegionAt(Position position) |
List<Unit> |
Game.getUnitsInRadius(Position center,
int radius) |
List<Unit> |
Game.getUnitsInRadius(Position center,
int radius) |
List<Unit> |
Game.getUnitsInRadius(Position center,
int radius,
UnitFilter pred) |
List<Unit> |
Game.getUnitsInRadius(Position center,
int radius,
UnitFilter pred) |
List<Unit> |
Game.getUnitsInRectangle(Position leftTop,
Position rightBottom) |
List<Unit> |
Game.getUnitsInRectangle(Position leftTop,
Position rightBottom) |
List<Unit> |
Game.getUnitsInRectangle(Position leftTop,
Position rightBottom,
UnitFilter pred) |
List<Unit> |
Game.getUnitsInRectangle(Position leftTop,
Position rightBottom,
UnitFilter pred) |
boolean |
Unit.hasPath(Position target)
Using data provided by Starcraft, checks if there is a path available from this
unit to the given target.
|
boolean |
Unit.hasPath(Position target)
Using data provided by Starcraft, checks if there is a path available from this
unit to the given target.
|
boolean |
Game.hasPath(Position source,
Position destination)
Checks if there is a path from source to destination.
|
boolean |
Game.hasPath(Position source,
Position destination)
Checks if there is a path from source to destination.
|
boolean |
Game.hasPowerPrecise(Position position) |
boolean |
Game.hasPowerPrecise(Position position) |
boolean |
Game.hasPowerPrecise(Position position,
UnitType unitType) |
boolean |
Game.hasPowerPrecise(Position position,
UnitType unitType) |
boolean |
Unit.move(Position target) |
boolean |
Unit.move(Position target) |
boolean |
Unit.move(Position target,
boolean shiftQueueCommand)
Orders the unit to move from its current position to the specified position.
|
boolean |
Unit.move(Position target,
boolean shiftQueueCommand)
Orders the unit to move from its current position to the specified position.
|
static UnitCommand |
UnitCommand.move(Unit unit,
Position target) |
static UnitCommand |
UnitCommand.move(Unit unit,
Position target) |
static UnitCommand |
UnitCommand.move(Unit unit,
Position target,
boolean shiftQueueCommand) |
static UnitCommand |
UnitCommand.move(Unit unit,
Position target,
boolean shiftQueueCommand) |
void |
BWEventListener.onNukeDetect(Position target) |
void |
DefaultBWListener.onNukeDetect(Position position) |
void |
DefaultBWListener.onNukeDetect(Position position) |
void |
BWEventListener.onNukeDetect(Position target) |
boolean |
Unit.patrol(Position target) |
boolean |
Unit.patrol(Position target) |
boolean |
Unit.patrol(Position target,
boolean shiftQueueCommand)
Orders the unit to patrol between its current position and the specified position.
|
boolean |
Unit.patrol(Position target,
boolean shiftQueueCommand)
Orders the unit to patrol between its current position and the specified position.
|
static UnitCommand |
UnitCommand.patrol(Unit unit,
Position target) |
static UnitCommand |
UnitCommand.patrol(Unit unit,
Position target) |
static UnitCommand |
UnitCommand.patrol(Unit unit,
Position target,
boolean shiftQueueCommand) |
static UnitCommand |
UnitCommand.patrol(Unit unit,
Position target,
boolean shiftQueueCommand) |
void |
Game.pingMinimap(Position p) |
void |
Game.pingMinimap(Position p) |
boolean |
Unit.rightClick(Position target) |
boolean |
Unit.rightClick(Position target) |
boolean |
Unit.rightClick(Position target,
boolean shiftQueueCommand)
Performs a right click action as it would work in StarCraft.
|
boolean |
Unit.rightClick(Position target,
boolean shiftQueueCommand)
Performs a right click action as it would work in StarCraft.
|
static UnitCommand |
UnitCommand.rightClick(Unit unit,
Position target) |
static UnitCommand |
UnitCommand.rightClick(Unit unit,
Position target) |
static UnitCommand |
UnitCommand.rightClick(Unit unit,
Position target,
boolean shiftQueueCommand) |
static UnitCommand |
UnitCommand.rightClick(Unit unit,
Position target,
boolean shiftQueueCommand) |
boolean |
Unit.setRallyPoint(Position target)
Orders the unit to set its rally position.
|
boolean |
Unit.setRallyPoint(Position target)
Orders the unit to set its rally position.
|
static UnitCommand |
UnitCommand.setRallyPoint(Unit unit,
Position target) |
static UnitCommand |
UnitCommand.setRallyPoint(Unit unit,
Position target) |
void |
Game.setScreenPosition(Position p) |
void |
Game.setScreenPosition(Position p) |
Position |
Position.subtract(Position other) |
Position |
Position.subtract(Position other) |
boolean |
Unit.unloadAll(Position target) |
boolean |
Unit.unloadAll(Position target) |
boolean |
Unit.unloadAll(Position target,
boolean shiftQueueCommand)
Orders the unit to unload all loaded units at the unit's current position.
|
boolean |
Unit.unloadAll(Position target,
boolean shiftQueueCommand)
Orders the unit to unload all loaded units at the unit's current position.
|
static UnitCommand |
UnitCommand.unloadAll(Unit unit,
Position target) |
static UnitCommand |
UnitCommand.unloadAll(Unit unit,
Position target) |
static UnitCommand |
UnitCommand.unloadAll(Unit unit,
Position target,
boolean shiftQueueCommand) |
static UnitCommand |
UnitCommand.unloadAll(Unit unit,
Position target,
boolean shiftQueueCommand) |
boolean |
Unit.useTech(TechType tech,
Position target)
Orders the unit to use a technology.
|
boolean |
Unit.useTech(TechType tech,
Position target)
Orders the unit to use a technology.
|
static UnitCommand |
UnitCommand.useTech(Unit unit,
TechType tech,
Position target) |
static UnitCommand |
UnitCommand.useTech(Unit unit,
TechType tech,
Position target) |
Constructor and Description |
---|
Position(Position p) |
Position(Position p) |
TilePosition(Position p) |
TilePosition(Position p) |
WalkPosition(Position p) |
WalkPosition(Position p) |
Modifier and Type | Method and Description |
---|---|
Position |
Base.getCenter()
Returns the center position of
Base.getLocation() . |
Position |
BWMap.getCenter() |
Position |
MapData.getCenter() |
Position |
Neutral.getCenter()
Returns the center of this Neutral, in pixels (same as unit()->getInitialPosition()).
|
Position |
Neutral.getCenter()
Returns the center of this Neutral, in pixels (same as unit()->getInitialPosition()).
|
Position |
MapData.getCenter() |
Position |
BWMap.getCenter() |
Position |
Base.getCenter()
Returns the center position of
Base.getLocation() . |
Position |
MapData.getPixelSize() |
Position |
MapData.getPixelSize() |
Modifier and Type | Method and Description |
---|---|
CPPath |
BWMap.getPath(Position a,
Position b) |
Optional<CPPath> |
Graph.getPath(Position a,
Position b) |
Optional<CPPath> |
Graph.getPath(Position a,
Position b) |
CPPath |
BWMap.getPath(Position a,
Position b) |
Optional<PathingResult> |
Graph.getPathingResult(Position a,
Position b) |
Optional<PathingResult> |
Graph.getPathingResult(Position a,
Position b) |
int |
BWMap.getPathLength(Position a,
Position b) |
int |
BWMap.getPathLength(Position a,
Position b) |
boolean |
MapData.isValid(Position position) |
boolean |
MapData.isValid(Position position) |
Modifier and Type | Method and Description |
---|---|
static Position |
BwemExt.center(TilePosition tilePosition) |
static Position |
BwemExt.center(TilePosition tilePosition) |
static Position |
BwemExt.center(WalkPosition walkPosition) |
static Position |
BwemExt.center(WalkPosition walkPosition) |
static Position |
BwemExt.centerOfBuilding(TilePosition tilePosition,
TilePosition buildingSize) |
static Position |
BwemExt.centerOfBuilding(TilePosition tilePosition,
TilePosition buildingSize) |
Modifier and Type | Method and Description |
---|---|
static int |
BwemExt.distToRectangle(Position a,
Position topLeft,
Position size) |
static int |
BwemExt.distToRectangle(Position a,
Position topLeft,
Position size) |
static int |
BwemExt.queenWiseDist(Position a,
Position b) |
static int |
BwemExt.queenWiseDist(Position a,
Position b) |
static int |
BwemExt.squaredDist(Position a,
Position b) |
static int |
BwemExt.squaredDist(Position a,
Position b) |
Modifier and Type | Method and Description |
---|---|
Position |
Chokepoint.getCenter() |
Position |
Region.getCenter() |
Position |
Region.getCenter() |
Position |
Chokepoint.getCenter() |
Position |
BaseLocation.getPosition() |
Position |
BaseLocation.getPosition() |
Modifier and Type | Method and Description |
---|---|
Pair<Position,Position> |
Chokepoint.getSides() |
Pair<Position,Position> |
Chokepoint.getSides() |
Pair<Position,Position> |
Chokepoint.getSides() |
Pair<Position,Position> |
Chokepoint.getSides() |
Modifier and Type | Method and Description |
---|---|
static BaseLocation |
BWTA.getNearestBaseLocation(Position position) |
static BaseLocation |
BWTA.getNearestBaseLocation(Position position) |
static Chokepoint |
BWTA.getNearestChokepoint(Position position) |
static Chokepoint |
BWTA.getNearestChokepoint(Position position) |
static Region |
BWTA.getRegion(Position position) |
static Region |
BWTA.getRegion(Position position) |
Copyright © 2022. All rights reserved.