Class App

java.lang.Object
javafx.application.Application
com.slinky.hackmaster.App

public class App extends javafx.application.Application
The App class is the main entry point for the JavaFX-based puzzle. It sets up the primary application components, initialises the game state, and configures the user interface. This class extends the Application class, allowing it to serve as a JavaFX application.

The application simulates a word game using a grid-based system, where the user interacts with a graphical interface to play. It uses various components like GameState, WordSet, CellManager, and MainController to manage game logic, word handling, and the user interface.

The main responsibilities of this class include:

  • Initialisation of the game state and core components in the init() method.
  • Setting up the primary stage and scene in the start(Stage) method.
  • Serving as the entry point for the application via the main(String[]) method.

Since:
1.0
Author:
Kheagen Haskins
  • Nested Class Summary

    Nested classes/interfaces inherited from class javafx.application.Application

    javafx.application.Application.Parameters
  • Field Summary

    Fields inherited from class javafx.application.Application

    STYLESHEET_CASPIAN, STYLESHEET_MODENA
  • Constructor Summary

    Constructors
    Constructor
    Description
    App()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Initialises the application.
    static void
    main(String[] args)
    The main method that serves as the entry point for the application.
    void
    start(javafx.stage.Stage stage)
    The entry point for the JavaFX application.

    Methods inherited from class javafx.application.Application

    getHostServices, getParameters, getUserAgentStylesheet, launch, launch, notifyPreloader, setUserAgentStylesheet, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • App

      public App()
  • Method Details

    • init

      public void init() throws Exception
      Initialises the application. This method is called before the start(Stage) method and is used to set up the game's state and components. It initialises the game state, word set, cell manager, main panel, and controller.
      Overrides:
      init in class javafx.application.Application
      Throws:
      Exception - if there is an issue during the initialisation process.
    • start

      public void start(javafx.stage.Stage stage)
      The entry point for the JavaFX application. This method is called after the application is launched and is responsible for setting up the primary stage and scene.
      Specified by:
      start in class javafx.application.Application
      Parameters:
      stage - the primary stage for this application, onto which the application scene can be set.
    • main

      public static void main(String[] args)
      The main method that serves as the entry point for the application. It calls the Application.launch(String...) method to start the JavaFX application lifecycle.
      Parameters:
      args - command-line arguments passed to the application (not used in this implementation).