Class BattlefieldSupportAssetDamageDialog

All Implemented Interfaces:
WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class BattlefieldSupportAssetDamageDialog extends AbstractButtonDialog
A small damage editor for a Battlefield Support Asset. An asset has no armor, internals or criticals; its only persistent damage is a lowered Destroy Check. This lets the user set the current Destroy Check anywhere between 0 and the as-constructed value, replacing the full UnitEditorDialog whose armor/structure/critical widgets do not apply.
See Also:
  • Constructor Details

    • BattlefieldSupportAssetDamageDialog

      public BattlefieldSupportAssetDamageDialog(JFrame frame, BattlefieldSupportAsset asset)
      Parameters:
      frame - the parent frame
      asset - the asset whose damage (lowered Destroy Check) is being edited
  • Method Details

    • createCenterPane

      protected Container createCenterPane()
      Description copied from class: AbstractDialog
      This is used to create the dialog's center pane
      Specified by:
      createCenterPane in class AbstractDialog
      Returns:
      the center pane of the dialog
    • applyChoices

      public void applyChoices()
      Copies the chosen current Destroy Check onto the asset. Call only after the dialog was confirmed.