Package view

Class FileDialog

java.lang.Object
view.FileDialog

public class FileDialog extends Object
Implementation of FileDialog class.
  • Constructor Details

    • FileDialog

      public FileDialog()
      Constructs a new FileDialog with the game's folder.
  • Method Details

    • saveMapDialog

      public void saveMapDialog(Map map)
      Opens a save dialog to save a Map.
      Parameters:
      map - the Map we want to save
    • saveGameDialog

      public void saveGameDialog(Game game)
      Opens a save dialog to save a Game state.
      Parameters:
      game - the Game state we want to save
    • loadMapDialog

      public Pair<Map,File> loadMapDialog()
      Opens a load dialog to load a Map.
      Returns:
      the loaded Map
    • loadGameDialog

      public Game loadGameDialog()
      Opens a load dialog to load a Game state.
      Returns:
      the loaded Game state