Interface SVBuildListener

All Superinterfaces:
BuildListener
All Known Implementing Classes:
SVStructureTab

public interface SVBuildListener extends BuildListener
Listener for views used by support vehicle construction.
  • Field Details

  • Method Details

    • tonnageChanged

      void tonnageChanged(double tonnage)
      Notify of a change in the unit tonnage
      Parameters:
      tonnage - The new tonnage
    • typeChanged

      void typeChanged(megamek.common.verifier.TestSupportVehicle.SVType type)
      Notify of a change in the support vehicle type
      Parameters:
      type - The new vehicle type
    • structuralTechRatingChanged

      void structuralTechRatingChanged(megamek.common.enums.TechRating techRating)
      Notify of a change in the structural tech rating
      Parameters:
      techRating - The new tech rating. This should be one of the constants TechRating.A through TechRating.F
    • engineChanged

      void engineChanged(megamek.common.equipment.Engine engine)
      Notify of a change in the type of engine
      Parameters:
      engine - The new engine
    • engineTechRatingChanged

      void engineTechRatingChanged(megamek.common.enums.TechRating techRating)
      Notify of a change in the engine tech rating
      Parameters:
      techRating - The new tech rating. This should be one of the constants TechRating.A through TechRating.A
    • setChassisMod

      void setChassisMod(megamek.common.equipment.EquipmentType eq, boolean installed)
      Notify of the addition or removal of a chassis modification
      Parameters:
      eq - The modification to add or remove
      installed - Whether the chassis mod is to be installed or removed
    • turretChanged

      void turretChanged(int config)
      Notify that the turret configuration has changed
      Parameters:
      config - The turret configuration constant from SVChassisView
    • sponsonTurretChanged

      void sponsonTurretChanged(boolean installed)
      Notify that sponson turrets have been added or removed
      Parameters:
      installed - Whether the vehicle has a pair of sponson turrets.
    • pintleTurretChanged

      void pintleTurretChanged(boolean installed, int loc)
      Notify that a pintle turret has been added or removed
      Parameters:
      installed - Whether there is a pintle turret on the left side
      loc - The location to add or remove the pintle mount
    • turretBaseWtChanged

      void turretBaseWtChanged(double turret1, double turret2)
      Notify of a change in the base chassis turret weight for omni vehicles
      Parameters:
      turret1 - The weight of the first turret or chin turret
      turret2 - The weight of the second turret, if any
    • fireConChanged

      void fireConChanged(int index)
      Notify of a change the type of fire control
      Parameters:
      index - One of the FIRE_CONTROL_* constants
    • fireConWtChanged

      void fireConWtChanged(double weight)
      Notify of a change in the base chassis fire control weight for omni vehicles
      Parameters:
      weight - The new weight
    • setSeating

      void setSeating(int standard, int standardPod, int pillion, int pillionPod, int ejection, int ejectionPod)
      Notify of a change in the number of crew seats
      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

      void setQuarters(int firstClass, int firstClassPod, int secondClass, int secondClassPod, int crew, int crewPod, int steerage, int steeragePod)
      Notify of a change in the size of crew quarters
      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
    • resetChassis

      void resetChassis()
      Removes all pod-mounted equipment from an omni.
    • sponsonPintleBaseWtChanged

      void sponsonPintleBaseWtChanged(double turretWeight)
      Notify of a change in the base chassis sponson/pintle weight for OmniVehicles.
      Parameters:
      turretWeight - The weight of the sponson or pintle turrets.
    • dniCockpitModChanged

      void dniCockpitModChanged(boolean hasMod)
      Notify of a change in DNI Cockpit Modification status.
      Parameters:
      hasMod - Whether the vehicle has the DNI Cockpit Modification