Class MissingMekLifeSupport

java.lang.Object
mekhq.campaign.parts.Part
mekhq.campaign.parts.missing.MissingPart
mekhq.campaign.parts.missing.MissingMekLifeSupport
All Implemented Interfaces:
megamek.common.interfaces.ITechnology, IAcquisitionWork, IPartWork, IWork

public class MissingMekLifeSupport extends MissingPart
  • Constructor Details

    • MissingMekLifeSupport

      public MissingMekLifeSupport()
    • MissingMekLifeSupport

      public MissingMekLifeSupport(int tonnage, Campaign c)
  • Method Details

    • getBaseTime

      public int getBaseTime()
    • getDifficulty

      public int getDifficulty()
      Returns:
      the base difficulty of this work unit
    • getTonnage

      public double getTonnage()
      Specified by:
      getTonnage in class Part
    • loadFieldsFromXmlNode

      protected void loadFieldsFromXmlNode(Node wn)
      Specified by:
      loadFieldsFromXmlNode in class Part
    • isAcceptableReplacement

      public boolean isAcceptableReplacement(Part part, boolean refit)
      Specified by:
      isAcceptableReplacement in class MissingPart
    • checkFixable

      @Nullable public String checkFixable()
    • getNewPart

      public Part getNewPart()
      Specified by:
      getNewPart in class MissingPart
    • updateConditionFromPart

      public void updateConditionFromPart()
    • getLocationName

      public String getLocationName()
      Specified by:
      getLocationName in class Part
    • getLocation

      public int getLocation()
    • getTechAdvancement

      public megamek.common.TechAdvancement getTechAdvancement()
      Specified by:
      getTechAdvancement in class Part
    • isInLocation

      public boolean isInLocation(String loc)
      Overrides:
      isInLocation in class Part
    • getMRMSOptionType

      public PartRepairType getMRMSOptionType()
      Specified by:
      getMRMSOptionType in interface IPartWork
      Overrides:
      getMRMSOptionType in class Part