Package mekhq.campaign.parts
Class GravDeck
java.lang.Object
mekhq.campaign.parts.Part
mekhq.campaign.parts.GravDeck
-
Nested Class Summary
Nested classes/interfaces inherited from class mekhq.campaign.parts.Part
Part.PartPersonRef, Part.PartRef, Part.PartUnitRef -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final megamek.common.TechAdvancementFields 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 megamek.common.interfaces.ITechnology
DATE_ES, DATE_NONE, DATE_PS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()voidfix()intintintintintSticker price is the value of the part according to the rulebooksmegamek.common.TechAdvancementdoublebooleanisRightTechType(String skillType) booleanisSamePartType(Part part) protected voidbooleanvoidremove(boolean salvage) voidupdateConditionFromEntity(boolean checkForDestruction) voidvoidwriteToXML(PrintWriter pw, int indent) Methods inherited from class mekhq.campaign.parts.Part
addChildPart, addTimeSpent, adjustCostsForCampaignOptions, adjustCostsForCampaignOptions, calcYearAvailability, cancelReservation, canChangeWorkMode, canNeverScrap, changeQuantity, checkScrappable, copyBaseData, decrementDaysToWait, decrementQuantity, doMaintenanceDamage, fail, findPartImage, fixReferences, generateInstanceFromXML, getAcquisitionWork, getActualTime, getActualValue, getAllMods, getAllModsForMaintenance, getArrivalReport, getAvailability, getBaseAvailability, getCampaign, getChildParts, getCommonDate, getCommonDate, getCurrentModeName, getDaysToArrival, getDaysToWait, getDesc, getDetails, getDetails, getExtinctionDate, getExtinctionDate, getExtinctionDate, getHits, getId, getIntroductionDate, getIntroductionDate, getIntroductionDate, getMode, getMRMSOptionType, getName, getParentPart, getPartName, 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, getStatus, getTech, getTechBase, getTechBaseName, getTechBaseName, getTechLevel, getTechRating, getTimeLeft, getTimeSpent, getTotalQuantity, getUndamagedValue, getUnit, getUnitTonnage, hasChildParts, hasParentPart, hasReplacementPart, hasWorkedOvertime, improveQuality, incrementQuantity, isBeingWorkedOn, isBrandNew, isClan, isClanTechBase, isInLocation, isInSupply, isIntroducedBy, isMixedTech, isMountedOnDestroyedLocation, isOmniPoddable, isOmniPodded, isPartForEquipmentNum, isPartUsedOrReserved, isPresent, isPriceAdjustedForAmount, isReservedForRefit, isReservedForReplacement, isSalvaging, isSamePartTypeAndStatus, isSameStatus, isSpare, isTeamSalvaging, isUnitTonnageMatters, isUsedForRefitPlanning, needsMaintenance, onBadHipOrShoulder, postProcessCampaignAddition, reduceQuality, removeAllChildParts, removeChildPart, reservePart, resetDaysToWait, resetModeToNormal, resetOvertime, resetRepairSettings, resetTimeSpent, scrap, setBrandNew, setCampaign, setDaysToArrival, setHits, setId, setMode, setOmniPodded, setParentPart, setQuality, setQuantity, setRefitUnit, setReplacementPart, setReservedBy, setShorthandedMod, setSkillMin, setTech, setUnit, setUsedForRefitPlanning, setWorkedOvertime, succeed, toString, writeToXMLBegin, writeToXMLEndMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface mekhq.campaign.work.IPartWork
cancelAssignmentMethods 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
-
Field Details
-
TA_GRAV_DECK
public static final megamek.common.TechAdvancement TA_GRAV_DECK -
GRAV_DECK_TYPE_STANDARD
public static final int GRAV_DECK_TYPE_STANDARD- See Also:
-
GRAV_DECK_TYPE_LARGE
public static final int GRAV_DECK_TYPE_LARGE- See Also:
-
GRAV_DECK_TYPE_HUGE
public static final int GRAV_DECK_TYPE_HUGE- See Also:
-
-
Constructor Details
-
GravDeck
public GravDeck() -
GravDeck
-
-
Method Details
-
getDeckNumber
public int getDeckNumber() -
clone
-
getDeckType
public int getDeckType() -
updateConditionFromEntity
public void updateConditionFromEntity(boolean checkForDestruction) -
getBaseTime
public int getBaseTime() -
getDifficulty
public int getDifficulty()- Returns:
- the base difficulty of this work unit
-
updateConditionFromPart
public void updateConditionFromPart() -
fix
public void fix() -
remove
public void remove(boolean salvage) -
getMissingPart
-
checkFixable
-
needsFixing
public boolean needsFixing() -
getStickerPrice
Description copied from interface:IPartWorkSticker price is the value of the part according to the rulebooks- Returns:
- the part's sticker price
-
getTonnage
public double getTonnage()- Specified by:
getTonnagein classPart
-
isSamePartType
- Specified by:
isSamePartTypein classPart
-
writeToXML
- Specified by:
writeToXMLin classPart
-
loadFieldsFromXmlNode
- Specified by:
loadFieldsFromXmlNodein classPart
-
isRightTechType
- Specified by:
isRightTechTypein interfaceIPartWork- Overrides:
isRightTechTypein classPart
-
getLocationName
- Specified by:
getLocationNamein classPart
-
getLocation
public int getLocation() -
getTechAdvancement
public megamek.common.TechAdvancement getTechAdvancement()- Specified by:
getTechAdvancementin classPart
-