src/main/java/tsz/game/view/MainApp.java
/**
	 * Shows the Game Over window.
	 */
Shows the Game Over window.
Shows the Game Over window .
public void showGameOverWindow() {
		try {
			FXMLLoader loader = new FXMLLoader();
			loader.setLocation(this.getClass().getClassLoader().getResource("fxml/GameOverLayout.fxml"));
			Pane gameOverLayout = (Pane) loader.load();
			GameOverController controller = loader.getController();
			controller.setMainApp(this);
			controller.writeTheScoresOnTheScreen();
			Stage stage = new Stage();
			Scene scene = new Scene(gameOverLayout);
			stage.setScene(scene);
			stage.setResizable(false);
			stage.centerOnScreen();
			stage.show();
			logger.info("Game Over Window shown.");
		} catch (IOException e) {
			logger.error(e.toString());
		}
	}
public void showGameOverWindow ( ) { try { FXMLLoader loader = new FXMLLoader ( ) ; loader . setLocation ( this . getClass ( ) . getClassLoader ( ) . getResource ( "fxml/GameOverLayout.fxml" ) ) ; Pane gameOverLayout = ( Pane ) loader . load ( ) ; GameOverController controller = loader . getController ( ) ; controller . setMainApp ( this ) ; controller . writeTheScoresOnTheScreen ( ) ; Stage stage = new Stage ( ) ; Scene scene = new Scene ( gameOverLayout ) ; stage . setScene ( scene ) ; stage . setResizable ( false ) ; stage . centerOnScreen ( ) ; stage . show ( ) ; logger . info ( "Game Over Window shown." ) ; } catch ( IOException e ) { logger . error ( e . toString ( ) ) ; } }
Shows the Game Over window.
Shows the Game Over window .