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, typeName
Fields inherited from class mekhq.campaign.parts.Part
brandNew, campaign, childParts, daysToArrival, daysToWait, hits, id, mode, name, omniPodded, parentPart, quality, quantity, resources, shorthandedMod, skillMin, T_BOTH, T_CLAN, T_IS, T_UNKNOWN, TA_GENERIC, TA_POD, tech, timeSpent, unit, unitTonnage, unitTonnageMatters, usedForRefitPlanning, workingOvertime
Fields inherited from interface megamek.common.ITechnology
DATE_ES, DATE_NONE, DATE_PS, ERA_CLAN, ERA_DA, ERA_NUM, ERA_SL, ERA_SW, F_CBR, F_CBS, F_CC, F_CCC, F_CCY, F_CF, F_CFM, F_CGB, F_CGS, F_CHH, F_CIH, F_CJF, F_CLAN, F_CMN, F_CNC, F_CP, F_CS, F_CSA, F_CSF, F_CSJ, F_CSR, F_CSV, F_CWF, F_CWM, F_CWV, F_CWX, F_DC, F_EI, F_FC, F_FR, F_FS, F_FW, F_IS, F_LC, F_MC, F_MERC, F_MH, F_NONE, F_OA, F_PER, F_RA, F_RD, F_RS, F_RW, F_TA, F_TC, F_TH, F_WB, IO_FACTION_CODES, MM_FACTION_CODES, RATING_A, RATING_B, RATING_C, RATING_D, RATING_E, RATING_F, RATING_FSTAR, RATING_X, ratingNames, TECH_BASE_ALL, TECH_BASE_CLAN, TECH_BASE_IS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
int
getDetails
(boolean includeRepairDetails) Gets a string containing details regarding the part, and optionally include information on its repair status.int
Copied from megamek.common.Entity.getWeaponsAndEquipmentCost(StringBuffer detail, boolean ignoreAmmo)boolean
boolean
void
updateConditionFromEntity
(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, onBadHipOrShoulder, remove, restore, setEquipmentNum, setEquipTonnage, setUnit, updateConditionFromPart, writeToXML
Methods inherited from class mekhq.campaign.parts.Part
addChildPart, addTimeSpent, adjustCostsForCampaignOptions, adjustCostsForCampaignOptions, calcYearAvailability, cancelAssignment, 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, getQuantityName, getRefitUnit, getReintroductionDate, getReintroductionDate, getReintroductionDate, getRepairDesc, getReplacementPart, getSellableQuantity, getShoppingListReport, getShorthandedMod, getSimpleTechLevel, getSimpleTechLevel, getSimpleTechLevel, getSkillMin, getStaticTechLevel, getStatus, getTech, getTechBase, getTechBaseName, getTechBaseName, getTechLevel, getTimeLeft, getTimeSpent, getUndamagedValue, getUnit, getUnitTonnage, hasChildParts, hasParentPart, hasReplacementPart, hasWorkedOvertime, improveQuality, incrementQuantity, isBeingWorkedOn, isBrandNew, isClan, isClanTechBase, isInSupply, isIntroducedBy, isMixedTech, isOmniPodded, 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, writeToXMLEnd
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface megamek.common.ITechnology
calcEraAvailability, calcEraAvailability, calcYearAvailability, calcYearAvailability, findMinimumRulesLevel, findMinimumRulesLevel, getAdvancedRange, getAdvancedRange, 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.EquipmentType et, int equipNum, boolean omniPodded, Campaign c)
-
-
Method Details
-
clone
- Overrides:
clone
in classEquipmentPart
-
getStickerPrice
Copied from megamek.common.Entity.getWeaponsAndEquipmentCost(StringBuffer detail, boolean ignoreAmmo)- Specified by:
getStickerPrice
in interfaceIPartWork
- Overrides:
getStickerPrice
in classEquipmentPart
- Returns:
- the part's sticker price
-
getMissingPart
- Specified by:
getMissingPart
in interfaceIPartWork
- Overrides:
getMissingPart
in classEquipmentPart
-
updateConditionFromEntity
public void updateConditionFromEntity(boolean checkForDestruction) - Specified by:
updateConditionFromEntity
in interfaceIPartWork
- Overrides:
updateConditionFromEntity
in classEquipmentPart
-
getBaseTime
public int getBaseTime()- Specified by:
getBaseTime
in interfaceIPartWork
- Overrides:
getBaseTime
in classEquipmentPart
-
getDifficulty
public int getDifficulty()- Specified by:
getDifficulty
in interfaceIWork
- Overrides:
getDifficulty
in classEquipmentPart
- Returns:
- the base difficulty of this work unit
-
needsFixing
public boolean needsFixing()- Specified by:
needsFixing
in interfaceIWork
- Overrides:
needsFixing
in classEquipmentPart
-
getRepairPartType
- Specified by:
getRepairPartType
in interfaceIPartWork
- Overrides:
getRepairPartType
in classPart
-
isOmniPoddable
public boolean isOmniPoddable()- Overrides:
isOmniPoddable
in classEquipmentPart
-
getDetails
Gets a string containing details regarding the part, and optionally include information on its repair status.- Specified by:
getDetails
in interfaceIPartWork
- Overrides:
getDetails
in classPart
- Parameters:
includeRepairDetails
-true
if 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.
-