View/StartView.java
public void buttonActions(){
        pvp.setOnAction(event -> {
            stage.close();
            GamePVPView gv1 = new GamePVPView();
        });
        pvai.setOnAction(event -> {
            stage.close();
            GamePVAIView gv2 = new GamePVAIView();
        });
        scoresB.setOnAction(event -> {
            ScoresView sv = new ScoresView(GamePVAIView.getAIGamesPlayed(), GamePVAIView.getAIGamesWon(), GamePVAIView.getAIGamesLost(),GamePVAIView.getAIRoundsWon(),GamePVAIView.getAIRoundsLost(),
                    GamePVPView.getPlayerGamesPlayed(),GamePVPView.getPlayer1RoundsWon(),GamePVPView.getPlayer1RoundsLost(),GamePVPView.getPlayer2RoundsWon(),
                    GamePVPView.getPlayer2RoundsLost(), GamePVPView.getPlayer1GamesWon(), GamePVPView.getPlayer1GamesLost(),
                    GamePVPView.getPlayer2GamesWon(),GamePVPView.getPlayer2GamesLost(),GamePVPView.getPlayerGamesTied(),GamePVAIView.getAIGamesTied());
            System.out.println(GamePVPView.getPlayer1RoundsWon());
            stage.close();

        });
        storeB.setOnAction(event -> {
            StoreView st = new StoreView(GamePVAIView.getUser1());
            stage.close();
        });
    }
/*Sets the actions for the main menu buttons*/
Sets the actions for the main menu buttons
Sets the actions for the main menu buttons
public void buttonActions(){
        pvp.setOnAction(event -> {
            stage.close();
            GamePVPView gv1 = new GamePVPView();
        });
        pvai.setOnAction(event -> {
            stage.close();
            GamePVAIView gv2 = new GamePVAIView();
        });
        scoresB.setOnAction(event -> {
            ScoresView sv = new ScoresView(GamePVAIView.getAIGamesPlayed(), GamePVAIView.getAIGamesWon(), GamePVAIView.getAIGamesLost(),GamePVAIView.getAIRoundsWon(),GamePVAIView.getAIRoundsLost(),
                    GamePVPView.getPlayerGamesPlayed(),GamePVPView.getPlayer1RoundsWon(),GamePVPView.getPlayer1RoundsLost(),GamePVPView.getPlayer2RoundsWon(),
                    GamePVPView.getPlayer2RoundsLost(), GamePVPView.getPlayer1GamesWon(), GamePVPView.getPlayer1GamesLost(),
                    GamePVPView.getPlayer2GamesWon(),GamePVPView.getPlayer2GamesLost(),GamePVPView.getPlayerGamesTied(),GamePVAIView.getAIGamesTied());
            System.out.println(GamePVPView.getPlayer1RoundsWon());
            stage.close();
        });
        storeB.setOnAction(event -> {
            StoreView st = new StoreView(GamePVAIView.getUser1());
            stage.close();
        });
    }
public void buttonActions ( ) { pvp . setOnAction ( event -> { stage . close ( ) ; GamePVPView gv1 = new GamePVPView ( ) ; } ) ; pvai . setOnAction ( event -> { stage . close ( ) ; GamePVAIView gv2 = new GamePVAIView ( ) ; } ) ; scoresB . setOnAction ( event -> { ScoresView sv = new ScoresView ( GamePVAIView . getAIGamesPlayed ( ) , GamePVAIView . getAIGamesWon ( ) , GamePVAIView . getAIGamesLost ( ) , GamePVAIView . getAIRoundsWon ( ) , GamePVAIView . getAIRoundsLost ( ) , GamePVPView . getPlayerGamesPlayed ( ) , GamePVPView . getPlayer1RoundsWon ( ) , GamePVPView . getPlayer1RoundsLost ( ) , GamePVPView . getPlayer2RoundsWon ( ) , GamePVPView . getPlayer2RoundsLost ( ) , GamePVPView . getPlayer1GamesWon ( ) , GamePVPView . getPlayer1GamesLost ( ) , GamePVPView . getPlayer2GamesWon ( ) , GamePVPView . getPlayer2GamesLost ( ) , GamePVPView . getPlayerGamesTied ( ) , GamePVAIView . getAIGamesTied ( ) ) ; System . out . println ( GamePVPView . getPlayer1RoundsWon ( ) ) ; stage . close ( ) ; } ) ; storeB . setOnAction ( event -> { StoreView st = new StoreView ( GamePVAIView . getUser1 ( ) ) ; stage . close ( ) ; } ) ; }
Sets the actions for the main menu buttons
Sets the actions for the main menu buttons