public class AreaInitializerImpl extends AreaImpl implements AreaInitializer
accessibleNeighbors, bases, bottomRight, buildableTileCount, chokePoints, chokePointsByArea, geysers, groupId, highestAltitude, highGroundTileCount, minerals, tileCount, topLeft, veryHighGroundTileCount| Constructor and Description |
|---|
AreaInitializerImpl(Map map,
AreaId areaId,
WalkPosition top,
int miniTileCount) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChokePoints(Area area,
java.util.List<ChokePoint> chokePoints) |
void |
addGeyser(Geyser geyser) |
void |
addMineral(Mineral mineral) |
void |
addTileInformation(TilePosition tilePosition,
Tile tile) |
int |
computeBaseLocationScore(TerrainData terrainData,
TilePosition location) |
int[] |
computeDistances(ChokePoint startCP,
java.util.List<ChokePoint> targetCPs) |
int[] |
computeDistances(TilePosition start,
java.util.List<TilePosition> targets) |
void |
createBases(TerrainData terrainData) |
Map |
getMap() |
Markable |
getMarkable() |
static StaticMarkable |
getStaticMarkable() |
void |
postCollectInformation() |
void |
setGroupId(GroupId gid) |
void |
updateAccessibleNeighbors() |
boolean |
validateBaseLocation(TerrainData terrainData,
TilePosition location,
java.util.List<Mineral> blockingMinerals) |
equals, getAccessibleNeighbors, getBases, getBottomRight, getBoundingBoxSize, getChokePoints, getChokePoints, getChokePointsByArea, getGeysers, getGroupId, getHighestAltitude, getHighGroundPercentage, getId, getLowGroundPercentage, getMinerals, getSize, getTop, getTopLeft, getVeryHighGroundPercentage, getWalkPositionWithHighestAltitude, hashCode, isAccessibleFrom, onMineralDestroyedpublic AreaInitializerImpl(Map map, AreaId areaId, WalkPosition top, int miniTileCount)
public static StaticMarkable getStaticMarkable()
public Markable getMarkable()
getMarkable in interface AreaInitializerpublic void addChokePoints(Area area, java.util.List<ChokePoint> chokePoints)
addChokePoints in interface AreaInitializerpublic void addMineral(Mineral mineral)
addMineral in interface AreaInitializerpublic void addGeyser(Geyser geyser)
addGeyser in interface AreaInitializerpublic void addTileInformation(TilePosition tilePosition, Tile tile)
addTileInformation in interface AreaInitializerpublic void setGroupId(GroupId gid)
setGroupId in interface AreaInitializerpublic Map getMap()
getMap in interface AreaInitializerpublic void postCollectInformation()
postCollectInformation in interface AreaInitializerpublic int[] computeDistances(ChokePoint startCP, java.util.List<ChokePoint> targetCPs)
computeDistances in interface AreaInitializerpublic int[] computeDistances(TilePosition start, java.util.List<TilePosition> targets)
computeDistances in interface AreaInitializerpublic void updateAccessibleNeighbors()
updateAccessibleNeighbors in interface AreaInitializerpublic void createBases(TerrainData terrainData)
createBases in interface AreaInitializerpublic int computeBaseLocationScore(TerrainData terrainData, TilePosition location)
computeBaseLocationScore in interface AreaInitializerpublic boolean validateBaseLocation(TerrainData terrainData, TilePosition location, java.util.List<Mineral> blockingMinerals)
validateBaseLocation in interface AreaInitializer