Interface BuildListener

All Known Subinterfaces:
AdvancedAeroBuildListener, AeroBuildListener, AeroVesselBuildListener, BABuildListener, CVBuildListener, DropshipBuildListener, InfantryBuildListener, MekBuildListener, ProtoMekBuildListener, SVBuildListener
All Known Implementing Classes:
ASStructureTab, BAStructureTab, BMStructureTab, CIStructureTab, CVStructureTab, DSStructureTab, HHWStructureTab, PMStructureTab, SVStructureTab, WSStructureTab

public interface BuildListener
Combined listener interface for the various subviews of the structure tab. Includes callbacks used by multiple unit types. Listeners for specific unit types extend this one.
  • Method Details

    • refreshSummary

      void refreshSummary()
    • chassisChanged

      void chassisChanged(String chassis)
    • clanNameChanged

      default void clanNameChanged(String clanName)
    • modelChanged

      void modelChanged(String model)
    • yearChanged

      void yearChanged(int year)
    • updateTechLevel

      void updateTechLevel()
    • sourceChanged

      void sourceChanged(String source)
    • mulIdChanged

      void mulIdChanged(int mulId)
    • techBaseChanged

      void techBaseChanged(boolean clan, boolean mixed)
    • techLevelChanged

      void techLevelChanged(megamek.common.SimpleTechLevel techLevel)
    • roleChanged

      void roleChanged(megamek.common.units.UnitRole role)
    • factionChanged

      default void factionChanged(megamek.common.enums.Faction faction)
    • manualBVChanged

      void manualBVChanged(int manualBV)
      Notifies of a change of the manually entered BV. When manualBV is 0 or less, the unit should be set to not use a manual BV value and the manual BV set to -1.
      Parameters:
      manualBV - The entered manual BV; may be invalid (0 or less)
    • walkChanged

      void walkChanged(int walkMP)
    • jumpChanged

      void jumpChanged(int jumpMP, megamek.common.equipment.EquipmentType jumpJet)
    • jumpTypeChanged

      void jumpTypeChanged(megamek.common.equipment.EquipmentType jumpJet)
    • heatSinksChanged

      default void heatSinksChanged(int index, int count)
      Notifies of a change in heat sink type or count for aerospace units
      Parameters:
      index - Either HeatSinkView.TYPE_SINGLE or HeatSinkView.TYPE_DOUBLE_AERO
      count - The number of heat sinks
    • heatSinksChanged

      default void heatSinksChanged(megamek.common.equipment.EquipmentType hsType, int count)
      Notifies of a change in heat sink type or count for meks
      Parameters:
      hsType - The type of heat sink
      count - The total number of heat sinks
    • redistributePrototypeHS

      default void redistributePrototypeHS(int prototype)
      Notifies of a change in the distribution between single and double heat sinks on a unit with prototype double heat sinks.
      Parameters:
      prototype - The number of prototype double heat sinks
    • heatSinkBaseCountChanged

      default void heatSinkBaseCountChanged(int count)
      Notifies of a change in the number of heat sinks that are part of the base chassis of an omni unit
      Parameters:
      count - The number of fixed heat sinks
    • riscHeatSinkOverrideKitChanged

      default void riscHeatSinkOverrideKitChanged(boolean hasKit)
      Notifies of a change in the presence of a RISC Heat Sink Override Kit
      Parameters:
      hasKit - True if the unit now has the kit
    • fuelTonnageChanged

      default void fuelTonnageChanged(double tonnage)
    • fuelCapacityChanged

      default void fuelCapacityChanged(int capacity)
      Notify of a change in the amount of fuel. For aerospace this is number of fuel points. For ground support vehicles this is the range in km.
      Parameters:
      capacity - The number of fuel points or range as appropriate to the unit type
    • fuelTypeChanged

      default void fuelTypeChanged(megamek.common.equipment.enums.FuelType fuelType)
      Notify of a change in ICE engine fuel type. This is only used for vehicles.
      Parameters:
      fuelType - The engine fuel type