Package mekhq.campaign.parts.equipment
Class HeatSink
java.lang.Object
mekhq.campaign.parts.Part
mekhq.campaign.parts.equipment.EquipmentPart
mekhq.campaign.parts.equipment.HeatSink
-
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.equipment.EquipmentPart
equipmentNum, equipTonnage, size, type, typeNameFields 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()intgetDetails(boolean includeRepairDetails) Gets a string containing details regarding the part, and optionally include information on its repair status.intCopied from megamek.common.units.Entity.getWeaponsAndEquipmentCost(StringBuffer detail, boolean ignoreAmmo)booleanvoidupdateConditionFromEntity(boolean checkForDestruction) Methods inherited from class mekhq.campaign.parts.equipment.EquipmentPart
checkFixable, fix, getEquipmentNum, getLocation, getLocationName, getMaxTonnage, getMounted, getSize, getStartingTonnage, getTechAdvancement, getTechRating, getTonnage, getTonnageIncrement, getType, hasVariableTonnage, isInLocation, isMountedOnDestroyedLocation, isPartForEquipmentNum, isRearFacing, isSamePartType, loadFieldsFromXmlNode, needsFixing, onBadHipOrShoulder, remove, restore, setEquipmentNum, setEquipTonnage, setUnit, updateConditionFromPart, writeToXMLMethods 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, 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, getReplacementPart, getReservedBy, getSellableQuantity, getShoppingListReport, getShorthandedMod, getSimpleTechLevel, getSimpleTechLevel, getSimpleTechLevel, getSkillMin, getStaticTechLevel, getStatus, getTech, getTechBase, getTechBaseName, getTechBaseName, getTechLevel, getTimeLeft, getTimeSpent, getTotalQuantity, getUndamagedValue, getUnit, getUnitTonnage, hasChildParts, hasParentPart, hasReplacementPart, hasWorkedOvertime, improveQuality, incrementQuantity, isBeingWorkedOn, isBrandNew, isClan, isClanTechBase, isInSupply, isIntroducedBy, isMixedTech, isOmniPodded, isPartUsedOrReserved, isPresent, isPriceAdjustedForAmount, isReservedForRefit, isReservedForReplacement, isRightTechType, isSalvaging, isSamePartTypeAndStatus, isSameStatus, isSpare, isTeamSalvaging, isUnitTonnageMatters, isUsedForRefitPlanning, needsMaintenance, 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, 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
-
Constructor Details
-
HeatSink
public HeatSink() -
HeatSink
public HeatSink(int tonnage, megamek.common.equipment.EquipmentType et, int equipNum, boolean omniPodded, Campaign c)
-
-
Method Details
-
clone
- Overrides:
clonein classEquipmentPart
-
getStickerPrice
Copied from megamek.common.units.Entity.getWeaponsAndEquipmentCost(StringBuffer detail, boolean ignoreAmmo)- Specified by:
getStickerPricein interfaceIPartWork- Overrides:
getStickerPricein classEquipmentPart- Returns:
- the part's sticker price
-
getMissingPart
- Specified by:
getMissingPartin interfaceIPartWork- Overrides:
getMissingPartin classEquipmentPart
-
updateConditionFromEntity
public void updateConditionFromEntity(boolean checkForDestruction) - Specified by:
updateConditionFromEntityin interfaceIPartWork- Overrides:
updateConditionFromEntityin classEquipmentPart
-
getBaseTime
public int getBaseTime()- Specified by:
getBaseTimein interfaceIPartWork- Overrides:
getBaseTimein classEquipmentPart
-
getDifficulty
public int getDifficulty()- Specified by:
getDifficultyin interfaceIWork- Overrides:
getDifficultyin classEquipmentPart- Returns:
- the base difficulty of this work unit
-
getRepairPartType
- Specified by:
getRepairPartTypein interfaceIPartWork- Overrides:
getRepairPartTypein classPart
-
isOmniPoddable
public boolean isOmniPoddable()- Overrides:
isOmniPoddablein classEquipmentPart
-
getDetails
Gets a string containing details regarding the part, and optionally include information on its repair status.- Specified by:
getDetailsin interfaceIPartWork- Overrides:
getDetailsin classPart- Parameters:
includeRepairDetails-trueif the details should include information such as the number of hits or how much it would cost to repair the part.- Returns:
- A string containing details regarding the part.
-