Package megameklab.ui.listeners
Interface BuildListener
- All Known Subinterfaces:
AdvancedAeroBuildListener,AeroBuildListener,AeroVesselBuildListener,BABuildListener,CVBuildListener,DropshipBuildListener,InfantryBuildListener,MekBuildListener,ProtoMekBuildListener,SVBuildListener
- All Known Implementing Classes:
ASStructureTab,BAStructureTab,BMStructureTab,CIStructureTab,CVStructureTab,DSStructureTab,HHWStructureTab,PMStructureTab,SVStructureTab,WSStructureTab
public interface BuildListener
Combined listener interface for the various subviews of the structure tab. Includes callbacks used by multiple unit
types. Listeners for specific unit types extend this one.
-
Method Summary
Modifier and TypeMethodDescriptionvoidchassisChanged(String chassis) default voidclanNameChanged(String clanName) default voidfactionChanged(megamek.common.enums.Faction faction) default voidfuelCapacityChanged(int capacity) Notify of a change in the amount of fuel.default voidfuelTonnageChanged(double tonnage) default voidfuelTypeChanged(megamek.common.equipment.enums.FuelType fuelType) Notify of a change in ICE engine fuel type.default voidheatSinkBaseCountChanged(int count) Notifies of a change in the number of heat sinks that are part of the base chassis of an omni unitdefault voidheatSinksChanged(int index, int count) Notifies of a change in heat sink type or count for aerospace unitsdefault voidheatSinksChanged(megamek.common.equipment.EquipmentType hsType, int count) Notifies of a change in heat sink type or count for meksvoidjumpChanged(int jumpMP, megamek.common.equipment.EquipmentType jumpJet) voidjumpTypeChanged(megamek.common.equipment.EquipmentType jumpJet) voidmanualBVChanged(int manualBV) Notifies of a change of the manually entered BV.voidmodelChanged(String model) voidmulIdChanged(int mulId) default voidredistributePrototypeHS(int prototype) Notifies of a change in the distribution between single and double heat sinks on a unit with prototype double heat sinks.voiddefault voidriscHeatSinkOverrideKitChanged(boolean hasKit) Notifies of a change in the presence of a RISC Heat Sink Override KitvoidroleChanged(megamek.common.units.UnitRole role) voidsourceChanged(String source) voidtechBaseChanged(boolean clan, boolean mixed) voidtechLevelChanged(megamek.common.SimpleTechLevel techLevel) voidvoidwalkChanged(int walkMP) voidyearChanged(int year)
-
Method Details
-
refreshSummary
void refreshSummary() -
chassisChanged
-
clanNameChanged
-
modelChanged
-
yearChanged
void yearChanged(int year) -
updateTechLevel
void updateTechLevel() -
sourceChanged
-
mulIdChanged
void mulIdChanged(int mulId) -
techBaseChanged
void techBaseChanged(boolean clan, boolean mixed) -
techLevelChanged
void techLevelChanged(megamek.common.SimpleTechLevel techLevel) -
roleChanged
void roleChanged(megamek.common.units.UnitRole role) -
factionChanged
default void factionChanged(megamek.common.enums.Faction faction) -
manualBVChanged
void manualBVChanged(int manualBV) 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.- Parameters:
manualBV- The entered manual BV; may be invalid (0 or less)
-
walkChanged
void walkChanged(int walkMP) -
jumpChanged
void jumpChanged(int jumpMP, megamek.common.equipment.EquipmentType jumpJet) -
jumpTypeChanged
void jumpTypeChanged(megamek.common.equipment.EquipmentType jumpJet) -
heatSinksChanged
default void heatSinksChanged(int index, int count) Notifies of a change in heat sink type or count for aerospace units- Parameters:
index- EitherHeatSinkView.TYPE_SINGLEorHeatSinkView.TYPE_DOUBLE_AEROcount- The number of heat sinks
-
heatSinksChanged
default void heatSinksChanged(megamek.common.equipment.EquipmentType hsType, int count) Notifies of a change in heat sink type or count for meks- Parameters:
hsType- The type of heat sinkcount- The total number of heat sinks
-
redistributePrototypeHS
default void redistributePrototypeHS(int prototype) Notifies of a change in the distribution between single and double heat sinks on a unit with prototype double heat sinks.- Parameters:
prototype- The number of prototype double heat sinks
-
heatSinkBaseCountChanged
default void heatSinkBaseCountChanged(int count) Notifies of a change in the number of heat sinks that are part of the base chassis of an omni unit- Parameters:
count- The number of fixed heat sinks
-
riscHeatSinkOverrideKitChanged
default void riscHeatSinkOverrideKitChanged(boolean hasKit) Notifies of a change in the presence of a RISC Heat Sink Override Kit- Parameters:
hasKit- True if the unit now has the kit
-
fuelTonnageChanged
default void fuelTonnageChanged(double tonnage) -
fuelCapacityChanged
default void fuelCapacityChanged(int capacity) 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.- Parameters:
capacity- The number of fuel points or range as appropriate to the unit type
-
fuelTypeChanged
default void fuelTypeChanged(megamek.common.equipment.enums.FuelType fuelType) Notify of a change in ICE engine fuel type. This is only used for vehicles.- Parameters:
fuelType- The engine fuel type
-