Class GravDeck

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

public class GravDeck extends Part
  • Field Details

  • Constructor Details

    • GravDeck

      public GravDeck()
    • GravDeck

      public GravDeck(int tonnage, int deckNumber, Campaign c, int deckType)
  • Method Details

    • getDeckNumber

      public int getDeckNumber()
    • clone

      public GravDeck clone()
      Specified by:
      clone in class Part
    • getDeckType

      public int getDeckType()
    • updateConditionFromEntity

      public void updateConditionFromEntity(boolean checkForDestruction)
    • getBaseTime

      public int getBaseTime()
    • getDifficulty

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

      public void updateConditionFromPart()
    • fix

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

      public void remove(boolean salvage)
    • getMissingPart

      public MissingPart getMissingPart()
    • checkFixable

      @Nullable public String checkFixable()
    • needsFixing

      public boolean needsFixing()
    • 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
    • getTonnage

      public double getTonnage()
      Specified by:
      getTonnage in class Part
    • 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
    • loadFieldsFromXmlNode

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

      public boolean isRightTechType(String skillType)
      Specified by:
      isRightTechType in interface IPartWork
      Overrides:
      isRightTechType 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