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 -
Method Summary
Methods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, launch, launch, notifyPreloader, setUserAgentStylesheet, stop
-
Constructor Details
-
App
public App()
-
-
Method Details
-
init
Initialises the application. This method is called before thestart(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 classjavafx.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 classjavafx.application.Application
- Parameters:
stage
- the primary stage for this application, onto which the application scene can be set.
-
main
The main method that serves as the entry point for the application. It calls theApplication.launch(String...)
method to start the JavaFX application lifecycle.- Parameters:
args
- command-line arguments passed to the application (not used in this implementation).
-