From 92980baac48bdeb99280b6d5ee3c4ae0d1883f7f Mon Sep 17 00:00:00 2001 From: Chiara Date: Thu, 23 Apr 2020 10:45:55 +0200 Subject: [PATCH] ajout hashmap pour les joueurs --- src/ihm/controller/MenuController.java | 1 - src/ihm/controller/PlateauController.java | 8 ++++---- src/ihm/controller/PlayersController.java | 19 ++++++------------- src/main/Configuration.java | 2 ++ 4 files changed, 12 insertions(+), 18 deletions(-) diff --git a/src/ihm/controller/MenuController.java b/src/ihm/controller/MenuController.java index 98eec6b..eba3b9f 100644 --- a/src/ihm/controller/MenuController.java +++ b/src/ihm/controller/MenuController.java @@ -14,7 +14,6 @@ import javafx.scene.image.ImageView; import javafx.scene.input.MouseEvent; import javafx.scene.layout.AnchorPane; import javafx.scene.layout.Pane; -import main.View; public class MenuController implements Initializable{ @FXML private Pane rootPane; diff --git a/src/ihm/controller/PlateauController.java b/src/ihm/controller/PlateauController.java index 2895b3d..a2254c7 100644 --- a/src/ihm/controller/PlateauController.java +++ b/src/ihm/controller/PlateauController.java @@ -4,8 +4,10 @@ package ihm.controller; import java.io.IOException; import java.net.URL; import java.util.ArrayList; +import java.util.HashMap; import java.util.List; import java.util.ResourceBundle; +import ihm.Couple; import ihm.PopUp; import javafx.fxml.FXML; @@ -117,16 +119,14 @@ public class PlateauController implements Initializable { popup.display(); } - public void showInformation(List j) { + public void showInformation(HashMap j) { System.out.println("\tplacement des joueurs"); - for (int i=0; i(),1,1)); - + //View.applyConfiguration(new Configuration(joueurs, nbJoueursV, nbJoueursH)); FXMLLoader loader = new FXMLLoader(getClass().getResource("../ressources/Plateau.fxml")); ->>>>>>> 5cc7a5a0537704392111697bd4e529f62109d5f9 Parent root = loader.load(); PlateauController pc = loader.getController(); diff --git a/src/main/Configuration.java b/src/main/Configuration.java index 71abfd9..df21774 100644 --- a/src/main/Configuration.java +++ b/src/main/Configuration.java @@ -1,6 +1,8 @@ package main; import java.util.HashMap; +import java.util.List; + import ihm.Couple; public class Configuration {