public class BaseLocation
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
int |
gas()
Returns the total gas resource count of all accessible vespene geysers.
|
double |
getAirDistance(BaseLocation other)
Returns the air (flying) distance to the given base location.
|
double |
getGroundDistance(BaseLocation other)
Returns the ground (walking) distance to the given base location.
|
Position |
getPosition()
Returns the position of the center of the base location.
|
Region |
getRegion()
Returns the region the base location is in.
|
TilePosition |
getTilePosition()
Returns the tile position of the base location.
|
boolean |
isIsland()
Returns true if the base location not in not reachable by ground from any other base location.
|
boolean |
isMineralOnly()
Returns true if the base location is mineral-only.
|
boolean |
isStartLocation()
Returns true if the base location is a start location.
|
int |
minerals()
Returns the total mineral resource count of all accessible mineral patches.
|
public Position getPosition()
public TilePosition getTilePosition()
public Region getRegion()
public int minerals()
public int gas()
public double getGroundDistance(BaseLocation other)
public double getAirDistance(BaseLocation other)
public boolean isIsland()
public boolean isMineralOnly()
public boolean isStartLocation()