Package | Description |
---|---|
bwapi | |
bwem | |
bwem.util | |
bwta |
Modifier and Type | Field and Description |
---|---|
static TilePosition |
TilePosition.Invalid |
static TilePosition |
TilePosition.Invalid |
static TilePosition |
TilePosition.None |
static TilePosition |
TilePosition.None |
static TilePosition |
TilePosition.Origin |
static TilePosition |
TilePosition.Origin |
static TilePosition |
TilePosition.Unknown |
static TilePosition |
TilePosition.Unknown |
Modifier and Type | Method and Description |
---|---|
TilePosition |
TilePosition.add(TilePosition other) |
TilePosition |
TilePosition.add(TilePosition other) |
TilePosition |
TilePosition.divide(int divisor) |
TilePosition |
TilePosition.divide(int divisor) |
TilePosition |
Game.getBuildLocation(UnitType type,
TilePosition desiredPosition) |
TilePosition |
Game.getBuildLocation(UnitType type,
TilePosition desiredPosition) |
TilePosition |
Game.getBuildLocation(UnitType type,
TilePosition desiredPosition,
int maxRange) |
TilePosition |
Game.getBuildLocation(UnitType type,
TilePosition desiredPosition,
int maxRange) |
TilePosition |
Game.getBuildLocation(UnitType type,
TilePosition desiredPosition,
int maxRange,
boolean creep)
Retrieves a basic build position just as the default Computer AI would.
|
TilePosition |
Game.getBuildLocation(UnitType type,
TilePosition desiredPosition,
int maxRange,
boolean creep)
Retrieves a basic build position just as the default Computer AI would.
|
TilePosition |
Unit.getInitialTilePosition()
Retrieves the initial build tile position of this unit.
|
TilePosition |
Unit.getInitialTilePosition()
Retrieves the initial build tile position of this unit.
|
TilePosition |
Player.getStartLocation()
Retrieve's the player's starting location.
|
TilePosition |
Player.getStartLocation()
Retrieve's the player's starting location.
|
TilePosition |
UnitCommand.getTargetTilePosition() |
TilePosition |
UnitCommand.getTargetTilePosition() |
TilePosition |
Unit.getTilePosition()
Retrieves the unit's build position from the upper left corner of the map in
tiles.
|
TilePosition |
Unit.getTilePosition()
Retrieves the unit's build position from the upper left corner of the map in
tiles.
|
TilePosition |
TilePosition.multiply(int multiplier) |
TilePosition |
TilePosition.multiply(int multiplier) |
TilePosition |
TilePosition.subtract(TilePosition other) |
TilePosition |
TilePosition.subtract(TilePosition other) |
TilePosition |
UnitType.tileSize()
Retrieves the tile size of this unit type.
|
TilePosition |
UnitType.tileSize()
Retrieves the tile size of this unit type.
|
TilePosition |
Position.toTilePosition() |
TilePosition |
WalkPosition.toTilePosition() |
TilePosition |
WalkPosition.toTilePosition() |
TilePosition |
Position.toTilePosition() |
Modifier and Type | Method and Description |
---|---|
List<TilePosition> |
Game.getStartLocations()
Retrieves the set of all starting locations for the current map.
|
List<TilePosition> |
Game.getStartLocations()
Retrieves the set of all starting locations for the current map.
|
Modifier and Type | Method and Description |
---|---|
TilePosition |
TilePosition.add(TilePosition other) |
TilePosition |
TilePosition.add(TilePosition other) |
static UnitCommand |
UnitCommand.build(Unit unit,
TilePosition target,
UnitType type) |
static UnitCommand |
UnitCommand.build(Unit unit,
TilePosition target,
UnitType type) |
boolean |
Unit.build(UnitType type,
TilePosition target)
Orders the worker unit(s) to construct a structure at a target position.
|
boolean |
Unit.build(UnitType type,
TilePosition target)
Orders the worker unit(s) to construct a structure at a target position.
|
boolean |
Unit.canBuild(UnitType uType,
TilePosition tilePos) |
boolean |
Unit.canBuild(UnitType uType,
TilePosition tilePos) |
boolean |
Unit.canBuild(UnitType uType,
TilePosition tilePos,
boolean checkTargetUnitType) |
boolean |
Unit.canBuild(UnitType uType,
TilePosition tilePos,
boolean checkTargetUnitType) |
boolean |
Unit.canBuild(UnitType uType,
TilePosition tilePos,
boolean checkTargetUnitType,
boolean checkCanIssueCommandType) |
boolean |
Unit.canBuild(UnitType uType,
TilePosition tilePos,
boolean checkTargetUnitType,
boolean checkCanIssueCommandType) |
boolean |
Unit.canBuild(UnitType uType,
TilePosition tilePos,
boolean checkTargetUnitType,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute a build command.
|
boolean |
Unit.canBuild(UnitType uType,
TilePosition tilePos,
boolean checkTargetUnitType,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute a build command.
|
boolean |
Game.canBuildHere(TilePosition position,
UnitType type) |
boolean |
Game.canBuildHere(TilePosition position,
UnitType type) |
boolean |
Game.canBuildHere(TilePosition position,
UnitType type,
Unit builder) |
boolean |
Game.canBuildHere(TilePosition position,
UnitType type,
Unit builder) |
boolean |
Game.canBuildHere(TilePosition position,
UnitType type,
Unit builder,
boolean checkExplored)
Checks if the given unit type can be built at the given build tile position.
|
boolean |
Game.canBuildHere(TilePosition position,
UnitType type,
Unit builder,
boolean checkExplored)
Checks if the given unit type can be built at the given build tile position.
|
boolean |
Unit.canLand(TilePosition target) |
boolean |
Unit.canLand(TilePosition target) |
boolean |
Unit.canLand(TilePosition target,
boolean checkCanIssueCommandType) |
boolean |
Unit.canLand(TilePosition target,
boolean checkCanIssueCommandType) |
boolean |
Unit.canLand(TilePosition target,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute a land command.
|
boolean |
Unit.canLand(TilePosition target,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute a land command.
|
boolean |
Unit.canPlaceCOP(TilePosition target) |
boolean |
Unit.canPlaceCOP(TilePosition target) |
boolean |
Unit.canPlaceCOP(TilePosition target,
boolean checkCanIssueCommandType) |
boolean |
Unit.canPlaceCOP(TilePosition target,
boolean checkCanIssueCommandType) |
boolean |
Unit.canPlaceCOP(TilePosition target,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute a placeCOP command.
|
boolean |
Unit.canPlaceCOP(TilePosition target,
boolean checkCanIssueCommandType,
boolean checkCommandibility)
Cheap checks for whether the unit is able to execute a placeCOP command.
|
TilePosition |
Game.getBuildLocation(UnitType type,
TilePosition desiredPosition) |
TilePosition |
Game.getBuildLocation(UnitType type,
TilePosition desiredPosition) |
TilePosition |
Game.getBuildLocation(UnitType type,
TilePosition desiredPosition,
int maxRange) |
TilePosition |
Game.getBuildLocation(UnitType type,
TilePosition desiredPosition,
int maxRange) |
TilePosition |
Game.getBuildLocation(UnitType type,
TilePosition desiredPosition,
int maxRange,
boolean creep)
Retrieves a basic build position just as the default Computer AI would.
|
TilePosition |
Game.getBuildLocation(UnitType type,
TilePosition desiredPosition,
int maxRange,
boolean creep)
Retrieves a basic build position just as the default Computer AI would.
|
int |
Game.getGroundHeight(TilePosition position) |
int |
Game.getGroundHeight(TilePosition position) |
List<Unit> |
Game.getUnitsOnTile(TilePosition tile) |
List<Unit> |
Game.getUnitsOnTile(TilePosition tile) |
boolean |
Game.hasCreep(TilePosition position) |
boolean |
Game.hasCreep(TilePosition position) |
boolean |
Game.hasPower(TilePosition position) |
boolean |
Game.hasPower(TilePosition position) |
boolean |
Game.hasPower(TilePosition position,
int tileWidth,
int tileHeight) |
boolean |
Game.hasPower(TilePosition position,
int tileWidth,
int tileHeight) |
boolean |
Game.hasPower(TilePosition position,
int tileWidth,
int tileHeight,
UnitType unitType) |
boolean |
Game.hasPower(TilePosition position,
int tileWidth,
int tileHeight,
UnitType unitType) |
boolean |
Game.hasPower(TilePosition position,
UnitType unitType) |
boolean |
Game.hasPower(TilePosition position,
UnitType unitType) |
boolean |
Game.isBuildable(TilePosition position) |
boolean |
Game.isBuildable(TilePosition position) |
boolean |
Game.isBuildable(TilePosition position,
boolean includeBuildings) |
boolean |
Game.isBuildable(TilePosition position,
boolean includeBuildings) |
boolean |
Game.isExplored(TilePosition position) |
boolean |
Game.isExplored(TilePosition position) |
boolean |
Game.isVisible(TilePosition position) |
boolean |
Game.isVisible(TilePosition position) |
boolean |
Unit.land(TilePosition target)
Orders the unit to land.
|
boolean |
Unit.land(TilePosition target)
Orders the unit to land.
|
static UnitCommand |
UnitCommand.land(Unit unit,
TilePosition target) |
static UnitCommand |
UnitCommand.land(Unit unit,
TilePosition target) |
boolean |
Unit.placeCOP(TilePosition target)
Moves a @Flag_Beacon to a different location.
|
boolean |
Unit.placeCOP(TilePosition target)
Moves a @Flag_Beacon to a different location.
|
static UnitCommand |
UnitCommand.placeCOP(Unit unit,
TilePosition target) |
static UnitCommand |
UnitCommand.placeCOP(Unit unit,
TilePosition target) |
TilePosition |
TilePosition.subtract(TilePosition other) |
TilePosition |
TilePosition.subtract(TilePosition other) |
Constructor and Description |
---|
Position(TilePosition tp) |
Position(TilePosition tp) |
TilePosition(TilePosition tp) |
TilePosition(TilePosition tp) |
WalkPosition(TilePosition tp) |
WalkPosition(TilePosition tp) |
Modifier and Type | Field and Description |
---|---|
protected TilePosition |
Neutral.topLeft |
protected TilePosition |
Neutral.topLeft |
Modifier and Type | Method and Description |
---|---|
TilePosition |
BWMap.breadthFirstSearch(TilePosition start,
Pred<Tile,TilePosition> findCond,
Pred<Tile,TilePosition> visitCond) |
TilePosition |
BWMap.breadthFirstSearch(TilePosition start,
Pred<Tile,TilePosition> findCond,
Pred<Tile,TilePosition> visitCond) |
TilePosition |
BWMap.breadthFirstSearch(TilePosition start,
Pred<Tile,TilePosition> findCond,
Pred<Tile,TilePosition> visitCond,
boolean connect8) |
TilePosition |
BWMap.breadthFirstSearch(TilePosition start,
Pred<Tile,TilePosition> findCond,
Pred<Tile,TilePosition> visitCond,
boolean connect8) |
TilePosition |
Area.getBottomRight() |
TilePosition |
Neutral.getBottomRight()
Returns the bottom right Tile position of this Neutral
|
TilePosition |
Neutral.getBottomRight()
Returns the bottom right Tile position of this Neutral
|
TilePosition |
Area.getBottomRight() |
TilePosition |
Area.getBoundingBoxSize() |
TilePosition |
Area.getBoundingBoxSize() |
TilePosition |
Base.getLocation()
Returns the position (top-left TilePosition) of the location for a resource depot.
- Note: If Base.isStartingLocation() == true, it is guaranteed that the location
corresponds exactly to one of MapData.getStartingLocations() . |
TilePosition |
Base.getLocation()
Returns the position (top-left TilePosition) of the location for a resource depot.
- Note: If Base.isStartingLocation() == true, it is guaranteed that the location
corresponds exactly to one of MapData.getStartingLocations() . |
TilePosition |
Neutral.getSize()
Returns the size of this Neutral, in Tiles (same as Type()->tileSize())
|
TilePosition |
Neutral.getSize()
Returns the size of this Neutral, in Tiles (same as Type()->tileSize())
|
TilePosition |
MapData.getTileSize() |
TilePosition |
MapData.getTileSize() |
TilePosition |
Area.getTopLeft() |
TilePosition |
Neutral.getTopLeft()
Returns the top left Tile position of this Neutral (same as unit()->getInitialTilePosition()).
|
TilePosition |
Neutral.getTopLeft()
Returns the top left Tile position of this Neutral (same as unit()->getInitialTilePosition()).
|
TilePosition |
Area.getTopLeft() |
Modifier and Type | Method and Description |
---|---|
List<TilePosition> |
BWMap.getStartingLocations() |
List<TilePosition> |
MapData.getStartingLocations() |
List<TilePosition> |
MapData.getStartingLocations() |
List<TilePosition> |
BWMap.getStartingLocations() |
List<TilePosition> |
BWMap.getUnassignedStartingLocations() |
List<TilePosition> |
BWMap.getUnassignedStartingLocations() |
Modifier and Type | Method and Description |
---|---|
static TilePosition |
BwemExt.makePointFitToBoundingBox(TilePosition point,
TilePosition topLeft,
TilePosition bottomRight) |
static TilePosition |
BwemExt.makePointFitToBoundingBox(TilePosition point,
TilePosition topLeft,
TilePosition bottomRight) |
Modifier and Type | Method and Description |
---|---|
TilePosition |
BaseLocation.getTilePosition() |
TilePosition |
BaseLocation.getTilePosition() |
Modifier and Type | Method and Description |
---|---|
static List<TilePosition> |
BWTA.getShortestPath(TilePosition start,
TilePosition end) |
static List<TilePosition> |
BWTA.getShortestPath(TilePosition start,
TilePosition end) |
Modifier and Type | Method and Description |
---|---|
static double |
BWTA.getGroundDistance(TilePosition start,
TilePosition end) |
static double |
BWTA.getGroundDistance(TilePosition start,
TilePosition end) |
static BaseLocation |
BWTA.getNearestBaseLocation(TilePosition tileposition) |
static BaseLocation |
BWTA.getNearestBaseLocation(TilePosition tileposition) |
static Chokepoint |
BWTA.getNearestChokepoint(TilePosition tileposition) |
static Chokepoint |
BWTA.getNearestChokepoint(TilePosition tileposition) |
static Region |
BWTA.getRegion(TilePosition tileposition) |
static Region |
BWTA.getRegion(TilePosition tileposition) |
static List<TilePosition> |
BWTA.getShortestPath(TilePosition start,
TilePosition end) |
static List<TilePosition> |
BWTA.getShortestPath(TilePosition start,
TilePosition end) |
static boolean |
BWTA.isConnected(TilePosition a,
TilePosition b) |
static boolean |
BWTA.isConnected(TilePosition a,
TilePosition b) |
Copyright © 2022. All rights reserved.