private void startNewGame() { // create new game GameControl.createNewGame(PiratesOfTheSevenSeas.getPlayer()); // display the game menu GameMenuView gameMenu = new GameMenuView(); gameMenu.display(); }
private void startSaveGame() { this.console.println("\nEneter the file path for the file where the " + "game is to be saved."); String filePath = this.getInput(); try { GameControl.saveGame(PiratesOfTheSevenSeas.getCurrentGame(), filePath); } catch (Exception ex) { ErrorView.display("MainMenuView", ex.getMessage()); } GameMenuView gameMenu = new GameMenuView(); gameMenu.display(); }