Package mekhq.campaign
Class ResolveScenarioTracker
java.lang.Object
mekhq.campaign.ResolveScenarioTracker
This object will be the main workhorse for the scenario resolution wizard. It will keep track of information and be
fed back and forth between the various wizards
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis object is used to track the status of an opposition personnel.static classThis object is used to track the status of a particular personnel.static classThis object is used to track the status of a particular unit. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoiddoNotSalvageUnit(int i) voidDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.intDeprecated, for removal: This API element is subject to removal in a future version.intgetUnits()booleanbooleanbooleanvoidvoidvoidresolveScenario(ScenarioStatus resolution, String report) voidsalvageUnit(int i) voidsellUnit(int i) voidsetBonusRolls(int i) Deprecated, for removal: This API element is subject to removal in a future version.voidsetClient(megamek.client.IClient c) voidsetContractBreaches(int i) Deprecated, for removal: This API element is subject to removal in a future version.voidsetEvent(megamek.common.event.PostGameResolution gve) booleanDetermines whether a salvage exchange is used based on the current contract's conditions.
-
Field Details
-
DAMANGED_PART_COMPENSATION_MODIFIER
public static final double DAMANGED_PART_COMPENSATION_MODIFIER- See Also:
-
-
Constructor Details
-
ResolveScenarioTracker
-
-
Method Details
-
getCapturePrisoners
-
isAutoResolve
public boolean isAutoResolve() -
findUnitFile
public void findUnitFile() -
getUnitFilePath
-
setClient
public void setClient(megamek.client.IClient c) -
processMulFiles
public void processMulFiles() -
processGame
public void processGame() -
assignKills
public void assignKills() -
checkStatusOfPersonnel
public void checkStatusOfPersonnel() -
getAlliedUnits
Deprecated, for removal: This API element is subject to removal in a future version. -
getPotentialSalvage
-
getDropShipBonus
-
getActualSalvage
-
getSoldSalvage
-
getLeftoverSalvage
-
salvageUnit
public void salvageUnit(int i) -
sellUnit
public void sellUnit(int i) -
doNotSalvageUnit
public void doNotSalvageUnit(int i) -
setContractBreaches
Deprecated, for removal: This API element is subject to removal in a future version. -
setBonusRolls
Deprecated, for removal: This API element is subject to removal in a future version. -
getCampaign
-
getScenario
-
getMission
-
getMissionId
public int getMissionId() -
getScenarioId
public int getScenarioId() -
getKillCredits
-
getUnits
-
resolveScenario
-
getMissingPersonnel
Deprecated, for removal: This API element is subject to removal in a future version. -
getDeadPersonnel
Deprecated, for removal: This API element is subject to removal in a future version. -
getRecoveredPersonnel
Deprecated, for removal: This API element is subject to removal in a future version. -
getPeopleStatus
-
getOppositionPersonnel
-
getUnitsStatus
-
getSalvageStatus
-
getAllInvolvedUnits
-
getPotentialLoot
-
addLoot
-
getSortedPeople
-
getSortedPrisoners
-
usesSalvageExchange
public boolean usesSalvageExchange()Determines whether a salvage exchange is used based on the current contract's conditions.This method checks the type of the mission and evaluates specific conditions to determine if a salvage exchange approach applies. For AtB (Against the Bot) contracts, it evaluates if the enemy and employer's factions are Clan and if the date is before the Battle of Tukayyid. If these conditions are met, it returns true.
Additionally, in general contracts, it checks if the salvage exchange is explicitly enabled.
- Returns:
trueif the current mission uses a salvage exchange,falseotherwise.
-
isEmployerEvokingSpecialClause
public boolean isEmployerEvokingSpecialClause() -
setEvent
public void setEvent(megamek.common.event.PostGameResolution gve) -
playerHasBattlefieldControl
public boolean playerHasBattlefieldControl()
-