public final class Base extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
Area |
getArea()
Returns the area in which this base is located.
|
List<Mineral> |
getBlockingMinerals()
Returns the blocking minerals.
- These are special minerals. |
Position |
getCenter()
Returns the center position of
getLocation(). |
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(). |
List<Mineral> |
getMinerals()
Returns the available minerals.
- These minerals are assigned to this base (it is guaranteed that no other base provides them). |
int |
hashCode() |
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. |
void |
onMineralDestroyed(Mineral mineral) |
public boolean isStartingLocation()
MapData.getStartingLocations(),MapData.getStartingLocations() are actually
used.public Area getArea()
public TilePosition getLocation()
isStartingLocation() == true, it is guaranteed that the location
corresponds exactly to one of MapData.getStartingLocations().public Position getCenter()
getLocation().public List<Mineral> getMinerals()
public List<Geyser> getGeysers()
public List<Mineral> getBlockingMinerals()
isStartingLocation() == true, an empty list is returned.ChokePoint.getBlockingNeutral()
and Neutral.isBlocking():public void onMineralDestroyed(Mineral mineral)
Copyright © 2022. All rights reserved.