Package megameklab.ui.listeners
Interface CVBuildListener
- All Superinterfaces:
BuildListener
- All Known Implementing Classes:
CVStructureTab
Listener for views used by combat vehicles.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcargoSpaceChanged(megamek.common.verifier.BayData bayType, double fixed, double pod) Notify of a change in the size of a cargo bayvoidcontrolSystemsChanged(boolean controlSystems) Notify of a change in whether a trailer has control systems.voiddniCockpitModChanged(boolean hasMod) Notify of a change in DNI Cockpit Modification status.voidengineChanged(megamek.common.equipment.Engine engine) Notify of a change in the type of enginevoidextraSeatsChanged(int seats) Notify of a change in the number of extra combat seats.voidmotiveChanged(megamek.common.units.EntityMovementMode motive) Notify of a change in motive type.voidomniChanged(boolean omni) Notify of a change in omni statusvoidNotify of a command to remove all pod-mounted equipment from an OmniVehicle and reset it to the base chassis.voidsuperheavyChanged(boolean superheavy) Notify of a change in superheavy statusvoidtonnageChanged(double tonnage) Notify of a change in the vehicle tonnagevoidtrailerChanged(boolean trailer) Notify of a change in trailer statusvoidtroopSpaceChanged(double fixed, double pod) Notify of a change in the size of any infantry compartmentvoidturretBaseWtChanged(double turret1, double turret2) Notify of a change in the base weight of one or more turrets.voidturretChanged(int turretConfig) Notify of a change in turret configuration.Methods inherited from interface megameklab.ui.listeners.BuildListener
chassisChanged, clanNameChanged, factionChanged, fuelCapacityChanged, fuelTonnageChanged, fuelTypeChanged, heatSinkBaseCountChanged, heatSinksChanged, heatSinksChanged, jumpChanged, jumpTypeChanged, manualBVChanged, modelChanged, mulIdChanged, redistributePrototypeHS, refreshSummary, riscHeatSinkOverrideKitChanged, roleChanged, sourceChanged, techBaseChanged, techLevelChanged, updateTechLevel, walkChanged, yearChanged
-
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 newEntity.- 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 ofTURRET_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 vehiclesturret2- 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 compartmentpod- 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 bayfixed- The size of a fixed baypod- 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
-