Package mekhq.campaign.parts
Class Turret
java.lang.Object
mekhq.campaign.parts.Part
mekhq.campaign.parts.TankLocation
mekhq.campaign.parts.Turret
-
Nested Class Summary
Nested classes/interfaces inherited from class mekhq.campaign.parts.Part
Part.PartPersonRef, Part.PartRef, Part.PartUnitRef
Nested classes/interfaces inherited from interface megamek.common.ITechnology
megamek.common.ITechnology.AvailabilityValue, megamek.common.ITechnology.Era, megamek.common.ITechnology.Faction, megamek.common.ITechnology.FactionAffiliation, megamek.common.ITechnology.TechBase, megamek.common.ITechnology.TechRating
-
Field Summary
FieldsFields inherited from class mekhq.campaign.parts.TankLocation
breached, damage, loc
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.ITechnology
DATE_ES, DATE_NONE, DATE_PS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
clone()
int
Gets a string containing details regarding the part, e.g.int
Sticker price is the value of the part according to the rulebooksdouble
boolean
isSamePartType
(Part part) protected void
void
remove
(boolean salvage) void
void
void
writeToXML
(PrintWriter pw, int indent) Methods inherited from class mekhq.campaign.parts.TankLocation
computeCost, doMaintenanceDamage, fix, getAllMods, getDamage, getDesc, getDetails, getLoc, getLocation, getLocationName, getMRMSOptionType, getTechAdvancement, isBreached, isRightTechType, isSalvaging, isSameStatus, needsFixing, updateConditionFromEntity
Methods inherited from class mekhq.campaign.parts.Part
addChildPart, addTimeSpent, adjustCostsForCampaignOptions, adjustCostsForCampaignOptions, calcYearAvailability, cancelReservation, canChangeWorkMode, changeQuantity, copyBaseData, decrementDaysToWait, decrementQuantity, fail, findPartImage, fixReferences, generateInstanceFromXML, getAcquisitionWork, getActualTime, getActualValue, getAllModsForMaintenance, getArrivalReport, getAvailability, getBaseAvailability, getCampaign, getChildParts, getCommonDate, getCommonDate, getCurrentModeName, getDaysToArrival, getDaysToWait, getExtinctionDate, getExtinctionDate, getExtinctionDate, getHits, getId, getIntroductionDate, getIntroductionDate, getIntroductionDate, getMode, 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, getStatus, getTech, getTechBase, getTechBaseName, getTechBaseName, getTechLevel, getTechRating, getTimeLeft, getTimeSpent, 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, isSamePartTypeAndStatus, 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, 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 mekhq.campaign.work.IPartWork
cancelAssignment
Methods inherited from interface megamek.common.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
-
weight
protected double weight
-
-
Constructor Details
-
Turret
public Turret() -
Turret
-
Turret
-
-
Method Details
-
clone
- Overrides:
clone
in classTankLocation
-
setUnit
-
isSamePartType
- Overrides:
isSamePartType
in classTankLocation
-
writeToXML
- Overrides:
writeToXML
in classTankLocation
-
loadFieldsFromXmlNode
- Overrides:
loadFieldsFromXmlNode
in classTankLocation
-
getMissingPart
- Specified by:
getMissingPart
in interfaceIPartWork
- Overrides:
getMissingPart
in classTankLocation
-
remove
public void remove(boolean salvage) - Specified by:
remove
in interfaceIPartWork
- Overrides:
remove
in classTankLocation
-
getBaseTime
public int getBaseTime()- Specified by:
getBaseTime
in interfaceIPartWork
- Overrides:
getBaseTime
in classTankLocation
-
getDifficulty
public int getDifficulty()- Specified by:
getDifficulty
in interfaceIWork
- Overrides:
getDifficulty
in classTankLocation
- Returns:
- the base difficulty of this work unit
-
updateConditionFromPart
public void updateConditionFromPart()- Specified by:
updateConditionFromPart
in interfaceIPartWork
- Overrides:
updateConditionFromPart
in classTankLocation
-
checkFixable
- Specified by:
checkFixable
in interfaceIPartWork
- Overrides:
checkFixable
in classTankLocation
-
checkScrappable
- Overrides:
checkScrappable
in classTankLocation
-
canNeverScrap
public boolean canNeverScrap()- Overrides:
canNeverScrap
in classTankLocation
-
getDetails
Description copied from class:Part
Gets a string containing details regarding the part, e.g. OmniPod or how many hits it has taken and its repair cost.- Specified by:
getDetails
in interfaceIPartWork
- Overrides:
getDetails
in classTankLocation
- Returns:
- A string containing details regarding the part.
-
getTonnage
public double getTonnage()- Overrides:
getTonnage
in classTankLocation
-
getStickerPrice
Description copied from interface:IPartWork
Sticker price is the value of the part according to the rulebooks- Specified by:
getStickerPrice
in interfaceIPartWork
- Overrides:
getStickerPrice
in classTankLocation
- Returns:
- the part's sticker price
-