Package mekhq.campaign.parts
Class MekActuator
java.lang.Object
mekhq.campaign.parts.Part
mekhq.campaign.parts.MekActuator
-
Nested Class Summary
Nested classes/interfaces inherited from class mekhq.campaign.parts.Part
Part.PartPersonRef, Part.PartRef, Part.PartUnitRef
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionMekActuator
(int tonnage, int type, int loc, Campaign c) MekActuator
(int tonnage, int type, Campaign c) -
Method Summary
Modifier and TypeMethodDescriptionclone()
void
fix()
int
Gets a string containing details regarding the part, e.g.int
int
Sticker price is the value of the part according to the rulebooksmegamek.common.TechAdvancement
int
double
int
getType()
boolean
boolean
boolean
boolean
isPartForEquipmentNum
(int index, int loc) boolean
isRightTechType
(String skillType) boolean
isSamePartType
(Part part) protected void
boolean
boolean
void
remove
(boolean salvage) void
setLocation
(int loc) void
updateConditionFromEntity
(boolean checkForDestruction) void
void
writeToXML
(PrintWriter pw, int indent) 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, 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, getTechRating, getTimeLeft, getTimeSpent, getUndamagedValue, getUnit, getUnitTonnage, hasChildParts, hasParentPart, hasReplacementPart, hasWorkedOvertime, improveQuality, incrementQuantity, isBeingWorkedOn, isBrandNew, isClan, isClanTechBase, isInLocation, isInSupply, isIntroducedBy, isMixedTech, isPresent, isPriceAdjustedForAmount, isReservedForRefit, isReservedForReplacement, 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, 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 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
-
Field Details
-
type
protected int type -
location
protected int location
-
-
Constructor Details
-
MekActuator
public MekActuator() -
MekActuator
-
MekActuator
-
-
Method Details
-
clone
-
getType
public int getType() -
setLocation
public void setLocation(int loc) -
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
-
getLocation
public int getLocation() -
writeToXML
- Specified by:
writeToXML
in classPart
-
loadFieldsFromXmlNode
- Specified by:
loadFieldsFromXmlNode
in classPart
-
fix
public void fix() -
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.
-
updateConditionFromPart
public void updateConditionFromPart() -
checkFixable
-
isMountedOnDestroyedLocation
public boolean isMountedOnDestroyedLocation()- Overrides:
isMountedOnDestroyedLocation
in classPart
-
onBadHipOrShoulder
public boolean onBadHipOrShoulder()- Overrides:
onBadHipOrShoulder
in classPart
-
isPartForEquipmentNum
public boolean isPartForEquipmentNum(int index, int loc) - Overrides:
isPartForEquipmentNum
in classPart
-
isRightTechType
- Specified by:
isRightTechType
in interfaceIPartWork
- Overrides:
isRightTechType
in classPart
-
isOmniPoddable
public boolean isOmniPoddable()- Overrides:
isOmniPoddable
in classPart
-
isOmniPodded
public boolean isOmniPodded()- Overrides:
isOmniPodded
in classPart
-
getLocationName
- Specified by:
getLocationName
in classPart
-
getTechAdvancement
public megamek.common.TechAdvancement getTechAdvancement()- Specified by:
getTechAdvancement
in classPart
-
getMRMSOptionType
- Specified by:
getMRMSOptionType
in interfaceIPartWork
- Overrides:
getMRMSOptionType
in classPart
-