Added Javadocs for start in MainGUI and separated ShipWarfare into more methods.

This commit is contained in:
KahootChampion
2019-04-11 13:48:56 -06:00
parent 784272e362
commit 4ec469de7d
4 changed files with 125 additions and 202 deletions

View File

@@ -16,14 +16,17 @@ public class MainGUI extends Application {
/**
* Updates main class with player data and starts the game.
* The game will only run as long as the player has not retired or has been destroyed.
*
* @param args Just the console for the player to look at.
*/
public static void main(String[] args) {
launch(args);
}
public void start(Stage primaryStage) throws Exception {
/**
* Starts the game as a whole, combines all of the other necessary classes
* @param primaryStage Creates new stage for scene to be utilized
*/
public void start(Stage primaryStage){
StartGUI start = new StartGUI(new Player());
start.initializeStart(primaryStage);
primaryStage.show();