Class EditBotsDialog

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

public class EditBotsDialog extends AbstractButtonDialog
See Also:
  • Constructor Details

    • EditBotsDialog

      public EditBotsDialog(JFrame frame, ClientGUI clientGUI)
  • Method Details

    • initialize

      protected void initialize()
      Description copied from class: AbstractButtonDialog
      Initializes the dialog's UI and preferences. Needs to be called by child classes for initial setup. Anything that overrides this method MUST end by calling AbstractDialog.finalizeInitialization()
      Overrides:
      initialize in class AbstractButtonDialog
    • refreshPlayers

      protected void refreshPlayers()
    • 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
    • getNewBots

      public Map<String,BehaviorSettings> getNewBots()
      Returns:
      the result of the dialog with respect to ghost players to be replaced by Princess bots. The returned map links zero, one or more BehaviorSettings (a Princess configuration) to the ghost player name they were chosen for. The returned map only includes entries for those ghost players that had a Princess Bot replacement selected. The result may be empty, but not null.
    • getChangedBots

      public Map<String,BehaviorSettings> getChangedBots()
      Returns:
      the result of the dialog with respect to Princess bots whose configuration is to be changed The returned map links zero, one or more BehaviorSettings (a Princess configuration) to the Princess player name they were chosen for. The returned map only includes entries for those Princess players that had the Edit option selected. The result may be empty, but not null.
    • getKickBots

      public Set<String> getKickBots()
      Returns the result of the dialog with respect to selected princess bots to be kicked The result may be empty, but not null.
      Returns:
      a Set of bot player names to be kicked. May be empty but not null