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 @@ -