Package mekhq.campaign.digitalGM
Interface IScenarioLifecycleStrategy
- All Known Implementing Classes:
StratConScenarioLifecycleStrategy
public interface IScenarioLifecycleStrategy
Strategy for advancing scenarios through their lifecycle: expiring scenarios the player ignored, returning committed
forces once their deployment ends, and applying the consequences of a completed scenario.
The method signatures mirror the corresponding static entry points on
StratConRulesManager; the default StratCon
implementation delegates to them, so the rules themselves are unchanged — only the daily loop that invokes them
now lives in AbstractStratConGM.
- Since:
- 0.51.01
-
Method Summary
Modifier and TypeMethodDescriptionvoidprocessExpiredScenario(StratConScenario scenario, StratConTrackState track, StratConCampaignState campaignState) Applies the consequences of a scenario the player allowed to expire without committing forces.voidprocessForceReturnDates(StratConTrackState track, Campaign campaign) Processes the return of forces whose deployment window on a track has elapsed.voidApplies the results of a resolved scenario (rewards, casualties, facility changes, and so on).
-
Method Details
-
processForceReturnDates
Processes the return of forces whose deployment window on a track has elapsed.- Parameters:
track- the track whose deployed forces are checkedcampaign- the active campaign
-
processExpiredScenario
void processExpiredScenario(StratConScenario scenario, StratConTrackState track, StratConCampaignState campaignState) Applies the consequences of a scenario the player allowed to expire without committing forces.- Parameters:
scenario- the expired scenariotrack- the track the scenario belongs tocampaignState- the StratCon state for the contract
-
processScenarioCompletion
Applies the results of a resolved scenario (rewards, casualties, facility changes, and so on).- Parameters:
tracker- the resolution tracker carrying the completed scenario's outcome
-