Package mekhq.campaign.parts.equipment
Class MissingAmmoBin
java.lang.Object
mekhq.campaign.parts.Part
mekhq.campaign.parts.MissingPart
mekhq.campaign.parts.equipment.MissingEquipmentPart
mekhq.campaign.parts.equipment.MissingAmmoBin
- All Implemented Interfaces:
megamek.common.ITechnology
,IAcquisitionWork
,IPartWork
,IWork
- Direct Known Subclasses:
MissingInfantryAmmoBin
,MissingLargeCraftAmmoBin
-
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.equipment.MissingEquipmentPart
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
ConstructorsConstructorDescriptionMissingAmmoBin
(int tonnage, megamek.common.AmmoType et, int equipNum, boolean singleShot, boolean omniPodded, Campaign c) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
fix()
int
protected int
int
Gets the replacement for this part.megamek.common.AmmoType
getType()
boolean
Gets a value indicating if there is a replacement part assigned to this part.boolean
isAcceptableReplacement
(Part part, boolean refit) boolean
protected void
void
Reserve a part for overnight workprotected void
writeToXMLEnd
(PrintWriter pw, int indent) Methods inherited from class mekhq.campaign.parts.equipment.MissingEquipmentPart
checkFixable, clone, getBaseTime, getEquipmentNum, getMounted, getSize, getTechAdvancement, getTonnage, isInLocation, isOmniPoddable, isPartForEquipmentNum, isRearFacing, onBadHipOrShoulder, restore, setEquipmentNum, setUnit, updateConditionFromPart, writeToXML
Methods inherited from class mekhq.campaign.parts.MissingPart
canChangeWorkMode, checkScrappable, fail, failToFind, find, findReplacement, getAcquisitionBonus, getAcquisitionDesc, getAcquisitionDisplayName, getAcquisitionExtraDesc, getAcquisitionName, getAcquisitionPart, getAllAcquisitionMods, getBuyCost, getDesc, getDetails, getDetails, getMissingPart, getNewEquipment, getStatus, getStickerPrice, getTechLevel, isAvailableAsReplacement, isExtinctIn, isIntroducedBy, isReplacementAvailable, isSalvaging, isSamePartType, needsFixing, needsMaintenance, remove, scrap, succeed, updateConditionFromEntity
Methods inherited from class mekhq.campaign.parts.Part
addChildPart, addTimeSpent, adjustCostsForCampaignOptions, adjustCostsForCampaignOptions, calcYearAvailability, cancelAssignment, canNeverScrap, changeQuantity, copyBaseData, decrementDaysToWait, decrementQuantity, doMaintenanceDamage, findPartImage, fixReferences, generateInstanceFromXML, getAcquisitionWork, getActualTime, getActualValue, getAllMods, 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, getSellableQuantity, getShoppingListReport, getShorthandedMod, getSimpleTechLevel, getSimpleTechLevel, getSimpleTechLevel, getSkillMin, getStaticTechLevel, getTech, getTechBase, getTechBaseName, getTechBaseName, getTechRating, getTimeLeft, getTimeSpent, getUndamagedValue, getUnit, getUnitTonnage, hasChildParts, hasParentPart, hasWorkedOvertime, improveQuality, incrementQuantity, isBeingWorkedOn, isBrandNew, isClan, isClanTechBase, isInSupply, isIntroducedBy, isMixedTech, isMountedOnDestroyedLocation, isOmniPodded, isPresent, isPriceAdjustedForAmount, isReservedForRefit, isReservedForReplacement, isRightTechType, isSamePartTypeAndStatus, isSameStatus, isSpare, isTeamSalvaging, isUnitTonnageMatters, isUsedForRefitPlanning, postProcessCampaignAddition, reduceQuality, removeAllChildParts, removeChildPart, resetDaysToWait, resetModeToNormal, resetOvertime, resetRepairSettings, resetTimeSpent, setBrandNew, setCampaign, setDaysToArrival, setHits, setId, setMode, setOmniPodded, setParentPart, setQuality, setQuantity, setRefitUnit, setReplacementPart, setReservedBy, setShorthandedMod, setSkillMin, setTech, setUsedForRefitPlanning, setWorkedOvertime, toString, writeToXMLBegin
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface mekhq.campaign.work.IAcquisitionWork
decrementDaysToWait, decrementQuantity, getAvailability, getDaysToWait, getQuantity, getQuantityName, getShoppingListReport, getTechBase, getUnit, incrementQuantity, resetDaysToWait
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
Methods inherited from interface mekhq.campaign.work.IWork
getAllMods, getMode, getTech
-
Field Details
-
oneShot
protected boolean oneShot
-
-
Constructor Details
-
MissingAmmoBin
public MissingAmmoBin() -
MissingAmmoBin
public MissingAmmoBin(int tonnage, @Nullable megamek.common.AmmoType et, int equipNum, boolean singleShot, boolean omniPodded, @Nullable Campaign c)
-
-
Method Details
-
getType
public megamek.common.AmmoType getType()- Overrides:
getType
in classMissingEquipmentPart
-
getLocationName
- Overrides:
getLocationName
in classMissingEquipmentPart
-
getLocation
public int getLocation()- Specified by:
getLocation
in interfaceIPartWork
- Overrides:
getLocation
in classMissingEquipmentPart
-
getDifficulty
public int getDifficulty()- Specified by:
getDifficulty
in interfaceIWork
- Overrides:
getDifficulty
in classMissingEquipmentPart
- Returns:
- the base difficulty of this work unit
-
hasReplacementPart
public boolean hasReplacementPart()Description copied from class:Part
Gets a value indicating if there is a replacement part assigned to this part.- Overrides:
hasReplacementPart
in classPart
-
getReplacementPart
Description copied from class:Part
Gets the replacement for this part.- Overrides:
getReplacementPart
in classPart
-
reservePart
public void reservePart()Description copied from class:Part
Reserve a part for overnight work- Specified by:
reservePart
in interfaceIPartWork
- Overrides:
reservePart
in classMissingPart
-
cancelReservation
public void cancelReservation()- Specified by:
cancelReservation
in interfaceIPartWork
- Overrides:
cancelReservation
in classMissingPart
-
fix
public void fix()- Specified by:
fix
in interfaceIPartWork
- Overrides:
fix
in classMissingEquipmentPart
-
isAcceptableReplacement
- Overrides:
isAcceptableReplacement
in classMissingEquipmentPart
-
isOneShot
public boolean isOneShot() -
getFullShots
protected int getFullShots() -
getNewPart
- Overrides:
getNewPart
in classMissingEquipmentPart
-
writeToXMLEnd
- Overrides:
writeToXMLEnd
in classPart
-
loadFieldsFromXmlNode
- Overrides:
loadFieldsFromXmlNode
in classMissingEquipmentPart
-
getMRMSOptionType
- Specified by:
getMRMSOptionType
in interfaceIPartWork
- Overrides:
getMRMSOptionType
in classPart
-