Package mekhq.campaign.parts.protomeks
Class ProtoMekLegActuator
java.lang.Object
mekhq.campaign.parts.Part
mekhq.campaign.parts.protomeks.ProtoMekLegActuator
-
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.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.interfaces.ITechnology
DATE_ES, DATE_NONE, DATE_PS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
void
fix()
int
Gets a string containing details regarding the part, e.g.getDetails
(boolean includeRepairDetails) Gets a string containing details regarding the part, and optionally include information on its repair status.int
int
Sticker price is the value of the part according to the rulebooksmegamek.common.TechAdvancement
megamek.common.enums.TechBase
int
double
boolean
boolean
isPartForEquipmentNum
(int index, int loc) boolean
isRightTechType
(String skillType) boolean
isSamePartType
(Part part) protected void
boolean
void
remove
(boolean salvage) void
updateConditionFromEntity
(boolean checkForDestruction) void
void
writeToXML
(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, 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, getTechBaseName, getTechBaseName, getTechRating, getTimeLeft, getTimeSpent, getTotalQuantity, getUndamagedValue, getUnit, getUnitTonnage, hasChildParts, hasParentPart, hasReplacementPart, hasWorkedOvertime, improveQuality, incrementQuantity, isBeingWorkedOn, isBrandNew, isClan, isClanTechBase, isInLocation, isInSupply, isIntroducedBy, isMixedTech, isOmniPoddable, isOmniPodded, 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, 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.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
-
ProtoMekLegActuator
public ProtoMekLegActuator() -
ProtoMekLegActuator
-
-
Method Details
-
clone
-
getTonnage
public double getTonnage()- Specified by:
getTonnage
in classPart
-
getStickerPrice
Description copied from interface:IPartWork
Sticker price is the value of the part according to the rulebooks- Returns:
- the part's sticker price
-
isSamePartType
- Specified by:
isSamePartType
in classPart
-
writeToXML
- Specified by:
writeToXML
in classPart
-
fix
public void fix() -
getTechBase
public megamek.common.enums.TechBase getTechBase()- Specified by:
getTechBase
in interfacemegamek.common.interfaces.ITechnology
- Overrides:
getTechBase
in classPart
-
getTechLevel
public int getTechLevel()- Overrides:
getTechLevel
in classPart
- Returns:
- TechConstants tech level
-
getMissingPart
-
remove
public void remove(boolean salvage) -
updateConditionFromEntity
public void updateConditionFromEntity(boolean checkForDestruction) -
getBaseTime
public int getBaseTime() -
getDifficulty
public int getDifficulty()- Returns:
- the base difficulty of this work unit
-
needsFixing
public boolean needsFixing() -
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 classPart
- Returns:
- A string containing details regarding the part.
-
getDetails
Description copied from class:Part
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.
-
updateConditionFromPart
public void updateConditionFromPart() -
checkFixable
-
isMountedOnDestroyedLocation
public boolean isMountedOnDestroyedLocation()- Overrides:
isMountedOnDestroyedLocation
in classPart
-
isPartForEquipmentNum
public boolean isPartForEquipmentNum(int index, int loc) - Overrides:
isPartForEquipmentNum
in classPart
-
isRightTechType
- Specified by:
isRightTechType
in interfaceIPartWork
- Overrides:
isRightTechType
in classPart
-
loadFieldsFromXmlNode
- Specified by:
loadFieldsFromXmlNode
in classPart
-
getLocationName
- Specified by:
getLocationName
in classPart
-
getLocation
public int getLocation() -
getTechAdvancement
public megamek.common.TechAdvancement getTechAdvancement()- Specified by:
getTechAdvancement
in classPart
-
getMRMSOptionType
- Specified by:
getMRMSOptionType
in interfaceIPartWork
- Overrides:
getMRMSOptionType
in classPart
-