| Constructor and Description |
|---|
BaseImpl(Area area,
TilePosition location,
java.util.List<Resource> assignedResources,
java.util.List<Mineral> blockingMinerals) |
| Modifier and Type | Method and Description |
|---|---|
void |
assignStartingLocation(TilePosition actualLocation) |
boolean |
equals(java.lang.Object object) |
Area |
getArea()
Returns the area in which this base is located.
|
java.util.List<Mineral> |
getBlockingMinerals()
Returns the blocking minerals.
|
Position |
getCenter()
Returns the center position of
Base.getLocation(). |
java.util.List<Geyser> |
getGeysers()
Returns the available geysers.
|
TilePosition |
getLocation()
Returns the position (top-left TilePosition) of the location for a resource depot.
|
java.util.List<Mineral> |
getMinerals()
Returns the available minerals.
|
int |
hashCode() |
boolean |
isStartingLocation()
Tests whether this base is a start location.
|
void |
onMineralDestroyed(Mineral mineral) |
public BaseImpl(Area area, TilePosition location, java.util.List<Resource> assignedResources, java.util.List<Mineral> blockingMinerals)
public boolean isStartingLocation()
BaseMapData.getStartingLocations(),MapData.getStartingLocations() are actually
used.isStartingLocation in interface Basepublic Area getArea()
Basepublic TilePosition getLocation()
BaseBase.isStartingLocation() == true, it is guaranteed that the location
corresponds exactly to one of MapData.getStartingLocations().getLocation in interface Basepublic Position getCenter()
BaseBase.getLocation().public java.util.List<Mineral> getMinerals()
BasegetMinerals in interface Basepublic java.util.List<Geyser> getGeysers()
BasegetGeysers in interface Basepublic java.util.List<Mineral> getBlockingMinerals()
BaseBase.isStartingLocation() == true, an empty list is returned.Base.getBlockingMinerals() should not be confused with ChokePoint.getBlockingNeutral() and Neutral.isBlocking():getBlockingMinerals in interface Basepublic void assignStartingLocation(TilePosition actualLocation)
public void onMineralDestroyed(Mineral mineral)
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object