Class SVArmorTab

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ArmorAllocationListener

public class SVArmorTab extends ITab implements ArmorAllocationListener
See Also:
  • Constructor Details

    • SVArmorTab

      public SVArmorTab(EntitySource eSource, megamek.common.interfaces.ITechManager techManager)
  • Method Details

    • addRefreshedListener

      public void addRefreshedListener(RefreshListener l)
    • refresh

      public void refresh()
    • armorTypeChanged

      public void armorTypeChanged(int at, int armorTechLevel)
      Description copied from interface: ArmorAllocationListener
      Notifies of a change in the armor type
      Specified by:
      armorTypeChanged in interface ArmorAllocationListener
      Parameters:
      at - The armor type constant from EquipmentType
      armorTechLevel - The tech level constant from TechConstants, used to distinguish between IS and Clan versions
    • armorTechRatingChanged

      public void armorTechRatingChanged(megamek.common.enums.TechRating techRating)
      Description copied from interface: ArmorAllocationListener
      Notifies of a change in the tech rating of support vehicle armor.
      Specified by:
      armorTechRatingChanged in interface ArmorAllocationListener
      Parameters:
      techRating - The new tech rating, using the rating constants from ITechnology.
    • armorBARRatingChanged

      public void armorBARRatingChanged(int bar)
      Description copied from interface: ArmorAllocationListener
      Notifies of a change in the BAR of support vehicle armor.
      Specified by:
      armorBARRatingChanged in interface ArmorAllocationListener
      Parameters:
      bar - The new BAR
    • maximizeArmor

      public void maximizeArmor()
      Description copied from interface: ArmorAllocationListener
      Signals that the armor should be set to the maximum value for the unit.
      Specified by:
      maximizeArmor in interface ArmorAllocationListener
    • useRemainingTonnageArmor

      public void useRemainingTonnageArmor()
      Description copied from interface: ArmorAllocationListener
      Signals that any remaining weight that has not been allocated should be used for armor, up to the armor limit for the unit.
      Specified by:
      useRemainingTonnageArmor in interface ArmorAllocationListener
    • armorTonnageChanged

      public void armorTonnageChanged(double tonnage)
      Description copied from interface: ArmorAllocationListener
      Notifies of a change in armor tonnage. This is not used by units that assign armor by point.
      Specified by:
      armorTonnageChanged in interface ArmorAllocationListener
      Parameters:
      tonnage - The total weight of armor on the unit.
    • armorFactorChanged

      public void armorFactorChanged(int points)
      Description copied from interface: ArmorAllocationListener
      Notifies of a change in the total number of armor points on the unit. This is used for unit types that assign armor by the point rather than by weight.
      Specified by:
      armorFactorChanged in interface ArmorAllocationListener
      Parameters:
      points - The total number of armor points on the unit.
    • armorPointsChanged

      public void armorPointsChanged(int location, int front, int rear)
      Description copied from interface: ArmorAllocationListener
      Notifies of a change to the number of armor points assigned to a particular location
      Specified by:
      armorPointsChanged in interface ArmorAllocationListener
      Parameters:
      location - The location to assign the points
      front - The number of points to assign to the front (or total to the location if there is not separate rear armor)
      rear - The number of points to assign to the rear armor of the location
    • patchworkChanged

      public void patchworkChanged(int location, megamek.common.equipment.ArmorType armor)
      Description copied from interface: ArmorAllocationListener
      Notifies of a change in the type of armor assigned to a specific location of a unit with patchwork armor.
      Specified by:
      patchworkChanged in interface ArmorAllocationListener
      Parameters:
      location - The location constant
      armor - The type of armor used in the location.
    • autoAllocateArmor

      public void autoAllocateArmor()
      Description copied from interface: ArmorAllocationListener
      Signals that the armor should be automatically distributed to the various locations.
      Specified by:
      autoAllocateArmor in interface ArmorAllocationListener