Class ProtoMekLegActuator

java.lang.Object
mekhq.campaign.parts.Part
mekhq.campaign.parts.protomeks.ProtoMekLegActuator
All Implemented Interfaces:
megamek.common.interfaces.ITechnology, IPartWork, IWork

public class ProtoMekLegActuator extends Part
  • Constructor Details

    • ProtoMekLegActuator

      public ProtoMekLegActuator()
    • ProtoMekLegActuator

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

    • clone

      public ProtoMekLegActuator clone()
      Specified by:
      clone in class Part
    • getTonnage

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

      public Money 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

      public boolean isSamePartType(Part part)
      Specified by:
      isSamePartType in class Part
    • writeToXML

      public void writeToXML(PrintWriter pw, int indent)
      Specified by:
      writeToXML in class Part
    • fix

      public void fix()
      Specified by:
      fix in interface IPartWork
      Overrides:
      fix in class Part
    • getTechBase

      public megamek.common.enums.TechBase getTechBase()
      Specified by:
      getTechBase in interface megamek.common.interfaces.ITechnology
      Overrides:
      getTechBase in class Part
    • getTechLevel

      public int getTechLevel()
      Overrides:
      getTechLevel in class Part
      Returns:
      TechConstants tech level
    • getMissingPart

      public MissingPart 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

      public String 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 interface IPartWork
      Overrides:
      getDetails in class Part
      Returns:
      A string containing details regarding the part.
    • getDetails

      public String getDetails(boolean includeRepairDetails)
      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 interface IPartWork
      Overrides:
      getDetails in class Part
      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

      @Nullable public String checkFixable()
    • isMountedOnDestroyedLocation

      public boolean isMountedOnDestroyedLocation()
      Overrides:
      isMountedOnDestroyedLocation in class Part
    • isPartForEquipmentNum

      public boolean isPartForEquipmentNum(int index, int loc)
      Overrides:
      isPartForEquipmentNum in class Part
    • isRightTechType

      public boolean isRightTechType(String skillType)
      Specified by:
      isRightTechType in interface IPartWork
      Overrides:
      isRightTechType in class Part
    • loadFieldsFromXmlNode

      protected void loadFieldsFromXmlNode(Node wn)
      Specified by:
      loadFieldsFromXmlNode in class Part
    • 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
    • getMRMSOptionType

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