Ajout des cartes lieux en provenance de la bdd

This commit is contained in:
Paul Gross
2020-05-08 16:08:56 +02:00
parent 78f251d5f1
commit d6fe0f0d80
15 changed files with 212 additions and 72 deletions

View File

@@ -44,8 +44,7 @@ public class GestionnaireDePions {
StackPane nNew = (StackPane) gp.getChildren().get(damage);
FlowPane fpNew = (FlowPane) nNew.getChildren().get(0);
fpNew.getChildren().add(pionVie);
if(!fpNew.getChildren().contains(pionVie)) fpNew.getChildren().add(pionVie);
}
@@ -66,9 +65,10 @@ public class GestionnaireDePions {
}
StackPane sp = (StackPane) hbox.getChildren().get(indexCL%2);
FlowPane fp = (FlowPane) sp.getChildren().get(0);
FlowPane fp = (FlowPane) sp.getChildren().get(1);
fp.getChildren().add(this.pionLieu);
if(!fp.getChildren().contains(this.pionLieu)) fp.getChildren().add(this.pionLieu);
}