Package megameklab.ui.listeners
Interface SVBuildListener
- All Superinterfaces:
BuildListener
- All Known Implementing Classes:
SVStructureTab
Listener for views used by support vehicle construction.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoiddniCockpitModChanged(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 enginevoidengineTechRatingChanged(megamek.common.enums.TechRating techRating) Notify of a change in the engine tech ratingvoidfireConChanged(int index) Notify of a change the type of fire controlvoidfireConWtChanged(double weight) Notify of a change in the base chassis fire control weight for omni vehiclesvoidpintleTurretChanged(boolean installed, int loc) Notify that a pintle turret has been added or removedvoidRemoves all pod-mounted equipment from an omni.voidsetChassisMod(megamek.common.equipment.EquipmentType eq, boolean installed) Notify of the addition or removal of a chassis modificationvoidsetQuarters(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 quartersvoidsetSeating(int standard, int standardPod, int pillion, int pillionPod, int ejection, int ejectionPod) Notify of a change in the number of crew seatsvoidsponsonPintleBaseWtChanged(double turretWeight) Notify of a change in the base chassis sponson/pintle weight for OmniVehicles.voidsponsonTurretChanged(boolean installed) Notify that sponson turrets have been added or removedvoidstructuralTechRatingChanged(megamek.common.enums.TechRating techRating) Notify of a change in the structural tech ratingvoidtonnageChanged(double tonnage) Notify of a change in the unit tonnagevoidturretBaseWtChanged(double turret1, double turret2) Notify of a change in the base chassis turret weight for omni vehiclesvoidturretChanged(int config) Notify that the turret configuration has changedvoidtypeChanged(megamek.common.verifier.TestSupportVehicle.SVType type) Notify of a change in the support vehicle typeMethods 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
-
Field Details
-
TURRET_NONE
static final int TURRET_NONE- See Also:
-
TURRET_SINGLE
static final int TURRET_SINGLE- See Also:
-
TURRET_DUAL
static final int TURRET_DUAL- See Also:
-
TURRET_CHIN
static final int TURRET_CHIN- See Also:
-
FIRE_CONTROL_NONE
static final int FIRE_CONTROL_NONE- See Also:
-
FIRE_CONTROL_BASIC
static final int FIRE_CONTROL_BASIC- See Also:
-
FIRE_CONTROL_ADVANCED
static final int FIRE_CONTROL_ADVANCED- See Also:
-
-
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 constantsTechRating.AthroughTechRating.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 constantsTechRating.AthroughTechRating.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 removeinstalled- 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 fromSVChassisView
-
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 sideloc- 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 turretturret2- 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 seatsstandardPod- The number of pod-mounted standard combat crew seatspillion- The number of fixed pillion seatspillionPod- The number of pod-mounted pillion seatsejection- The number of fixed ejection seatsejectionPod- 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 quartersfirstClassPod- The crew capacity of pod-mounted first class/officer quarterssecondClass- The crew capacity of fixed second class quarterssecondClassPod- The crew capacity of pod-mounted second class quarterscrew- The capacity of fixed standard crew quarterscrewPod- The capacity of pod-mounted standard crew quarterssteerage- The capacity of fixed steerage class quarterssteeragePod- 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
-