Package mekhq.campaign.parts.missing
Class MissingOmniPod
java.lang.Object
mekhq.campaign.parts.Part
mekhq.campaign.parts.missing.MissingPart
mekhq.campaign.parts.missing.MissingOmniPod
- All Implemented Interfaces:
megamek.common.interfaces.ITechnology
,IAcquisitionWork
,IPartWork
,IWork
Like
OmniPod
this is never added to a Unit
.
OmniPod
is used for empty
pods in the warehouse, and MissingOmniPod
is used for acquisition.-
Nested Class Summary
Nested classes/interfaces inherited from class mekhq.campaign.parts.Part
Part.PartPersonRef, Part.PartRef, Part.PartUnitRef
-
Field Summary
Fields inherited from class mekhq.campaign.parts.Part
brandNew, campaign, childParts, daysToArrival, daysToWait, hits, id, mode, name, omniPodded, parentPart, quality, quantity, resources, shorthandedMod, skillMin, TA_GENERIC, TA_POD, tech, timeSpent, unit, unitTonnage, unitTonnageMatters, usedForRefitPlanning, workingOvertime
Fields inherited from interface megamek.common.interfaces.ITechnology
DATE_ES, DATE_NONE, DATE_PS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
megamek.common.TechAdvancement
megamek.common.enums.TechBase
megamek.common.enums.TechRating
double
boolean
isAcceptableReplacement
(Part part, boolean refit) protected void
Loads class fields from XMLvoid
void
void
writeToXML
(PrintWriter pw, int indent) Exports class data to xmlMethods inherited from class mekhq.campaign.parts.missing.MissingPart
cancelReservation, canChangeWorkMode, checkScrappable, clone, fail, failToFind, find, findReplacement, fix, getAcquisitionBonus, getAcquisitionDesc, getAcquisitionDisplayName, getAcquisitionExtraDesc, getAcquisitionName, getAcquisitionPart, getAllAcquisitionMods, getBuyCost, getDesc, getDetails, getDetails, getMissingPart, getNewEquipment, getStatus, getStickerPrice, getTechLevel, isAvailableAsReplacement, isExtinctIn, isIntroducedBy, isReplacementAvailable, isSalvaging, isSamePartType, needsFixing, needsMaintenance, remove, reservePart, scrap, succeed, updateConditionFromEntity
Methods inherited from class mekhq.campaign.parts.Part
addChildPart, addTimeSpent, adjustCostsForCampaignOptions, adjustCostsForCampaignOptions, calcYearAvailability, canNeverScrap, changeQuantity, copyBaseData, decrementDaysToWait, decrementQuantity, doMaintenanceDamage, findPartImage, fixReferences, generateInstanceFromXML, getAcquisitionWork, getActualTime, getActualValue, getAllMods, getAllModsForMaintenance, getArrivalReport, getAvailability, getBaseAvailability, getCampaign, getChildParts, getCommonDate, getCommonDate, getCurrentModeName, getDaysToArrival, getDaysToWait, getExtinctionDate, getExtinctionDate, getExtinctionDate, getHits, getId, getIntroductionDate, getIntroductionDate, getIntroductionDate, getMode, getMRMSOptionType, getName, getParentPart, getPartName, getProductionDate, getProductionDate, getProductionDate, getPrototypeDate, getPrototypeDate, getPrototypeDate, getQuality, getQualityName, getQuantity, getQuantityName, getRefitUnit, getReintroductionDate, getReintroductionDate, getReintroductionDate, getRepairDesc, getRepairPartType, getReplacementPart, getSellableQuantity, getShoppingListReport, getShorthandedMod, getSimpleTechLevel, getSimpleTechLevel, getSimpleTechLevel, getSkillMin, getStaticTechLevel, getTech, getTechBaseName, getTechBaseName, getTimeLeft, getTimeSpent, getTotalQuantity, getUndamagedValue, getUnit, getUnitTonnage, hasChildParts, hasParentPart, hasReplacementPart, hasWorkedOvertime, improveQuality, incrementQuantity, isBeingWorkedOn, isBrandNew, isClan, isClanTechBase, isInLocation, isInSupply, isIntroducedBy, isMixedTech, isMountedOnDestroyedLocation, isOmniPoddable, isOmniPodded, isPartForEquipmentNum, isPresent, isPriceAdjustedForAmount, isReservedForRefit, isReservedForReplacement, isRightTechType, isSamePartTypeAndStatus, isSameStatus, isSpare, isTeamSalvaging, isUnitTonnageMatters, isUsedForRefitPlanning, onBadHipOrShoulder, postProcessCampaignAddition, reduceQuality, removeAllChildParts, removeChildPart, resetDaysToWait, resetModeToNormal, resetOvertime, resetRepairSettings, resetTimeSpent, setBrandNew, setDaysToArrival, setHits, setId, setMode, setOmniPodded, setParentPart, setQuality, setQuantity, setRefitUnit, setReplacementPart, setReservedBy, setShorthandedMod, setSkillMin, setTech, setUnit, setUsedForRefitPlanning, setWorkedOvertime, toString, writeToXMLBegin, writeToXMLEnd
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface mekhq.campaign.work.IAcquisitionWork
decrementDaysToWait, decrementQuantity, getAvailability, getDaysToWait, getQuantity, getQuantityName, getShoppingListReport, getTotalBuyCost, getTotalQuantity, getUnit, incrementQuantity, resetDaysToWait
Methods inherited from interface mekhq.campaign.work.IPartWork
cancelAssignment
Methods inherited from interface megamek.common.interfaces.ITechnology
calcEraAvailability, calcEraAvailability, calcYearAvailability, calcYearAvailability, findMinimumRulesLevel, findMinimumRulesLevel, getAdvancedRange, getAdvancedRange, getCodeFromIOAbbr, getCodeFromMMAbbr, getEraAvailabilityName, getEraAvailabilityName, getExperimentalRange, getExperimentalRange, getExtinctionRange, getExtinctionRange, getFullRatingName, getFullRatingName, getSimpleLevel, getSimpleLevel, getSimpleLevel, getStandardRange, getStandardRange, getTechLevel, getTechLevel, getTechRatingName, isAvailableIn, isAvailableIn, isAvailableIn, isExtinct, isExtinct, isExtinct, isIntroLevel, isLegal, isLegal, isUnofficial
Methods inherited from interface mekhq.campaign.work.IWork
getAllMods, getMode, getTech
-
Constructor Details
-
MissingOmniPod
public MissingOmniPod() -
MissingOmniPod
- Parameters:
partType
- The type of part that can be installed in this podc
- The campaign
-
-
Method Details
-
setCampaign
- Overrides:
setCampaign
in classPart
-
getPartType
- Returns:
- The type of part that can be installed in this pod
-
getTechBase
public megamek.common.enums.TechBase getTechBase()- Specified by:
getTechBase
in interfaceIAcquisitionWork
- Specified by:
getTechBase
in interfacemegamek.common.interfaces.ITechnology
- Overrides:
getTechBase
in classPart
- Returns:
- The tech base of the part the OmniPod is meant to contain.
-
writeToXML
Exports class data to xml- Overrides:
writeToXML
in classMissingPart
-
loadFieldsFromXmlNode
Loads class fields from XML- Specified by:
loadFieldsFromXmlNode
in classPart
-
getNewPart
- Specified by:
getNewPart
in classMissingPart
-
getTechRating
public megamek.common.enums.TechRating getTechRating()- Specified by:
getTechRating
in interfacemegamek.common.interfaces.ITechnology
- Overrides:
getTechRating
in classPart
-
getTechAdvancement
public megamek.common.TechAdvancement getTechAdvancement()- Specified by:
getTechAdvancement
in classPart
-
getBaseTime
public int getBaseTime() -
updateConditionFromPart
public void updateConditionFromPart() -
getLocation
public int getLocation() -
checkFixable
-
getDifficulty
public int getDifficulty()- Returns:
- the base difficulty of this work unit
-
isAcceptableReplacement
- Specified by:
isAcceptableReplacement
in classMissingPart
-
getTonnage
public double getTonnage()- Specified by:
getTonnage
in classPart
-
getLocationName
- Specified by:
getLocationName
in classPart
-