Package view

Class MainWindow

java.lang.Object
view.MainWindow

public class MainWindow extends Object
Implementation of the game's main window.
  • Constructor Details

    • MainWindow

      public MainWindow()
      Constructs a MainWindow instance.
  • Method Details

    • startMainMenu

      public static void startMainMenu(JFrame frame)
      Starts main menu.
      Parameters:
      frame - the parent frame
    • startGame

      public void startGame()
      Starts a new Game
    • isNumeric

      public boolean isNumeric(String strNum)
      Checks if the given value is a number.
      Parameters:
      strNum - the string to check
      Returns:
      true if the string is a number
    • startEditor

      public void startEditor()
      Starts a new Map editor
    • repack

      public static void repack()
      Repacks the windows
    • getDimension

      public static Dimension getDimension()
      Returns the dimensions of the main window.
      Returns:
      the dimensions of the main window
    • setDimension

      public static void setDimension(Dimension dimension)
      Sets the dimensions of the main window.
      Parameters:
      dimension - the dimensions of the main window