Class CamOpsStrictSalvage
java.lang.Object
mekhq.campaign.mission.scenarios.salvage.AbstractSalvage
mekhq.campaign.mission.scenarios.salvage.CamOpsStrictSalvage
- Direct Known Subclasses:
CamOpsRevisedSalvage
The
CamOps (Strict) salvage system: salvage as written in Campaign Operations.
This is the baseline for every system that uses salvage operations: salvage formations and techs are assigned before a scenario starts, and recover the wrecks afterward.
- Since:
- 0.51.01
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether salvage is recovered through salvage operations.voidresolveScenarioSalvage(Campaign campaign, AbstractContract contract, Scenario scenario, boolean hasBattlefieldControl, List<TestUnit> claimedSalvage, List<TestUnit> soldSalvage, List<TestUnit> unclaimedSalvage, SalvageRecoveryPresenter recoveryPresenter) Resolves a scenario's salvage once the scenario itself has been resolved.Methods inherited from class mekhq.campaign.mission.scenarios.salvage.AbstractSalvage
canSalvage, canSalvageAfterFighting, createSettlement, isAvailableForSalvage, isImmobilized, isMultipleSalvagePerUnitAllowed, isSalvageClaimedInResolveWizard, isSalvageFormationCombatAllowed, recoverSalvage
-
Constructor Details
-
CamOpsStrictSalvage
public CamOpsStrictSalvage()
-
-
Method Details
-
isUseSalvageOperations
public boolean isUseSalvageOperations()Description copied from class:AbstractSalvageChecks whether salvage is recovered through salvage operations.When salvage operations are used, the player assigns salvage formations and techs before a scenario starts, and those teams recover the wrecks afterward.
- Specified by:
isUseSalvageOperationsin classAbstractSalvage- Returns:
trueif salvage operations are used
-
resolveScenarioSalvage
public void resolveScenarioSalvage(Campaign campaign, AbstractContract contract, Scenario scenario, boolean hasBattlefieldControl, List<TestUnit> claimedSalvage, List<TestUnit> soldSalvage, List<TestUnit> unclaimedSalvage, SalvageRecoveryPresenter recoveryPresenter) Resolves a scenario's salvage once the scenario itself has been resolved.The assigned salvage teams recover the wrecks, which the player works through in the recovery presenter. Their techs then risk accidents (if risky salvage is enabled), and spend the time the recovery took.
There is nothing to recover if no teams or techs were assigned, or if the player doesn't control the battlefield.
- Specified by:
resolveScenarioSalvagein classAbstractSalvage- Parameters:
campaign- the current campaigncontract- the contract the scenario belongs toscenario- the scenario being resolvedhasBattlefieldControl-trueif the player controls the battlefieldclaimedSalvage- the wrecks the player claimed in the resolve scenario wizard or, where salvage is decided afterward, every wrecksoldSalvage- the wrecks the player chose to sell in the resolve scenario wizardunclaimedSalvage- the wrecks the player left for their employer in the resolve scenario wizardrecoveryPresenter- shows the player the salvage recovery, for systems that recover wrecks after the scenario
-