game-client

Play TicTacToe and Reversi
Log | Files | Refs

TicTacToeMainMenuController.java (893B)


      1 package nl.isygameclient.controllers.games.tictactoe;
      2 
      3 import javafx.event.ActionEvent;
      4 import javafx.fxml.FXML;
      5 import nl.isygameclient.Window;
      6 import nl.isygameclient.controllers.games.GameMenuController;
      7 import nl.isygameclient.util.StageHandler;
      8 
      9 public class TicTacToeMainMenuController implements GameMenuController {
     10 	@FXML
     11 	public void onSinglePlayerButtonClick(ActionEvent e) {
     12 		StageHandler.get().changeSceneOfStage(Window.GAME, "/nl/isygameclient/views/games/tictactoe/TicTacToeSinglePlayer.fxml");
     13 	}
     14 
     15 	@FXML
     16 	public void onMultiPlayerButtonClick(ActionEvent e) {
     17 		StageHandler.get().changeSceneOfStage(Window.GAME,"/nl/isygameclient/views/games/tictactoe/TicTacToeMultiPlayer.fxml");
     18 	}
     19 
     20 	@FXML
     21 	public void onExitGameButtonClick(ActionEvent e) {
     22 		var stageHandler = StageHandler.get();
     23 		stageHandler.getStage(Window.GAME).hide();
     24 		stageHandler.focusStage(Window.APP);
     25 	}
     26 
     27 }