Class LegacyStratConSectorGeneration
java.lang.Object
mekhq.campaign.digitalGM.stratCon.sectorGeneration.LegacyStratConSectorGeneration
- All Implemented Interfaces:
ISectorGenerationStrategy
The legacy sector generation: the original biome-stripe terrain placer (
StratConTerrainPlacer). It places no
cities and builds no road network, so connectFacilitiesToRoads(mekhq.campaign.digitalGM.stratCon.StratConTrackState, java.util.Collection<mekhq.campaign.digitalGM.stratCon.StratConCoords>) is a no-op.- Since:
- 0.51.01
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectFacilitiesToRoads(StratConTrackState track, Collection<StratConCoords> facilityCoords) Folds the given facility hexes into the track's road network, so bases belonging to the planet's owner sit on the road grid alongside cities.voidinitializeTrack(StratConTrackState track, PlanetProfile planetProfile, LatitudeBand latitudeBand, boolean allowCities) Places terrain onto a freshly-sized track.voidregenerateTrack(StratConTrackState track, PlanetProfile planetProfile, LatitudeBand latitudeBand, boolean allowCities) Clears and re-places a track's terrain in place, as used by the GM "Regenerate Sector" tool.
-
Constructor Details
-
LegacyStratConSectorGeneration
public LegacyStratConSectorGeneration()
-
-
Method Details
-
initializeTrack
public void initializeTrack(StratConTrackState track, PlanetProfile planetProfile, LatitudeBand latitudeBand, boolean allowCities) Description copied from interface:ISectorGenerationStrategyPlaces terrain onto a freshly-sized track.- Specified by:
initializeTrackin interfaceISectorGenerationStrategy- Parameters:
track- the track to fill (dimensions and temperature already set)planetProfile- the destination planet's resolved datalatitudeBand- the sector's latitude bandallowCities-trueto allow cities to be placed (ignored by strategies that place none)
-
regenerateTrack
public void regenerateTrack(StratConTrackState track, PlanetProfile planetProfile, LatitudeBand latitudeBand, boolean allowCities) Description copied from interface:ISectorGenerationStrategyClears and re-places a track's terrain in place, as used by the GM "Regenerate Sector" tool. The track's dimensions and temperature are kept; scenarios, facilities, and assigned forces are left for the caller to reconcile.- Specified by:
regenerateTrackin interfaceISectorGenerationStrategy- Parameters:
track- the track to regenerateplanetProfile- the destination planet's resolved datalatitudeBand- the latitude band to regenerate underallowCities-trueto allow cities to be placed (ignored by strategies that place none)
-
connectFacilitiesToRoads
public void connectFacilitiesToRoads(StratConTrackState track, Collection<StratConCoords> facilityCoords) Description copied from interface:ISectorGenerationStrategyFolds the given facility hexes into the track's road network, so bases belonging to the planet's owner sit on the road grid alongside cities. A strategy that produces no roads (e.g. the legacy placer) does nothing.- Specified by:
connectFacilitiesToRoadsin interfaceISectorGenerationStrategy- Parameters:
track- the track whose road network to updatefacilityCoords- the facility hexes to connect
-