Class PlanetaryConditionsDialog

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

public class PlanetaryConditionsDialog extends ClientDialog
A dialog that allows for customization of planetary conditions
See Also:
  • Constructor Details

    • PlanetaryConditionsDialog

      public PlanetaryConditionsDialog(ClientGUI cl)
      Creates new PlanetaryConditionsDialog and takes the conditions from the client's Game.
    • PlanetaryConditionsDialog

      public PlanetaryConditionsDialog(JFrame frame, PlanetaryConditions conditions)
      Creates new PlanetaryConditionsDialog and sets the given conditions. Used for scenarios.
  • Method Details

    • showDialog

      public boolean showDialog()
      Sets the dialog visible and returns true if the user pressed the Okay button.
    • getConditions

      public PlanetaryConditions getConditions()
      Returns the conditions chosen by the player.
    • update

      public void update(PlanetaryConditions planetConditions)
      Stores the given conditions and updates the dialog fields.