Package mekhq.campaign.parts.missing
Class MissingMekGyro
java.lang.Object
mekhq.campaign.parts.Part
mekhq.campaign.parts.missing.MissingPart
mekhq.campaign.parts.missing.MissingMekGyro
- All Implemented Interfaces:
megamek.common.interfaces.ITechnology,ILocatable,ILocation,IAcquisitionWork,IFabricatable,IPartWork,IWork
-
Nested Class Summary
Nested classes/interfaces inherited from class mekhq.campaign.parts.Part
Part.PartPersonRef, Part.PartRef, Part.PartUnitRefNested classes/interfaces inherited from interface mekhq.campaign.location.ILocation
ILocation.ReferenceResolver -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected booleanprotected intFields 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, workingOvertimeFields inherited from interface mekhq.campaign.work.IFabricatable
FABRICATED_PART_PRICE_FRACTION, FABRICATION_MODIFIER, FABRICATION_MULTIPLIER, FABRICATOR_ABILITY_MODIFIER, JURY_RIGGER_COST_MULTIPLIER, REPAIR_COST_FRACTION, RESOURCE_BUNDLE, WASTEFUL_COST_MULTIPLIERFields inherited from interface mekhq.campaign.location.ILocation
LOCATION_REFERENCE_TYPE_TAG, NO_JUMP_PATH, NO_LOCATION, NO_PLANET, NO_PLANETARY_SYSTEM, REFERENCE_RESOLVERSFields inherited from interface megamek.common.interfaces.ITechnology
DATE_ES, DATE_NONE, DATE_PS -
Constructor Summary
ConstructorsConstructorDescriptionMissingMekGyro(int tonnage, int type, double gyroTonnage, boolean isClan, Campaign c) -
Method Summary
Modifier and TypeMethodDescriptionintintintmegamek.common.TechAdvancementmegamek.common.enums.TechRatingdoubleintgetType()booleanisAcceptableReplacement(Part part, boolean refit) protected voidvoidvoidwriteToXML(PrintWriter pw, int indent) Methods inherited from class mekhq.campaign.parts.missing.MissingPart
cancelReservation, canChangeWorkMode, checkScrappable, clone, fail, failToFind, find, findReplacement, fix, getAcquisitionBonus, getAcquisitionDesc, getAcquisitionDisplayName, getAcquisitionExtraDesc, getAcquisitionName, getAcquisitionPart, getActualTime, getAllAcquisitionMods, getAllMods, getBuyCost, getDesc, getDetails, getDetails, getMissingPart, getNewEquipment, getStatus, getStickerPrice, getTechLevel, isAvailableAsReplacement, isExtinctIn, isIntroducedBy, isReplacementAvailable, isSalvaging, isSamePartType, needsFixing, needsMaintenance, remove, reservePart, scrap, succeed, updateConditionFromEntityMethods inherited from class mekhq.campaign.parts.Part
addChildPart, addTimeSpent, adjustCostsForCampaignOptions, adjustCostsForCampaignOptions, calcYearAvailability, canBeManuallyDispatched, canNeverScrap, changeQuantity, copyBaseData, decrementDaysToWait, decrementQuantity, doMaintenanceDamage, fetchPartsAtLocation, findPartImage, fixReferences, generateInstanceFromXML, getAcquisitionWork, getActualValue, getAllModsForMaintenance, getArrivalReport, getAvailability, getBaseAvailability, getBaseQuantityForPartsInUse, getCampaign, getChildParts, getCommonDate, getCommonDate, getCurrentModeName, getDaysToArrival, getDaysToWait, getExtinctionDate, getExtinctionDate, getExtinctionDate, getHits, getId, getIntroductionDate, getIntroductionDate, getIntroductionDate, getLocationNode, getMode, getName, getParentPart, getPartInventory, getPartName, getPlace, getProductionDate, getProductionDate, getProductionDate, getPrototypeDate, getPrototypeDate, getPrototypeDate, getQuality, getQualityName, getQuantity, getQuantityForPartsInUse, getQuantityName, getRefitUnit, getReintroductionDate, getReintroductionDate, getReintroductionDate, getRepairDesc, getRepairPartType, getReplacementPart, getReservedBy, getSellableQuantity, getShoppingListReport, getShorthandedMod, getSimpleTechLevel, getSimpleTechLevel, getSimpleTechLevel, getSkillMin, getStaticTechLevel, getTech, getTechBase, getTechBaseName, getTechBaseName, getTimeLeft, getTimeSpent, getTotalQuantity, getUndamagedValue, getUnit, getUnitTonnage, getWarehouse, hasChildParts, hasParentPart, hasReplacementPart, hasWorkedOvertime, improveQuality, incrementQuantity, isBeingWorkedOn, isBrandNew, isClan, isClanTechBase, isDamagedBeyondRepair, isFabricateUntilSuccess, isFabricating, isInLocation, isInSupply, isIntroducedBy, isMixedTech, isMountedOnDestroyedLocation, isOmniPoddable, isOmniPodded, isPartForEquipmentNum, isPartUsedOrReserved, isPresent, isPriceAdjustedForAmount, isReservedForRefit, isReservedForReplacement, isRightTechType, isSamePartTypeAndStatus, isSameStatus, isSpare, isTeamSalvaging, isUnitTonnageMatters, isUsedForRefitPlanning, onBadHipOrShoulder, postProcessCampaignAddition, reduceQuality, removeAllChildParts, removeChildPart, resetDaysToWait, resetModeToNormal, resetOvertime, resetRepairSettings, resetTimeSpent, setBrandNew, setCampaign, setDaysToArrival, setFabricateUntilSuccess, setFabricating, setHits, setId, setMode, setOmniPodded, setParentPart, setQuality, setQuantity, setRefitUnit, setReplacementPart, setReservedBy, setShorthandedMod, setSkillMin, setTech, setUnit, setUsedForRefitPlanning, setWorkedOvertime, toString, writeToXMLBegin, writeToXMLEndMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface mekhq.campaign.work.IAcquisitionWork
decrementDaysToWait, decrementQuantity, getAvailability, getDaysToWait, getQuantity, getQuantityName, getShoppingListReport, getTechBase, getTotalBuyCost, getTotalQuantity, getUnit, incrementQuantity, isBulkAcquisition, resetDaysToWaitMethods inherited from interface mekhq.campaign.work.IFabricatable
addFabricationMods, cancelFabrication, canFabricate, canFabricate, chargeFabricationAttempt, fabricationTimeMultiplier, getCampaign, getFabricationCost, getFabricationCost, getFabricationPartBasis, getFabricationRepairBasis, getName, getTech, getUnit, isAmmunitionFabrication, isFabricateUntilSuccess, isFabricating, setFabricateUntilSuccess, setFabricatingMethods inherited from interface mekhq.campaign.location.ILocatable
isInUse, isQueuedForTravelMethods inherited from interface mekhq.campaign.location.ILocation
canSetChild, canSetParent, fetchPartsAtLocation, fetchPersonnelAtLocation, fetchUnitsAtLocation, getChildLocations, getCurrentLocation, getCurrentSystem, getHangar, getJumpPath, getLocationNode, getParentLocation, getPercentageTransit, getPersonnel, getPlace, getPlanet, getTransitTime, hasLocation, hasLocationNode, isAtJumpPoint, isInTransit, isJumpZenith, isOnPlanet, isParented, locationReferenceType, processArrivals, setChild, setJumpPath, setParent, writeReferenceIdentity, writeReferenceToXMLMethods inherited from interface mekhq.campaign.work.IPartWork
addTimeSpent, cancelAssignment, getActualValue, getAllModsForMaintenance, getPartName, getRepairPartType, getShorthandedMod, getSkillMin, getTimeLeft, getTimeSpent, getUndamagedValue, hasWorkedOvertime, isBeingWorkedOn, isPriceAdjustedForAmount, isRightTechType, resetOvertime, resetTimeSpent, setShorthandedMod, setTech, setWorkedOvertimeMethods 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, isUnofficialMethods inherited from interface mekhq.campaign.work.IWork
getMode, getWarehouse
-
Field Details
-
type
protected int type -
gyroTonnage
protected double gyroTonnage -
isClan
protected boolean isClan
-
-
Constructor Details
-
MissingMekGyro
public MissingMekGyro() -
MissingMekGyro
-
-
Method Details
-
getBaseTime
public int getBaseTime() -
getDifficulty
public int getDifficulty()- Returns:
- the base difficulty of this work unit
-
getType
public int getType() -
getTonnage
public double getTonnage()- Specified by:
getTonnagein classPart
-
writeToXML
- Overrides:
writeToXMLin classMissingPart
-
loadFieldsFromXmlNode
- Specified by:
loadFieldsFromXmlNodein classPart
-
getTechRating
@Nonnull public megamek.common.enums.TechRating getTechRating()- Specified by:
getTechRatingin interfaceIFabricatable- Specified by:
getTechRatingin interfacemegamek.common.interfaces.ITechnology- Overrides:
getTechRatingin classPart
-
isAcceptableReplacement
- Specified by:
isAcceptableReplacementin classMissingPart
-
checkFixable
-
getNewPart
- Specified by:
getNewPartin interfaceIFabricatable- Specified by:
getNewPartin classMissingPart- Returns:
- a brand-new instance of the component this work item would install (used to derive fabrication cost and eligibility)
-
updateConditionFromPart
public void updateConditionFromPart() -
getLocationName
- Specified by:
getLocationNamein classPart
-
getLocation
public int getLocation() -
getTechAdvancement
public megamek.common.TechAdvancement getTechAdvancement()- Specified by:
getTechAdvancementin classPart
-
getMRMSOptionType
- Specified by:
getMRMSOptionTypein interfaceIPartWork- Overrides:
getMRMSOptionTypein classPart
-