Package mekhq.campaign.digitalGM
Interface IOpForDeploymentStrategy
- All Known Implementing Classes:
StratConOpForDeploymentStrategy
public interface IOpForDeploymentStrategy
Strategy for deciding where on the track the OpFor deploys — which coordinates a generated scenario is
placed at. This is distinct from
IOpForGenerationStrategy (what the OpFor fields) and from
IMapGenerationStrategy (the terrain of the resulting battle): a GM can keep the standard enemy composition
but change where hostile scenarios appear on the strategic map.
The default StratCon implementation delegates to
StratConContractInitializer.getUnoccupiedCoords — the existing weighted-random selection of an unoccupied,
non-ocean hex. The accessor lives on AbstractStratConGM.
- Since:
- 0.51.01
-
Method Summary
Modifier and TypeMethodDescriptiondefault StratConCoordsSelects the coordinates a hostile scenario deploys to, using the default constraints (no placement on player facilities or forces, no strategic emphasis).getUnoccupiedCoords(StratConTrackState track, boolean allowPlayerFacilities, boolean allowPlayerForces, boolean emphasizeStrategicTargets) Selects the coordinates a hostile scenario deploys to on the track.
-
Method Details
-
getUnoccupiedCoords
@Nullable StratConCoords getUnoccupiedCoords(StratConTrackState track, boolean allowPlayerFacilities, boolean allowPlayerForces, boolean emphasizeStrategicTargets) Selects the coordinates a hostile scenario deploys to on the track.- Parameters:
track- the track to place the scenario onallowPlayerFacilities-trueto allow placement on player-allied facility hexesallowPlayerForces-trueto allow placement on hexes occupied by player forcesemphasizeStrategicTargets-trueto weight placement toward strategic targets- Returns:
- the chosen coordinates, or
nullif the track has no eligible hex
-
getUnoccupiedCoords
Selects the coordinates a hostile scenario deploys to, using the default constraints (no placement on player facilities or forces, no strategic emphasis).- Parameters:
track- the track to place the scenario on- Returns:
- the chosen coordinates, or
nullif the track has no eligible hex
-