public class BWTA extends Object
Constructor and Description |
---|
BWTA() |
Modifier and Type | Method and Description |
---|---|
static void |
analyze() |
static List<BaseLocation> |
getBaseLocations() |
static BWEM |
getBWEM()
Exposes the BWEM instance.
|
static List<Chokepoint> |
getChokepoints() |
static double |
getGroundDistance(TilePosition start,
TilePosition end) |
static BaseLocation |
getNearestBaseLocation(Position position) |
static BaseLocation |
getNearestBaseLocation(TilePosition tileposition) |
static Chokepoint |
getNearestChokepoint(Position position) |
static Chokepoint |
getNearestChokepoint(TilePosition tileposition) |
static Region |
getRegion(Position position) |
static Region |
getRegion(TilePosition tileposition) |
static List<Region> |
getRegions() |
static List<TilePosition> |
getShortestPath(TilePosition start,
TilePosition end) |
static BaseLocation |
getStartLocation(Player player) |
static List<BaseLocation> |
getStartLocations() |
static boolean |
isConnected(TilePosition a,
TilePosition b) |
static void |
readMap(Game game)
Deprecated.
This BWTA is fake and only translates BWTA calls to their respective BWEM calls. Please use BWEM directly if possible."
|
static void |
setFailOnError(boolean value)
Extension to traditional BWTA interface for JBWAPI
Exposes BWEM's setFailOnError(boolean) method for aggressively asserting errors.
|
static void |
setFailOnErrorStream(OutputStream stream)
Extension to traditional BWTA interface for JBWAPI
Exposes BWEM's setFailOnErrorStream(OutputStream) method for specifying error log destination.
|
public static BWEM getBWEM()
public static void setFailOnError(boolean value)
value
- Whether BWEM should throw an exception on assertion failure.public static void setFailOnErrorStream(OutputStream stream)
stream
- Where to log BWEM errors.@Deprecated public static void readMap(Game game)
public static void analyze()
public static List<Chokepoint> getChokepoints()
public static List<BaseLocation> getBaseLocations()
public static List<BaseLocation> getStartLocations()
public static BaseLocation getStartLocation(Player player)
public static Region getRegion(TilePosition tileposition)
public static Chokepoint getNearestChokepoint(TilePosition tileposition)
public static Chokepoint getNearestChokepoint(Position position)
public static BaseLocation getNearestBaseLocation(TilePosition tileposition)
public static BaseLocation getNearestBaseLocation(Position position)
public static boolean isConnected(TilePosition a, TilePosition b)
public static double getGroundDistance(TilePosition start, TilePosition end)
public static List<TilePosition> getShortestPath(TilePosition start, TilePosition end)
Copyright © 2022. All rights reserved.