public interface Base
| Modifier and Type | Method and Description |
|---|---|
Area |
getArea()
Returns the area in which this base is located.
|
java.util.List<Mineral> |
getBlockingMinerals()
Returns the blocking minerals.
- These are special minerals. |
Position |
getCenter()
Returns the center position of
getLocation(). |
java.util.List<Geyser> |
getGeysers()
Returns the available geysers.
- These geysers are assigned to this Base (it is guaranteed that no other Base provides them). |
TilePosition |
getLocation()
Returns the position (top-left TilePosition) of the location for a resource depot.
- Note: If isStartingLocation() == true, it is guaranteed that the location
corresponds exactly to one of MapData.getStartingLocations(). |
java.util.List<Mineral> |
getMinerals()
Returns the available minerals.
- These minerals are assigned to this base (it is guaranteed that no other base provides them). |
boolean |
isStartingLocation()
Tests whether this base is a start location.
- Note: all players start at locations taken from MapData.getStartingLocations(),which doesn't mean all the locations in MapData.getStartingLocations() are actually
used. |
boolean isStartingLocation()
MapData.getStartingLocations(),MapData.getStartingLocations() are actually
used.Area getArea()
TilePosition getLocation()
isStartingLocation() == true, it is guaranteed that the location
corresponds exactly to one of MapData.getStartingLocations().Position getCenter()
getLocation().java.util.List<Mineral> getMinerals()
java.util.List<Geyser> getGeysers()
java.util.List<Mineral> getBlockingMinerals()
isStartingLocation() == true, an empty list is returned.getBlockingMinerals() should not be confused with ChokePoint.getBlockingNeutral() and Neutral.isBlocking():