Class SVStructureTab

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, BuildListener, SVBuildListener

public class SVStructureTab extends ITab implements SVBuildListener
Structure tab for support vehicle construction
See Also:
  • Constructor Details

    • SVStructureTab

      public SVStructureTab(EntitySource eSource)
  • Method Details

    • refresh

      public void refresh()
    • getTechManager

      public megamek.common.ITechManager getTechManager()
    • setTechFaction

      public void setTechFaction(int techFaction)
    • addRefreshedListener

      public void addRefreshedListener(RefreshListener l)
    • setAsCustomization

      public void setAsCustomization()
      Disables controls that cannot be changed when customizing a refit.
    • refreshSummary

      public void refreshSummary()
      Specified by:
      refreshSummary in interface BuildListener
    • chassisChanged

      public void chassisChanged(String chassis)
      Specified by:
      chassisChanged in interface BuildListener
    • modelChanged

      public void modelChanged(String model)
      Specified by:
      modelChanged in interface BuildListener
    • yearChanged

      public void yearChanged(int year)
      Specified by:
      yearChanged in interface BuildListener
    • updateTechLevel

      public void updateTechLevel()
      Specified by:
      updateTechLevel in interface BuildListener
    • sourceChanged

      public void sourceChanged(String source)
      Specified by:
      sourceChanged in interface BuildListener
    • techBaseChanged

      public void techBaseChanged(boolean clan, boolean mixed)
      Specified by:
      techBaseChanged in interface BuildListener
    • techLevelChanged

      public void techLevelChanged(megamek.common.SimpleTechLevel techLevel)
      Specified by:
      techLevelChanged in interface BuildListener
    • manualBVChanged

      public void manualBVChanged(int manualBV)
      Description copied from interface: BuildListener
      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.
      Specified by:
      manualBVChanged in interface BuildListener
      Parameters:
      manualBV - The entered manual BV; may be invalid (0 or less)
    • walkChanged

      public void walkChanged(int walkMP)
      Specified by:
      walkChanged in interface BuildListener
    • jumpChanged

      public void jumpChanged(int jumpMP, megamek.common.EquipmentType jumpJet)
      Specified by:
      jumpChanged in interface BuildListener
    • jumpTypeChanged

      public void jumpTypeChanged(megamek.common.EquipmentType jumpJet)
      Specified by:
      jumpTypeChanged in interface BuildListener
    • tonnageChanged

      public void tonnageChanged(double tonnage)
      Description copied from interface: SVBuildListener
      Notify of a change in the unit tonnage
      Specified by:
      tonnageChanged in interface SVBuildListener
      Parameters:
      tonnage - The new tonnage
    • typeChanged

      public void typeChanged(megamek.common.verifier.TestSupportVehicle.SVType type)
      Description copied from interface: SVBuildListener
      Notify of a change in the support vehicle type
      Specified by:
      typeChanged in interface SVBuildListener
      Parameters:
      type - The new vehicle type
    • structuralTechRatingChanged

      public void structuralTechRatingChanged(int techRating)
      Description copied from interface: SVBuildListener
      Notify of a change in the structural tech rating
      Specified by:
      structuralTechRatingChanged in interface SVBuildListener
      Parameters:
      techRating - The new tech rating. This should be one of the constants ITechnology.RATING_A through ITechnology.RATING_F
    • engineChanged

      public void engineChanged(megamek.common.Engine engine)
      Description copied from interface: SVBuildListener
      Notify of a change in the type of engine
      Specified by:
      engineChanged in interface SVBuildListener
      Parameters:
      engine - The new engine
    • engineTechRatingChanged

      public void engineTechRatingChanged(int techRating)
      Description copied from interface: SVBuildListener
      Notify of a change in the engine tech rating
      Specified by:
      engineTechRatingChanged in interface SVBuildListener
      Parameters:
      techRating - The new tech rating. This should be one of the constants ITechnology.RATING_A through ITechnology.RATING_F
    • setChassisMod

      public void setChassisMod(megamek.common.EquipmentType mod, boolean installed)
      Description copied from interface: SVBuildListener
      Notify of the addition or removal of a chassis modification
      Specified by:
      setChassisMod in interface SVBuildListener
      Parameters:
      mod - The modification to add or remove
      installed - Whether the chassis mod is to be installed or removed
    • turretChanged

      public void turretChanged(int turretConfig)
      Description copied from interface: SVBuildListener
      Notify that the turret configuration has changed
      Specified by:
      turretChanged in interface SVBuildListener
      Parameters:
      turretConfig - The turret configuration constant from SVChassisView
    • sponsonTurretChanged

      public void sponsonTurretChanged(boolean installed)
      Description copied from interface: SVBuildListener
      Notify that sponson turrets have been added or removed
      Specified by:
      sponsonTurretChanged in interface SVBuildListener
      Parameters:
      installed - Whether the vehicle has a pair of sponson turrets.
    • pintleTurretChanged

      public void pintleTurretChanged(boolean addPintle, int loc)
      Description copied from interface: SVBuildListener
      Notify that a pintle turret has been added or removed
      Specified by:
      pintleTurretChanged in interface SVBuildListener
      Parameters:
      addPintle - Whether there is a pintle turret on the left side
      loc - The location to add or remove the pintle mount
    • turretBaseWtChanged

      public void turretBaseWtChanged(double turret1, double turret2)
      Description copied from interface: SVBuildListener
      Notify of a change in the base chassis turret weight for omni vehicles
      Specified by:
      turretBaseWtChanged in interface SVBuildListener
      Parameters:
      turret1 - The weight of the first turret or chin turret
      turret2 - The weight of the second turret, if any
    • sponsonPintleBaseWtChanged

      public void sponsonPintleBaseWtChanged(double turretWeight)
      Description copied from interface: SVBuildListener
      Notify of a change in the base chassis sponson/pintle weight for omnivehicles.
      Specified by:
      sponsonPintleBaseWtChanged in interface SVBuildListener
      Parameters:
      turretWeight - The weight of the sponson or pintle turrets.
    • fireConChanged

      public void fireConChanged(int index)
      Description copied from interface: SVBuildListener
      Notify of a change the type of fire control
      Specified by:
      fireConChanged in interface SVBuildListener
      Parameters:
      index - One of the FIRECON_* constants
    • fireConWtChanged

      public void fireConWtChanged(double weight)
      Description copied from interface: SVBuildListener
      Notify of a change in the base chassis fire control weight for omni vehicles
      Specified by:
      fireConWtChanged in interface SVBuildListener
      Parameters:
      weight - The new weight
    • resetChassis

      public void resetChassis()
      Description copied from interface: SVBuildListener
      Removes all pod-mounted equipment from an omni.
      Specified by:
      resetChassis in interface SVBuildListener
    • setSeating

      public void setSeating(int standard, int standardPod, int pillion, int pillionPod, int ejection, int ejectionPod)
      Description copied from interface: SVBuildListener
      Notify of a change in the number of crew seats
      Specified by:
      setSeating in interface SVBuildListener
      Parameters:
      standard - The number of fixed standard combat crew seats
      standardPod - The number of pod-mounted standard combat crew seats
      pillion - The number of fixed pillion seats
      pillionPod - The number of pod-mounted pillion seats
      ejection - The number of fixed ejection seats
      ejectionPod - The number of pod-mounted ejection seats
    • setQuarters

      public void setQuarters(int firstClass, int firstClassPod, int secondClass, int secondClassPod, int crew, int crewPod, int steerage, int steeragePod)
      Description copied from interface: SVBuildListener
      Notify of a change in the size of crew quarters
      Specified by:
      setQuarters in interface SVBuildListener
      Parameters:
      firstClass - The crew capacity of fixed first class/officer quarters
      firstClassPod - The crew capacity of pod-mounted first class/officer quarters
      secondClass - The crew capacity of fixed second class quarters
      secondClassPod - The crew capacity of pod-mounted second class quarters
      crew - The capacity of fixed standard crew quarters
      crewPod - The capacity of pod-mounted standard crew quarters
      steerage - The capacity of fixed steerage class quarters
      steeragePod - The capacity of pod-mounted steerage class quarters
    • fuelTonnageChanged

      public void fuelTonnageChanged(double tonnage)
      Specified by:
      fuelTonnageChanged in interface BuildListener
    • fuelCapacityChanged

      public void fuelCapacityChanged(int capacity)
      Description copied from interface: BuildListener
      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.
      Specified by:
      fuelCapacityChanged in interface BuildListener
      Parameters:
      capacity - The number of fuel points or range as appropriate to the unit type
    • fuelTypeChanged

      public void fuelTypeChanged(megamek.common.FuelType fuelType)
      Description copied from interface: BuildListener
      Notify of a change in ICE engine fuel type. This is only used for vehicles.
      Specified by:
      fuelTypeChanged in interface BuildListener
      Parameters:
      fuelType - The engine fuel type
    • mulIdChanged

      public void mulIdChanged(int mulId)
      Specified by:
      mulIdChanged in interface BuildListener
    • roleChanged

      public void roleChanged(megamek.common.UnitRole role)
      Specified by:
      roleChanged in interface BuildListener