Class MissingLargeCraftAmmoBin

All Implemented Interfaces:
megamek.common.interfaces.ITechnology, IAcquisitionWork, IPartWork, IWork

public class MissingLargeCraftAmmoBin extends MissingAmmoBin
  • Constructor Details

    • MissingLargeCraftAmmoBin

      public MissingLargeCraftAmmoBin()
    • MissingLargeCraftAmmoBin

      public MissingLargeCraftAmmoBin(int tonnage, @Nullable megamek.common.equipment.AmmoType et, int equipNum, double capacity, @Nullable Campaign c)
  • Method Details

    • getBay

      @Nullable public megamek.common.equipment.WeaponMounted getBay()
      Returns:
      The Mounted of the unit's Entity that contains this ammo bin, or null if there is no unit or the ammo bin is not in any bay.
    • setBay

      public void setBay(megamek.common.equipment.WeaponMounted bay)
      Sets the bay for this ammo bin. Does not check whether the ammo bin is actually in the bay.
    • setBay

      public void setBay(int bayEqNum)
      Sets the bay for this ammo bin. Does not check whether the ammo bin is actually in the bay.
    • getTonnage

      public double getTonnage()
      Overrides:
      getTonnage in class MissingEquipmentPart
    • getCapacity

      public double getCapacity()
    • setCapacity

      public void setCapacity(double capacity)
    • isAcceptableReplacement

      public boolean isAcceptableReplacement(Part part, boolean refit)
      Overrides:
      isAcceptableReplacement in class MissingAmmoBin
    • getFullShots

      protected int getFullShots()
      Overrides:
      getFullShots in class MissingAmmoBin
    • getNewPart

      public LargeCraftAmmoBin getNewPart()
      Overrides:
      getNewPart in class MissingAmmoBin
    • fix

      public void fix()
      Specified by:
      fix in interface IPartWork
      Overrides:
      fix in class MissingAmmoBin
    • writeToXMLEnd

      protected void writeToXMLEnd(PrintWriter pw, int indent)
      Overrides:
      writeToXMLEnd in class MissingAmmoBin
    • loadFieldsFromXmlNode

      protected void loadFieldsFromXmlNode(Node wn)
      Overrides:
      loadFieldsFromXmlNode in class MissingAmmoBin