Version fonctionnelle des rotations zoneJoueur, voir PlateauTest2

This commit is contained in:
Paul Gross 2020-05-03 15:03:46 +02:00
parent 2ab87b04b2
commit 03499c7191
4 changed files with 803 additions and 39 deletions

View File

@ -53,21 +53,21 @@ public class JoueurIHM {
} }
public Button getRevealButton() { public Button getRevealButton() {
Pane p = (Pane) zoneJoueur.getChildren().get(1); Pane p = (Pane) zoneJoueur.getChildren().get(2);
return (Button) p.getChildren().get(1); return (Button) p.getChildren().get(1);
} }
public ImageView getCartePersonnage() { public ImageView getCartePersonnage() {
Pane p = (Pane) zoneJoueur.getChildren().get(1); Pane p = (Pane) zoneJoueur.getChildren().get(2);
return (ImageView) p.getChildren().get(0); return (ImageView) p.getChildren().get(0);
} }
public AnchorPane getZoneJoueur() { public AnchorPane getZoneJoueur() {
return (AnchorPane) zoneJoueur.getChildren().get(0); return (AnchorPane) zoneJoueur.getChildren().get(1);
} }
public void setZoneJoueur(Pane p) { public void setZoneJoueur(Pane p) {
AnchorPane ap = (AnchorPane) zoneJoueur.getChildren().get(0); AnchorPane ap = (AnchorPane) zoneJoueur.getChildren().get(1);
ap.getChildren().setAll(p); ap.getChildren().setAll(p);
AnchorPane.getBottomAnchor(p); AnchorPane.getBottomAnchor(p);
AnchorPane.getLeftAnchor(p); AnchorPane.getLeftAnchor(p);
@ -78,8 +78,7 @@ public class JoueurIHM {
public Label getLabelJoueur() { public Label getLabelJoueur() {
Pane p = (Pane) zoneJoueur.getChildren().get(2); return (Label) zoneJoueur.getChildren().get(0);
return (Label) p.getChildren().get(0);
} }
public void setLabelJoueur(String name) { public void setLabelJoueur(String name) {

View File

@ -14,13 +14,15 @@ import ihm.PopUp;
import javafx.fxml.FXML; import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader; import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable; import javafx.fxml.Initializable;
import javafx.scene.Group;
import javafx.scene.Node; import javafx.scene.Node;
import javafx.scene.Parent; import javafx.scene.Parent;
import javafx.scene.control.Label; import javafx.scene.control.Label;
import javafx.scene.layout.AnchorPane; import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.GridPane; import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Pane; import javafx.scene.layout.Pane;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color; import javafx.scene.paint.Color;
import main.GestionnaireJeu; import main.GestionnaireJeu;
import main.Joueur; import main.Joueur;
@ -47,7 +49,6 @@ public class PlateauController implements Initializable {
//System.out.println("Création du plateau ..."); //System.out.println("Création du plateau ...");
this.joueursIHM = new ArrayList<JoueurIHM>(); this.joueursIHM = new ArrayList<JoueurIHM>();
System.out.println(gridPaneVie);
GestionnaireJeu gj = GestionnaireJeu.getGestionnaireJeu(); GestionnaireJeu gj = GestionnaireJeu.getGestionnaireJeu();
Map<Integer, Joueur> map = gj.getMapJoueurs(); Map<Integer, Joueur> map = gj.getMapJoueurs();
@ -58,9 +59,8 @@ public class PlateauController implements Initializable {
l.setText(i+""); l.setText(i+"");
} }
System.out.println(map.keySet());
for(int i : map.keySet()) { for(int i : map.keySet()) {
System.out.println(i);
joueursIHM.add(new JoueurIHM(i,map.get(i),getPaneJoueur(i),new Color(Math.random(), Math.random(), Math.random(),1),gridPaneVie)); joueursIHM.add(new JoueurIHM(i,map.get(i),getPaneJoueur(i),new Color(Math.random(), Math.random(), Math.random(),1),gridPaneVie));
} }
@ -157,37 +157,37 @@ public class PlateauController implements Initializable {
private Pane getPaneJoueur(int i) { private Pane getPaneJoueur(int i) {
int position = i%4; System.out.println("i "+i);
BorderPane bp = (BorderPane) rootPane.getChildren().get(0); int position = i%8;
Pane pane; HBox hb = (HBox) rootPane.getChildren().get(0);
GridPane gp = null;
// Ordre des panes // BAS
// bp -> milieu, droite, gauche
// mid -> milieu, bas, haut
if(position < 2) { if(position < 2) {
BorderPane mid = (BorderPane) bp.getChildren().get(0); VBox group = (VBox) hb.getChildren().get(1);
gp = (GridPane) group.getChildren().get(2);
if(i < 2) { //DROITE
// Bas }else if(position < 4) {
pane = (Pane)mid.getChildren().get(1); System.out.println("Oui");
}else { Group group = (Group) hb.getChildren().get(2);
// Haut gp = (GridPane) group.getChildren().get(0);
pane = (Pane)mid.getChildren().get(2);
}
}else { //HAUT
}else if(position < 6) {
if(i < 4) { VBox group = (VBox) hb.getChildren().get(1);
// Droite gp = (GridPane) group.getChildren().get(0);
pane = (Pane) bp.getChildren().get(1);
}else { //GAUCHE
// Gauche }else if(position < 8) {
pane = (Pane) bp.getChildren().get(2); Group group = (Group) hb.getChildren().get(0);
gp = (GridPane) group.getChildren().get(0);
} }
}
return (Pane) pane.getChildren().get(i%2);
return (Pane) gp.getChildren().get(i%2);
} }
/** /**
@ -251,7 +251,7 @@ public class PlateauController implements Initializable {
for(int i = 0; i < 8; i++) { for(int i = 0; i < 8; i++) {
if(!set.contains(i)) { if(!set.contains(i)) {
getPaneJoueur(i).getChildren().removeAll(getPaneJoueur(i).getChildren()); getPaneJoueur(i).getChildren().setAll();
} }
} }

View File

@ -122,7 +122,7 @@ public class PlayersController implements Initializable{
GestionnaireJeu gj = GestionnaireJeu.getGestionnaireJeu(); GestionnaireJeu gj = GestionnaireJeu.getGestionnaireJeu();
gj.setConfiguration(new Configuration(this.joueurs)); gj.setConfiguration(new Configuration(this.joueurs));
final URL fxmlURL = getClass().getResource("../ressources/PlateauTest.fxml"); final URL fxmlURL = getClass().getResource("../ressources/PlateauTest2.fxml");
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRENCH); final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRENCH);
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle); final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
AnchorPane root = fxmlLoader.load(); AnchorPane root = fxmlLoader.load();

View File

@ -0,0 +1,765 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.String?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.Group?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.FlowPane?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.StackPane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.shape.Circle?>
<?import javafx.scene.text.Font?>
<AnchorPane fx:id="rootPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" styleClass="background" stylesheets="@style/plateau.css" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.PlateauController">
<children>
<HBox alignment="CENTER" layoutX="14.0" spacing="100.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<children>
<Group>
<children>
<GridPane hgap="50.0" prefHeight="161.0" prefWidth="885.0" rotate="90.0">
<columnConstraints>
<ColumnConstraints hgrow="ALWAYS" />
<ColumnConstraints hgrow="ALWAYS" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<GridPane nodeOrientation="LEFT_TO_RIGHT">
<columnConstraints>
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<AnchorPane prefWidth="144.0" styleClass="tour" GridPane.rowIndex="1" />
<GridPane GridPane.columnIndex="1" GridPane.rowIndex="1">
<columnConstraints>
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints valignment="CENTER" vgrow="ALWAYS" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<ImageView fitHeight="115.0" fitWidth="98.0" pickOnBounds="true" preserveRatio="true" GridPane.hgrow="ALWAYS" GridPane.vgrow="ALWAYS">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" GridPane.rowIndex="1" />
</children>
</GridPane>
<FlowPane prefWidth="144.0" styleClass="tour" GridPane.columnIndex="2" GridPane.rowIndex="1">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</FlowPane>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Equipements" GridPane.columnIndex="2" />
</children>
</GridPane>
<GridPane nodeOrientation="RIGHT_TO_LEFT" GridPane.columnIndex="1">
<columnConstraints>
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<AnchorPane prefWidth="144.0" styleClass="tour" GridPane.rowIndex="1" />
<GridPane GridPane.columnIndex="1" GridPane.rowIndex="1">
<columnConstraints>
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints valignment="CENTER" vgrow="ALWAYS" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<ImageView fitHeight="115.0" fitWidth="98.0" pickOnBounds="true" preserveRatio="true" GridPane.hgrow="ALWAYS" GridPane.vgrow="ALWAYS">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" GridPane.rowIndex="1" />
</children>
</GridPane>
<FlowPane prefHeight="144.0" prefWidth="144.0" styleClass="tour" GridPane.columnIndex="2" GridPane.rowIndex="1">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</FlowPane>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Equipements" GridPane.columnIndex="2" />
</children>
</GridPane>
</children>
</GridPane>
</children>
<HBox.margin>
<Insets left="25.0" />
</HBox.margin>
</Group>
<VBox alignment="CENTER" spacing="100.0">
<children>
<GridPane hgap="50.0" rotate="180.0">
<columnConstraints>
<ColumnConstraints hgrow="ALWAYS" />
<ColumnConstraints hgrow="ALWAYS" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<GridPane nodeOrientation="LEFT_TO_RIGHT">
<columnConstraints>
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<AnchorPane prefWidth="144.0" styleClass="tour" GridPane.rowIndex="1" />
<GridPane GridPane.columnIndex="1" GridPane.rowIndex="1">
<columnConstraints>
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints valignment="CENTER" vgrow="ALWAYS" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<ImageView fitHeight="115.0" fitWidth="98.0" pickOnBounds="true" preserveRatio="true" GridPane.hgrow="ALWAYS" GridPane.vgrow="ALWAYS">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" GridPane.rowIndex="1" />
</children>
</GridPane>
<FlowPane prefWidth="144.0" styleClass="tour" GridPane.columnIndex="2" GridPane.rowIndex="1">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</FlowPane>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Equipements" GridPane.columnIndex="2" />
</children>
</GridPane>
<GridPane nodeOrientation="RIGHT_TO_LEFT" GridPane.columnIndex="1">
<columnConstraints>
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<AnchorPane prefWidth="144.0" styleClass="tour" GridPane.rowIndex="1" />
<GridPane GridPane.columnIndex="1" GridPane.rowIndex="1">
<columnConstraints>
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints valignment="CENTER" vgrow="ALWAYS" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<ImageView fitHeight="115.0" fitWidth="98.0" pickOnBounds="true" preserveRatio="true" GridPane.hgrow="ALWAYS" GridPane.vgrow="ALWAYS">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" GridPane.rowIndex="1" />
</children>
</GridPane>
<FlowPane prefWidth="144.0" styleClass="tour" GridPane.columnIndex="2" GridPane.rowIndex="1">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</FlowPane>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Equipements" GridPane.columnIndex="2" />
</children>
</GridPane>
</children>
</GridPane>
<HBox alignment="CENTER" maxHeight="600.0" maxWidth="1200.0" spacing="50.0" VBox.vgrow="ALWAYS">
<children>
<VBox alignment="TOP_CENTER">
<children>
<HBox prefHeight="100.0" prefWidth="200.0" styleClass="carteLumiere" stylesheets="@style/plateau.css">
<children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true" styleClass="background">
<image>
<Image url="@img/dosCartesLumière.jpg" />
</image>
</ImageView>
</children>
</HBox>
<HBox prefHeight="100.0" prefWidth="200.0" styleClass="carteVision" stylesheets="@style/plateau.css">
<children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@img/dosCartesVision.jpg" />
</image>
</ImageView>
</children>
<VBox.margin>
<Insets bottom="30.0" top="30.0" />
</VBox.margin>
</HBox>
<HBox prefHeight="100.0" prefWidth="200.0" styleClass="carteTenebre" stylesheets="@style/plateau.css">
<children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@img/dosCartesNoires.jpg" />
</image>
</ImageView>
</children>
</HBox>
</children>
</VBox>
<VBox alignment="CENTER" spacing="50.0">
<children>
<GridPane hgap="20.0" VBox.vgrow="ALWAYS">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" />
<ColumnConstraints hgrow="ALWAYS" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<GridPane>
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Circle fill="#ff1f1f" radius="10.0" stroke="BLACK" strokeType="INSIDE" />
<Circle fill="#ffd71f" radius="10.0" stroke="BLACK" strokeType="INSIDE" GridPane.rowIndex="1" />
<Circle fill="#ecff1f" radius="10.0" stroke="BLACK" strokeType="INSIDE" GridPane.rowIndex="2" />
<Circle fill="#64ff1f" radius="10.0" stroke="BLACK" strokeType="INSIDE" GridPane.rowIndex="3" />
</children>
</GridPane>
<GridPane hgap="20.0" GridPane.columnIndex="1">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<HBox alignment="TOP_CENTER" styleClass="lieux" stylesheets="@style/plateau.css">
<children>
<StackPane>
<children>
<FlowPane prefHeight="200.0" prefWidth="200.0" />
<ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true" />
</children>
</StackPane>
<StackPane layoutX="39.0" layoutY="12.0">
<children>
<FlowPane prefHeight="200.0" prefWidth="200.0" />
<ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true" />
</children>
</StackPane>
</children>
</HBox>
<HBox alignment="BOTTOM_CENTER" styleClass="lieux" stylesheets="@style/plateau.css" GridPane.columnIndex="1">
<children>
<StackPane>
<children>
<FlowPane prefHeight="200.0" prefWidth="200.0" />
<ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true" />
</children>
</StackPane>
<StackPane>
<children>
<FlowPane prefHeight="200.0" prefWidth="200.0" />
<ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true" />
</children>
</StackPane>
</children>
</HBox>
<HBox alignment="TOP_CENTER" styleClass="lieux" stylesheets="@style/plateau.css" GridPane.columnIndex="2">
<children>
<StackPane>
<children>
<FlowPane prefHeight="200.0" prefWidth="200.0" />
<ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true" />
</children>
</StackPane>
<StackPane>
<children>
<FlowPane prefHeight="200.0" prefWidth="200.0" />
<ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true" />
</children>
</StackPane>
</children>
</HBox>
</children>
</GridPane>
<GridPane GridPane.columnIndex="2">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Circle fill="#21ffee" radius="10.0" stroke="BLACK" strokeType="INSIDE" />
<Circle fill="#2168ff" radius="10.0" stroke="BLACK" strokeType="INSIDE" GridPane.rowIndex="1" />
<Circle fill="#d921ff" radius="10.0" stroke="BLACK" strokeType="INSIDE" GridPane.rowIndex="2" />
<Circle fill="#ff21ad" radius="10.0" stroke="BLACK" strokeType="INSIDE" GridPane.rowIndex="3" />
</children>
</GridPane>
</children>
</GridPane>
<GridPane fx:id="gridPaneVie" alignment="CENTER" hgap="5.0" vgap="5.0">
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<StackPane>
<children>
<FlowPane />
<Label alignment="CENTER" text="0" textFill="WHITE">
<font>
<Font size="36.0" />
</font>
</Label>
</children>
<styleClass>
<String fx:value="barreDeVie" />
<String fx:value="zero" />
</styleClass>
</StackPane>
<StackPane layoutX="10.0" layoutY="10.0" GridPane.columnIndex="1">
<children>
<FlowPane />
<Label alignment="CENTER" text="0" textFill="WHITE">
<font>
<Font size="36.0" />
</font>
</Label>
</children>
<styleClass>
<String fx:value="barreDeVie" />
<String fx:value="zero" />
</styleClass>
</StackPane>
<StackPane layoutX="10.0" layoutY="10.0" GridPane.columnIndex="2">
<children>
<FlowPane />
<Label alignment="CENTER" text="0" textFill="WHITE">
<font>
<Font size="36.0" />
</font>
</Label>
</children>
<styleClass>
<String fx:value="barreDeVie" />
<String fx:value="zero" />
</styleClass>
</StackPane>
<StackPane layoutX="10.0" layoutY="10.0" GridPane.columnIndex="3">
<children>
<FlowPane />
<Label alignment="CENTER" text="0" textFill="WHITE">
<font>
<Font size="36.0" />
</font>
</Label>
</children>
<styleClass>
<String fx:value="barreDeVie" />
<String fx:value="zero" />
</styleClass>
</StackPane>
<StackPane layoutX="10.0" layoutY="10.0" GridPane.columnIndex="4">
<children>
<FlowPane />
<Label alignment="CENTER" text="0" textFill="WHITE">
<font>
<Font size="36.0" />
</font>
</Label>
</children>
<styleClass>
<String fx:value="barreDeVie" />
<String fx:value="zero" />
</styleClass>
</StackPane>
<StackPane layoutX="10.0" layoutY="10.0" GridPane.columnIndex="5">
<children>
<FlowPane />
<Label alignment="CENTER" text="0" textFill="WHITE">
<font>
<Font size="36.0" />
</font>
</Label>
</children>
<styleClass>
<String fx:value="barreDeVie" />
<String fx:value="zero" />
</styleClass>
</StackPane>
<StackPane layoutX="10.0" layoutY="10.0" GridPane.columnIndex="6">
<children>
<FlowPane />
<Label alignment="CENTER" text="0" textFill="WHITE">
<font>
<Font size="36.0" />
</font>
</Label>
</children>
<styleClass>
<String fx:value="barreDeVie" />
<String fx:value="zero" />
</styleClass>
</StackPane>
<StackPane layoutX="10.0" layoutY="10.0" GridPane.columnIndex="7">
<children>
<FlowPane />
<Label alignment="CENTER" text="0" textFill="WHITE">
<font>
<Font size="36.0" />
</font>
</Label>
</children>
<styleClass>
<String fx:value="barreDeVie" />
<String fx:value="zero" />
</styleClass>
</StackPane>
<StackPane layoutX="10.0" layoutY="10.0" GridPane.columnIndex="8">
<children>
<FlowPane />
<Label alignment="CENTER" text="0" textFill="WHITE">
<font>
<Font size="36.0" />
</font>
</Label>
</children>
<styleClass>
<String fx:value="barreDeVie" />
<String fx:value="zero" />
</styleClass>
</StackPane>
<StackPane layoutX="10.0" layoutY="10.0" GridPane.columnIndex="9">
<children>
<FlowPane />
<Label alignment="CENTER" text="0" textFill="WHITE">
<font>
<Font size="36.0" />
</font>
</Label>
</children>
<styleClass>
<String fx:value="barreDeVie" />
<String fx:value="zero" />
</styleClass>
</StackPane>
<StackPane layoutX="10.0" layoutY="10.0" GridPane.columnIndex="10">
<children>
<FlowPane />
<Label alignment="CENTER" text="0" textFill="WHITE">
<font>
<Font size="36.0" />
</font>
</Label>
</children>
<styleClass>
<String fx:value="barreDeVie" />
<String fx:value="zero" />
</styleClass>
</StackPane>
<StackPane layoutX="10.0" layoutY="10.0" GridPane.columnIndex="11">
<children>
<FlowPane />
<Label alignment="CENTER" text="0" textFill="WHITE">
<font>
<Font size="36.0" />
</font>
</Label>
</children>
<styleClass>
<String fx:value="barreDeVie" />
<String fx:value="zero" />
</styleClass>
</StackPane>
<StackPane layoutX="10.0" layoutY="10.0" GridPane.columnIndex="12">
<children>
<FlowPane />
<Label alignment="CENTER" text="0" textFill="WHITE">
<font>
<Font size="36.0" />
</font>
</Label>
</children>
<styleClass>
<String fx:value="barreDeVie" />
<String fx:value="zero" />
</styleClass>
</StackPane>
</children>
</GridPane>
</children>
</VBox>
<VBox alignment="TOP_CENTER">
<children>
<HBox prefHeight="100.0" prefWidth="200.0" styleClass="carteLumiere" stylesheets="@style/plateau.css">
<children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true" />
</children>
</HBox>
<HBox prefHeight="100.0" prefWidth="200.0" styleClass="carteVision" stylesheets="@style/plateau.css">
<children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true" />
</children>
<VBox.margin>
<Insets bottom="30.0" top="30.0" />
</VBox.margin>
</HBox>
<HBox prefHeight="100.0" prefWidth="200.0" styleClass="carteTenebre" stylesheets="@style/plateau.css">
<children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true" />
</children>
</HBox>
</children>
</VBox>
</children>
</HBox>
<GridPane hgap="50.0">
<columnConstraints>
<ColumnConstraints hgrow="ALWAYS" />
<ColumnConstraints hgrow="ALWAYS" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<GridPane nodeOrientation="LEFT_TO_RIGHT">
<columnConstraints>
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<AnchorPane prefWidth="144.0" styleClass="tour" GridPane.rowIndex="1" />
<GridPane GridPane.columnIndex="1" GridPane.rowIndex="1">
<columnConstraints>
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints valignment="CENTER" vgrow="ALWAYS" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<ImageView fitHeight="115.0" fitWidth="98.0" pickOnBounds="true" preserveRatio="true" GridPane.hgrow="ALWAYS" GridPane.vgrow="ALWAYS">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" GridPane.rowIndex="1" />
</children>
</GridPane>
<FlowPane prefHeight="144.0" prefWidth="144.0" styleClass="tour" GridPane.columnIndex="2" GridPane.rowIndex="1">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</FlowPane>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Equipements" GridPane.columnIndex="2" />
</children>
</GridPane>
<GridPane nodeOrientation="RIGHT_TO_LEFT" GridPane.columnIndex="1">
<columnConstraints>
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<AnchorPane prefWidth="144.0" styleClass="tour" GridPane.rowIndex="1" />
<GridPane GridPane.columnIndex="1" GridPane.rowIndex="1">
<columnConstraints>
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints valignment="CENTER" vgrow="ALWAYS" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<ImageView fitHeight="115.0" fitWidth="98.0" pickOnBounds="true" preserveRatio="true" GridPane.hgrow="ALWAYS" GridPane.vgrow="ALWAYS">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" GridPane.rowIndex="1" />
</children>
</GridPane>
<FlowPane prefHeight="144.0" prefWidth="144.0" styleClass="tour" GridPane.columnIndex="2" GridPane.rowIndex="1">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</FlowPane>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Equipements" GridPane.columnIndex="2" />
</children>
</GridPane>
</children>
</GridPane>
</children>
</VBox>
<Group>
<children>
<GridPane hgap="50.0" rotate="-90.0">
<columnConstraints>
<ColumnConstraints hgrow="ALWAYS" />
<ColumnConstraints hgrow="ALWAYS" />
</columnConstraints>
<rowConstraints>
<RowConstraints minHeight="10.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<GridPane nodeOrientation="LEFT_TO_RIGHT">
<columnConstraints>
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<AnchorPane prefWidth="144.0" styleClass="tour" GridPane.rowIndex="1" />
<GridPane GridPane.columnIndex="1" GridPane.rowIndex="1">
<columnConstraints>
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints valignment="CENTER" vgrow="ALWAYS" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<ImageView fitHeight="115.0" fitWidth="98.0" pickOnBounds="true" preserveRatio="true" GridPane.hgrow="ALWAYS" GridPane.vgrow="ALWAYS">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" GridPane.rowIndex="1" />
</children>
</GridPane>
<FlowPane prefWidth="144.0" styleClass="tour" GridPane.columnIndex="2" GridPane.rowIndex="1">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</FlowPane>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Equipements" GridPane.columnIndex="2" />
</children>
</GridPane>
<GridPane nodeOrientation="RIGHT_TO_LEFT" GridPane.columnIndex="1">
<columnConstraints>
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<AnchorPane prefWidth="144.0" styleClass="tour" GridPane.rowIndex="1" />
<GridPane GridPane.columnIndex="1" GridPane.rowIndex="1">
<columnConstraints>
<ColumnConstraints halignment="CENTER" hgrow="SOMETIMES" />
</columnConstraints>
<rowConstraints>
<RowConstraints valignment="CENTER" vgrow="ALWAYS" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children>
<ImageView fitHeight="115.0" fitWidth="98.0" pickOnBounds="true" preserveRatio="true" GridPane.hgrow="ALWAYS" GridPane.vgrow="ALWAYS">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" GridPane.rowIndex="1" />
</children>
</GridPane>
<FlowPane prefWidth="144.0" styleClass="tour" GridPane.columnIndex="2" GridPane.rowIndex="1">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</FlowPane>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Equipements" GridPane.columnIndex="2" />
</children>
</GridPane>
</children>
</GridPane>
</children>
</Group>
</children>
</HBox>
</children>
</AnchorPane>