From 8cf84c224b6f5e4861b82ed8f84da3f4b91b641d Mon Sep 17 00:00:00 2001 From: Yessine Ben El Bey Date: Wed, 22 Apr 2020 16:52:26 +0200 Subject: [PATCH] Lien entre les interfaces --- .../controller/JouerSonTour1Controller.java | 26 +++++++++++++ .../controller/JouerSonTour2Controller.java | 37 +++++++++++++++++++ .../controller/JouerSonTour3Controller.java | 35 ++++++++++++++++++ .../controller/JouerSonTour4Controller.java | 19 ++++++++++ .../controller/JouerSonTour5Controller.java | 29 +++++++++++++++ .../controller/JouerSonTour6Controller.java | 35 ++++++++++++++++++ .../JouerSonTourDonnerVisionController.java | 29 +++++++++++++++ .../PiocherLumiereTenebreController.java | 19 ++++++++++ .../controller/PiocherVisionController.java | 28 ++++++++++++++ .../RecevoirBlessureController.java | 19 ++++++++++ .../Jouer_son_tour_donner_vision.fxml | 5 +-- .../Jouer_son_tour_piocher_lum_et_ten.fxml | 3 +- .../Jouer_son_tour_piocher_vision.fxml | 4 +- .../Jouer_son_tour_recevoir_blessure.fxml | 3 +- src/ihm/ressources/jouerSonTour1.fxml | 4 +- src/ihm/ressources/jouerSonTour2.fxml | 7 ++-- src/ihm/ressources/jouerSonTour3.fxml | 5 +-- src/ihm/ressources/jouerSonTour4.fxml | 2 +- src/ihm/ressources/jouerSonTour5.fxml | 3 +- src/ihm/ressources/jouerSonTour6.fxml | 9 ++--- 20 files changed, 295 insertions(+), 26 deletions(-) create mode 100644 src/ihm/controller/JouerSonTour1Controller.java create mode 100644 src/ihm/controller/JouerSonTour2Controller.java create mode 100644 src/ihm/controller/JouerSonTour3Controller.java create mode 100644 src/ihm/controller/JouerSonTour4Controller.java create mode 100644 src/ihm/controller/JouerSonTour5Controller.java create mode 100644 src/ihm/controller/JouerSonTour6Controller.java create mode 100644 src/ihm/controller/JouerSonTourDonnerVisionController.java create mode 100644 src/ihm/controller/PiocherLumiereTenebreController.java create mode 100644 src/ihm/controller/PiocherVisionController.java create mode 100644 src/ihm/controller/RecevoirBlessureController.java diff --git a/src/ihm/controller/JouerSonTour1Controller.java b/src/ihm/controller/JouerSonTour1Controller.java new file mode 100644 index 0000000..57571b9 --- /dev/null +++ b/src/ihm/controller/JouerSonTour1Controller.java @@ -0,0 +1,26 @@ +package ihm.controller; + +import java.io.IOException; +import java.net.URL; +import java.util.ResourceBundle; + +import javafx.fxml.FXML; +import javafx.fxml.FXMLLoader; +import javafx.fxml.Initializable; +import javafx.scene.input.MouseEvent; +import javafx.scene.layout.BorderPane; +import javafx.scene.layout.Pane; + +public class JouerSonTour1Controller implements Initializable{ + @FXML private Pane rootPane; + @Override + public void initialize(URL arg0, ResourceBundle arg1) { + + } + @FXML + public void lancerDes(MouseEvent mouseEvent) throws IOException{ + + Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouerSonTour2.fxml")); + rootPane.getChildren().setAll(pane); + } +} diff --git a/src/ihm/controller/JouerSonTour2Controller.java b/src/ihm/controller/JouerSonTour2Controller.java new file mode 100644 index 0000000..f0fceec --- /dev/null +++ b/src/ihm/controller/JouerSonTour2Controller.java @@ -0,0 +1,37 @@ +package ihm.controller; + +import java.io.IOException; +import java.net.URL; +import java.util.ResourceBundle; + +import javafx.fxml.FXML; +import javafx.fxml.FXMLLoader; +import javafx.fxml.Initializable; +import javafx.scene.input.MouseEvent; +import javafx.scene.layout.BorderPane; +import javafx.scene.layout.Pane; + +public class JouerSonTour2Controller implements Initializable{ + @FXML private Pane rootPane; + + @Override + public void initialize(URL arg0, ResourceBundle arg1) { + // TODO Auto-generated method stub + + } + @FXML + public void ignorerEtape(MouseEvent mouseEvent) throws IOException{ + + Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouerSonTour3.fxml")); + rootPane.getChildren().setAll(pane); + + } + @FXML + public void capaciteLieu(MouseEvent mouseEvent) throws IOException{ + + Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouerSonTour5.fxml")); + rootPane.getChildren().setAll(pane); + + } + +} diff --git a/src/ihm/controller/JouerSonTour3Controller.java b/src/ihm/controller/JouerSonTour3Controller.java new file mode 100644 index 0000000..413a964 --- /dev/null +++ b/src/ihm/controller/JouerSonTour3Controller.java @@ -0,0 +1,35 @@ +package ihm.controller; + +import java.io.IOException; +import java.net.URL; +import java.util.ResourceBundle; + +import javafx.fxml.FXML; +import javafx.fxml.FXMLLoader; +import javafx.fxml.Initializable; +import javafx.scene.input.MouseEvent; +import javafx.scene.layout.Pane; + +public class JouerSonTour3Controller implements Initializable{ + @FXML private Pane rootPane; + + @Override + public void initialize(URL arg0, ResourceBundle arg1) { + System.out.println("nulle"); + } + + @FXML + public void choixJoueur(MouseEvent mouseEvent) throws IOException{ + + Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouerSonTour4.fxml")); + rootPane.getChildren().setAll(pane); + + } + @FXML + public void equipementVole(MouseEvent mouseEvent) throws IOException{ + + Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouerSonTour5.fxml")); + rootPane.getChildren().setAll(pane); + + } +} diff --git a/src/ihm/controller/JouerSonTour4Controller.java b/src/ihm/controller/JouerSonTour4Controller.java new file mode 100644 index 0000000..e654473 --- /dev/null +++ b/src/ihm/controller/JouerSonTour4Controller.java @@ -0,0 +1,19 @@ +package ihm.controller; + +import java.net.URL; +import java.util.ResourceBundle; + +import javafx.fxml.FXML; +import javafx.fxml.Initializable; +import javafx.scene.layout.Pane; + +public class JouerSonTour4Controller implements Initializable{ + @FXML private Pane rootPane; + + @Override + public void initialize(URL arg0, ResourceBundle arg1) { + // TODO Auto-generated method stub + + } + +} diff --git a/src/ihm/controller/JouerSonTour5Controller.java b/src/ihm/controller/JouerSonTour5Controller.java new file mode 100644 index 0000000..4370c22 --- /dev/null +++ b/src/ihm/controller/JouerSonTour5Controller.java @@ -0,0 +1,29 @@ +package ihm.controller; + +import java.io.IOException; +import java.net.URL; +import java.util.ResourceBundle; + +import javafx.fxml.FXML; +import javafx.fxml.FXMLLoader; +import javafx.fxml.Initializable; +import javafx.scene.input.MouseEvent; +import javafx.scene.layout.Pane; + +public class JouerSonTour5Controller implements Initializable{ + @FXML private Pane rootPane; + + @Override + public void initialize(URL arg0, ResourceBundle arg1) { + // TODO Auto-generated method stub + + } + @FXML + public void equipementVole(MouseEvent mouseEvent) throws IOException{ + + Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouerSonTour6.fxml")); + rootPane.getChildren().setAll(pane); + + } + +} diff --git a/src/ihm/controller/JouerSonTour6Controller.java b/src/ihm/controller/JouerSonTour6Controller.java new file mode 100644 index 0000000..ff0d29f --- /dev/null +++ b/src/ihm/controller/JouerSonTour6Controller.java @@ -0,0 +1,35 @@ +package ihm.controller; + +import java.io.IOException; +import java.net.URL; +import java.util.ResourceBundle; + +import javafx.fxml.FXML; +import javafx.fxml.FXMLLoader; +import javafx.fxml.Initializable; +import javafx.scene.input.MouseEvent; +import javafx.scene.layout.Pane; + +public class JouerSonTour6Controller implements Initializable{ + @FXML private Pane rootPane; + + @Override + public void initialize(URL arg0, ResourceBundle arg1) { + // TODO Auto-generated method stub + + } + @FXML + public void piocherVision(MouseEvent mouseEvent) throws IOException{ + + Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouer_Son_Tour_piocher_vision.fxml")); + rootPane.getChildren().setAll(pane); + + } + @FXML + public void piocherTenebre(MouseEvent mouseEvent) throws IOException{ + + Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouer_Son_Tour_piocher_lum_et_ten.fxml")); + rootPane.getChildren().setAll(pane); + + } +} diff --git a/src/ihm/controller/JouerSonTourDonnerVisionController.java b/src/ihm/controller/JouerSonTourDonnerVisionController.java new file mode 100644 index 0000000..0e05337 --- /dev/null +++ b/src/ihm/controller/JouerSonTourDonnerVisionController.java @@ -0,0 +1,29 @@ +package ihm.controller; + +import java.io.IOException; +import java.net.URL; +import java.util.ResourceBundle; + +import javafx.fxml.FXML; +import javafx.fxml.FXMLLoader; +import javafx.fxml.Initializable; +import javafx.scene.input.MouseEvent; +import javafx.scene.layout.Pane; + +public class JouerSonTourDonnerVisionController implements Initializable{ + @FXML private Pane rootPane; + @Override + public void initialize(URL arg0, ResourceBundle arg1) { + // TODO Auto-generated method stub + + } + @FXML + public void attaquer(MouseEvent mouseEvent) throws IOException{ + + Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouer_Son_Tour_recevoir_blessure.fxml")); + rootPane.getChildren().setAll(pane); + + } + + +} diff --git a/src/ihm/controller/PiocherLumiereTenebreController.java b/src/ihm/controller/PiocherLumiereTenebreController.java new file mode 100644 index 0000000..f1afaeb --- /dev/null +++ b/src/ihm/controller/PiocherLumiereTenebreController.java @@ -0,0 +1,19 @@ +package ihm.controller; + +import java.net.URL; +import java.util.ResourceBundle; + +import javafx.fxml.FXML; +import javafx.fxml.Initializable; +import javafx.scene.layout.Pane; + +public class PiocherLumiereTenebreController implements Initializable{ + @FXML private Pane rootPane; + + @Override + public void initialize(URL arg0, ResourceBundle arg1) { + // TODO Auto-generated method stub + + } + +} diff --git a/src/ihm/controller/PiocherVisionController.java b/src/ihm/controller/PiocherVisionController.java new file mode 100644 index 0000000..4c9f460 --- /dev/null +++ b/src/ihm/controller/PiocherVisionController.java @@ -0,0 +1,28 @@ +package ihm.controller; + +import java.io.IOException; +import java.net.URL; +import java.util.ResourceBundle; + +import javafx.fxml.FXML; +import javafx.fxml.FXMLLoader; +import javafx.fxml.Initializable; +import javafx.scene.input.MouseEvent; +import javafx.scene.layout.Pane; + +public class PiocherVisionController implements Initializable{ + @FXML private Pane rootPane; + @Override + public void initialize(URL arg0, ResourceBundle arg1) { + // TODO Auto-generated method stub + + } + @FXML + public void voirCarte(MouseEvent mouseEvent) throws IOException{ + + Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouer_Son_Tour_donner_vision.fxml")); + rootPane.getChildren().setAll(pane); + + } + +} diff --git a/src/ihm/controller/RecevoirBlessureController.java b/src/ihm/controller/RecevoirBlessureController.java new file mode 100644 index 0000000..e7c373f --- /dev/null +++ b/src/ihm/controller/RecevoirBlessureController.java @@ -0,0 +1,19 @@ +package ihm.controller; + +import java.net.URL; +import java.util.ResourceBundle; + +import javafx.fxml.FXML; +import javafx.fxml.Initializable; +import javafx.scene.layout.Pane; + +public class RecevoirBlessureController implements Initializable{ + @FXML private Pane rootPane; + + @Override + public void initialize(URL arg0, ResourceBundle arg1) { + // TODO Auto-generated method stub + + } + +} diff --git a/src/ihm/ressources/Jouer_son_tour_donner_vision.fxml b/src/ihm/ressources/Jouer_son_tour_donner_vision.fxml index 37aa827..bbfc643 100644 --- a/src/ihm/ressources/Jouer_son_tour_donner_vision.fxml +++ b/src/ihm/ressources/Jouer_son_tour_donner_vision.fxml @@ -8,8 +8,7 @@ - - + @@ -17,7 +16,7 @@ -