From 7e59fc9c607f77be8a2b4390692e848c637d3206 Mon Sep 17 00:00:00 2001 From: Chiara Date: Mon, 20 Apr 2020 16:06:41 +0200 Subject: [PATCH] lien bouton plateau --- src/ihm/controller/PlateauController.java | 86 ++++++++++++++++++-- src/ihm/ressources/Plateau.fxml | 32 ++++---- src/ihm/ressources/afficher_carte_perso.fxml | 47 +++++++++++ 3 files changed, 141 insertions(+), 24 deletions(-) create mode 100644 src/ihm/ressources/afficher_carte_perso.fxml diff --git a/src/ihm/controller/PlateauController.java b/src/ihm/controller/PlateauController.java index 9a1a968..7dc6f66 100644 --- a/src/ihm/controller/PlateauController.java +++ b/src/ihm/controller/PlateauController.java @@ -1,36 +1,106 @@ package ihm.controller; + import java.io.IOException; import java.net.URL; +import java.util.ArrayList; +import java.util.List; import java.util.ResourceBundle; import ihm.PopUp; +import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.fxml.Initializable; -import javafx.scene.control.Alert; -import javafx.scene.control.Alert.AlertType; -import javafx.scene.input.MouseEvent; -import javafx.scene.layout.BorderPane; +import javafx.scene.control.Button; import javafx.scene.layout.Pane; +import javafx.scene.layout.VBox; +import javafx.scene.layout.HBox; +import main.Joueur; -public class PlateauController implements Initializable{ +public class PlateauController implements Initializable { + + private List vboxJoueur = new ArrayList(); + private List