Interface CVBuildListener

All Superinterfaces:
BuildListener
All Known Implementing Classes:
CVStructureTab

public interface CVBuildListener extends BuildListener
Listener for views used by combat vehicles.
  • Method Details

    • tonnageChanged

      void tonnageChanged(double tonnage)
      Notify of a change in the vehicle tonnage
      Parameters:
      tonnage - The construction weight of the vehicle in tons
    • omniChanged

      void omniChanged(boolean omni)
      Notify of a change in omni status
      Parameters:
      omni - Whether the vehicle is an OmniVehicle
    • superheavyChanged

      void superheavyChanged(boolean superheavy)
      Notify of a change in superheavy status
      Parameters:
      superheavy - Whether the vehicle is in the superheavy weight range.
    • trailerChanged

      void trailerChanged(boolean trailer)
      Notify of a change in trailer status
      Parameters:
      trailer - Whether the vehicle is constructed as a trailer
    • controlSystemsChanged

      void controlSystemsChanged(boolean controlSystems)
      Notify of a change in whether a trailer has control systems.
      Parameters:
      controlSystems - Whether the trailer has control systems.
    • motiveChanged

      void motiveChanged(megamek.common.units.EntityMovementMode motive)
      Notify of a change in motive type. May require instantiation of a new Entity.
      Parameters:
      motive - The new motive type
    • engineChanged

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

      void turretChanged(int turretConfig)
      Notify of a change in turret configuration.
      Parameters:
      turretConfig - One of TURRET_NONE, * TURRET_SINGLE, TURRET_DUAL, or * TURRET_CHIN
    • turretBaseWtChanged

      void turretBaseWtChanged(double turret1, double turret2)
      Notify of a change in the base weight of one or more turrets. This is used for OmniVehicles, which have to set the limit of pod space in the turret(s) as part of the base chassis design.
      Parameters:
      turret1 - The weight of the turret, or the rear turret in dual-turret vehicles
      turret2 - The weight of the front turret in dual-turret vehicles
    • troopSpaceChanged

      void troopSpaceChanged(double fixed, double pod)
      Notify of a change in the size of any infantry compartment
      Parameters:
      fixed - The weight in tons of the infantry compartment
      pod - The weight in tons of any pod-mounted infantry compartment
    • cargoSpaceChanged

      void cargoSpaceChanged(megamek.common.verifier.BayData bayType, double fixed, double pod)
      Notify of a change in the size of a cargo bay
      Parameters:
      bayType - The type of bay
      fixed - The size of a fixed bay
      pod - The size of a pod-mounted bay
    • resetChassis

      void resetChassis()
      Notify of a command to remove all pod-mounted equipment from an OmniVehicle and reset it to the base chassis.
    • extraSeatsChanged

      void extraSeatsChanged(int seats)
      Notify of a change in the number of extra combat seats.
      Parameters:
      seats - The number of extra seats
    • dniCockpitModChanged

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