Amélioration plateau

This commit is contained in:
Paul Gross 2020-04-30 19:10:41 +02:00
parent d476733172
commit ba5976ec93
8 changed files with 764 additions and 563 deletions

View File

@ -0,0 +1,39 @@
package ihm.controller;
import javafx.scene.layout.FlowPane;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.StackPane;
import javafx.scene.paint.Color;
public class GestionnaireDePions {
private Pion pionVie;
private Pion pionLieu;
private GridPane gridPaneVie;
public GestionnaireDePions(Color color,GridPane gridPaneVie) {
this.gridPaneVie = gridPaneVie;
this.pionVie = new Pion(color);
this.pionLieu = new Pion(color);
}
public void deplacerPionVie(int damage) {
GridPane gp = this.gridPaneVie;
System.out.println(gp);
int row = pionVie.getPosition().x;
StackPane nAncient = (StackPane) gp.getChildren().get(row);
FlowPane fpAncient = (FlowPane) nAncient.getChildren().get(0);
fpAncient.getChildren().remove(pionVie);
StackPane nNew = (StackPane) gp.getChildren().get(damage);
FlowPane fpNew = (FlowPane) nNew.getChildren().get(0);
fpNew.getChildren().add(pionVie);
}
public void deplacerPionLieux() {
}
}

View File

@ -4,7 +4,14 @@ import javafx.scene.control.Button;
import javafx.scene.control.Label; import javafx.scene.control.Label;
import javafx.scene.image.ImageView; import javafx.scene.image.ImageView;
import javafx.scene.layout.AnchorPane; import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.Border;
import javafx.scene.layout.BorderStroke;
import javafx.scene.layout.BorderStrokeStyle;
import javafx.scene.layout.BorderWidths;
import javafx.scene.layout.CornerRadii;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.Pane; import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import main.Joueur; import main.Joueur;
public class JoueurIHM { public class JoueurIHM {
@ -12,16 +19,39 @@ public class JoueurIHM {
private int position; private int position;
private Joueur joueur; private Joueur joueur;
private Pane pane; private Pane pane;
private GestionnaireDePions gestionnaireDePions;
private Color color;
public JoueurIHM(int i, Joueur joueur, Pane pane) { public JoueurIHM(int i, Joueur joueur, Pane pane, Color color, GridPane gridPaneVie) {
this.setPosition(i); this.setPosition(i);
this.setJoueur(joueur); this.setJoueur(joueur);
this.pane = pane; this.pane = pane;
this.color = color;
this.gestionnaireDePions = new GestionnaireDePions(this.color,gridPaneVie);
pane.setBorder(new Border(new BorderStroke(color, BorderStrokeStyle.SOLID, CornerRadii.EMPTY, new BorderWidths(5))));
String name = joueur.getNom(); String name = joueur.getNom();
setLabelJoueur(name); setLabelJoueur(name);
initRevealButton();
} }
private void initRevealButton() {
Button btn = getRevealButton();
btn.setOnAction(x -> {
this.joueur.reveal();
ImageView iv = this.getCartePersonnage();
// TODO
//this.joueur.getCartePersonnage().getId();
//iv.setImage(arg0);
System.out.println(joueur.getRevele());
btn.setDisable(true);
});
}
public Button getRevealButton() { public Button getRevealButton() {
Pane p = (Pane) pane.getChildren().get(1); Pane p = (Pane) pane.getChildren().get(1);
return (Button) p.getChildren().get(1); return (Button) p.getChildren().get(1);
@ -66,5 +96,9 @@ public class JoueurIHM {
public void setJoueur(Joueur joueur) { public void setJoueur(Joueur joueur) {
this.joueur = joueur; this.joueur = joueur;
} }
public void deplacerPionVie(int damage) {
this.gestionnaireDePions.deplacerPionVie(damage);
}
} }

View File

@ -0,0 +1,31 @@
package ihm.controller;
import java.awt.Point;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
public class Pion extends Circle{
private static final double RADIUS = 8.0;
private static final double RED= 0.0;
private Point position;
public Pion(Color color) {
this.position = new Point(0,0);
this.setRadius(RADIUS);
this.setFill(color);
this.setStroke(new Color(0,0,0,1));
this.setStrokeWidth(1);
}
public void setPosition(int x, int y) {
this.position = new Point(x,y);
}
public Point getPosition() {
return this.position;
}
}

View File

@ -4,11 +4,11 @@ package ihm.controller;
import java.io.IOException; import java.io.IOException;
import java.net.URL; import java.net.URL;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Locale; import java.util.Locale;
import java.util.Map; import java.util.Map;
import java.util.ResourceBundle; import java.util.ResourceBundle;
import java.util.Set;
import ihm.PopUp; import ihm.PopUp;
import ihm.PopUpBoolean; import ihm.PopUpBoolean;
@ -16,48 +16,25 @@ import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader; import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable; import javafx.fxml.Initializable;
import javafx.scene.Parent; import javafx.scene.Parent;
import javafx.scene.control.Button;
import javafx.scene.control.Label; import javafx.scene.control.Label;
import javafx.scene.image.ImageView;
import javafx.scene.layout.AnchorPane; import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.HBox; import javafx.scene.layout.BorderPane;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.Pane; import javafx.scene.layout.Pane;
import javafx.scene.layout.VBox; import javafx.scene.paint.Color;
import main.GestionnaireJeu; import main.GestionnaireJeu;
import javafx.scene.shape.Circle;
import main.Joueur; import main.Joueur;
public class PlateauController implements Initializable { public class PlateauController implements Initializable {
private List<Joueur> listJoueur = new ArrayList<Joueur>(); private List<Joueur> listJoueur = new ArrayList<Joueur>();
private Map<Joueur,Pane> joueursPane;
@FXML private AnchorPane rootPane;
@FXML private HBox joueur1;
@FXML private HBox joueur2;
@FXML private HBox joueur3;
@FXML private HBox joueur4;
@FXML private VBox joueur5;
@FXML private VBox joueur6;
@FXML private VBox joueur7;
@FXML private VBox joueur8;
private List<VBox> vboxJoueur = new ArrayList<VBox>();
private List<HBox> hboxJoueur = new ArrayList<HBox>();
private List<Button> btnRevelation = new ArrayList<Button>();
private List<ImageView> cartePerso = new ArrayList<ImageView>();
private List<Label> nomJoueur = new ArrayList<Label>();
private List<AnchorPane> tour = new ArrayList<AnchorPane>();
private List<JoueurIHM> joueursIHM; private List<JoueurIHM> joueursIHM;
@FXML private HBox lieux; @FXML private AnchorPane rootPane;
@FXML private HBox vie; @FXML private GridPane gridPaneVie;
//@FXML static public GridPane gridPaneLieux;
private List<Circle> pionLieux = new ArrayList<Circle>();
private List<Circle> pionVie = new ArrayList<Circle>();
public static int DICE_SIX = 2; public static int DICE_SIX = 2;
public static int DICE_QUATRE = 1; public static int DICE_QUATRE = 1;
public static int DICE_BOTH = 0; public static int DICE_BOTH = 0;
@ -70,20 +47,34 @@ 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();
for(int i = 0 ; i < gridPaneVie.getChildren().size();i++) {
Pane p = (Pane) gridPaneVie.getChildren().get(i);
Label l = (Label) p.getChildren().get(1);
l.setText(i+"");
}
System.out.println(map.keySet());
for(int i : map.keySet()) { for(int i : map.keySet()) {
joueursIHM.add(new JoueurIHM(i,map.get(i),getPaneJoueur(i))); joueursIHM.add(new JoueurIHM(i,map.get(i),getPaneJoueur(i),new Color(Math.random(), Math.random(), Math.random(),1),gridPaneVie));
}
for(int i = 0; i<joueursIHM.size(); i++) {
joueursIHM.get(i).deplacerPionVie((int) (Math.random()*13));
} }
// BUTTONS ETC
//System.out.println(this.joueursPane); //System.out.println(this.joueursPane);
/*
this.hboxJoueur.add(joueur1); this.hboxJoueur.add(joueur1);
this.hboxJoueur.add(joueur2); this.hboxJoueur.add(joueur2);
this.hboxJoueur.add(joueur3); this.hboxJoueur.add(joueur3);
@ -126,9 +117,9 @@ public class PlateauController implements Initializable {
int compteur = j; int compteur = j;
b.setOnMouseClicked(e -> {try {consulterSaCarte(compteur);} catch (IOException e1) {e1.printStackTrace();}}); b.setOnMouseClicked(e -> {try {consulterSaCarte(compteur);} catch (IOException e1) {e1.printStackTrace();}});
j++; j++;
} }*/
/*
//initialisation des pions //initialisation des pions
VBox pionLieux14 = (VBox) lieux.getChildren().get(0); VBox pionLieux14 = (VBox) lieux.getChildren().get(0);
VBox pionLieux58 = (VBox) lieux.getChildren().get(4); VBox pionLieux58 = (VBox) lieux.getChildren().get(4);
@ -160,21 +151,43 @@ public class PlateauController implements Initializable {
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
} }*/
} }
private Pane getPaneJoueur(int i) { private Pane getPaneJoueur(int i) {
Pane parent = getPaneCoupleJoueurs(i);
int position = i%2; int position = i%4;
return (Pane) parent.getChildren().get(position); BorderPane bp = (BorderPane) rootPane.getChildren().get(0);
} Pane pane;
private Pane getPaneCoupleJoueurs(int i) { // Ordre des panes
int position = (i%8)/2; // bp -> milieu, droite, gauche
Pane parent = (Pane) rootPane.getChildren().get(0); // mid -> milieu, bas, haut
return (Pane) parent.getChildren().get(position+1); if(position < 2) {
BorderPane mid = (BorderPane) bp.getChildren().get(0);
if(i < 2) {
// Bas
pane = (Pane)mid.getChildren().get(1);
}else {
// Haut
pane = (Pane)mid.getChildren().get(2);
}
}else {
if(i < 4) {
// Droite
pane = (Pane) bp.getChildren().get(1);
}else {
// Gauche
pane = (Pane) bp.getChildren().get(2);
}
}
return (Pane) pane.getChildren().get(i%2);
} }
/** /**
@ -230,22 +243,15 @@ public class PlateauController implements Initializable {
* *
* @param j : map donnant le joueur et son numero * @param j : map donnant le joueur et son numero
*/ */
public void showInformation(Map<Integer, Joueur> j) { public void placerJoueurs(Map<Integer, Joueur> j) {
System.out.println("\tPlacement des joueurs"); Set<Integer> set = j.keySet();
int taille = this.vboxJoueur.size() + this.hboxJoueur.size();
for (int i=0; i<taille; i++) { for(int i = 0; i < 8; i++) {
if (j.get(i) != null) if(!set.contains(i)) {
nomJoueur.get(i).setText(j.get(i).getNom()); getPaneJoueur(i).getChildren().removeAll(getPaneJoueur(i).getChildren());
else {
if (i < 4) {
hboxJoueur.get(i).setVisible(false);
}else {
vboxJoueur.get(i-4).setVisible(false);
}
} }
} }
} }
public void rollDice(Joueur joueur, int typeDice, int[] rolls) { public void rollDice(Joueur joueur, int typeDice, int[] rolls) {

View File

@ -21,6 +21,7 @@ import javafx.scene.control.CheckBox;
import javafx.scene.control.TextField; import javafx.scene.control.TextField;
import javafx.scene.input.MouseEvent; import javafx.scene.input.MouseEvent;
import javafx.scene.layout.AnchorPane; import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox; import javafx.scene.layout.HBox;
import javafx.stage.Stage; import javafx.stage.Stage;
import main.Configuration; import main.Configuration;
@ -31,7 +32,7 @@ public class PlayersController implements Initializable{
@FXML private AnchorPane rootPane; @FXML private AnchorPane rootPane;
@FXML private Button btnCommencer; @FXML private Button btnCommencer;
@FXML private HBox hb1; @FXML private HBox hb1;
@FXML private HBox hb2; @FXML private HBox hb2;
@FXML private HBox hb3; @FXML private HBox hb3;
@ -66,6 +67,7 @@ public class PlayersController implements Initializable{
ligne.add(hb7); ligne.add(hb7);
ligne.add(hb8); ligne.add(hb8);
for (HBox hb : ligne) { for (HBox hb : ligne) {
System.out.println(hb);
txt.add((TextField) hb.getChildren().get(0)); txt.add((TextField) hb.getChildren().get(0));
plus.add((Button) hb.getChildren().get(1)); plus.add((Button) hb.getChildren().get(1));
ia.add((CheckBox) hb.getChildren().get(2)); ia.add((CheckBox) hb.getChildren().get(2));
@ -74,7 +76,8 @@ public class PlayersController implements Initializable{
int i=0; int i=0;
for (Button btn : plus) { for (Button btn : plus) {
int compteur = i; int compteur = i;
btn.setOnAction(e -> {ajoutJoueur(compteur);}); btn.setOnAction(e -> {
ajoutJoueur(compteur);});
i++; i++;
} }
@ -115,10 +118,11 @@ public class PlayersController implements Initializable{
// Creer une configuration // Creer une configuration
//View.applyConfiguration(new Configuration(joueurs, nbJoueursV, nbJoueursH)); //View.applyConfiguration(new Configuration(joueurs, nbJoueursV, nbJoueursH));
System.out.println(this.joueurs);
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/Plateau.fxml"); final URL fxmlURL = getClass().getResource("../ressources/PlateauTest.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);
Parent root = fxmlLoader.load(); Parent root = fxmlLoader.load();
@ -129,7 +133,7 @@ public class PlayersController implements Initializable{
Map<Integer, Joueur> map = gj.getMapJoueurs(); Map<Integer, Joueur> map = gj.getMapJoueurs();
pc.showInformation(map); pc.placerJoueurs(map);
Scene scene = new Scene(root); Scene scene = new Scene(root);
Stage appStage = (Stage) ((Node) mouseEvent.getSource()).getScene().getWindow(); Stage appStage = (Stage) ((Node) mouseEvent.getSource()).getScene().getWindow();
appStage.setScene(scene); appStage.setScene(scene);

View File

@ -17,7 +17,7 @@
<left> <left>
<VBox alignment="CENTER" prefHeight="688.0" prefWidth="240.0" BorderPane.alignment="CENTER"> <VBox alignment="CENTER" prefHeight="688.0" prefWidth="240.0" BorderPane.alignment="CENTER">
<children> <children>
<HBox fx:id="hb5" alignment="CENTER_RIGHT" prefHeight="67.0" prefWidth="340.0" rotate="90.0"> <HBox fx:id="hb7" alignment="CENTER_RIGHT" prefHeight="67.0" prefWidth="340.0" rotate="90.0">
<children> <children>
<TextField prefHeight="51.0" prefWidth="149.0"> <TextField prefHeight="51.0" prefWidth="149.0">
<font> <font>
@ -45,7 +45,7 @@
<Insets bottom="150.0" left="-100.0" /> <Insets bottom="150.0" left="-100.0" />
</VBox.margin> </VBox.margin>
</HBox> </HBox>
<HBox fx:id="hb7" alignment="CENTER_LEFT" rotate="90.0"> <HBox fx:id="hb8" alignment="CENTER_LEFT" rotate="90.0">
<children> <children>
<TextField prefHeight="51.0" prefWidth="149.0"> <TextField prefHeight="51.0" prefWidth="149.0">
<font> <font>
@ -79,7 +79,7 @@
<right> <right>
<VBox alignment="CENTER" prefHeight="688.0" prefWidth="248.0" BorderPane.alignment="CENTER"> <VBox alignment="CENTER" prefHeight="688.0" prefWidth="248.0" BorderPane.alignment="CENTER">
<children> <children>
<HBox fx:id="hb6" alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" rotate="270.0"> <HBox fx:id="hb4" alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" rotate="270.0">
<children> <children>
<TextField prefHeight="51.0" prefWidth="149.0"> <TextField prefHeight="51.0" prefWidth="149.0">
<font> <font>
@ -107,7 +107,7 @@
<Insets bottom="150.0" right="-100.0" /> <Insets bottom="150.0" right="-100.0" />
</VBox.margin> </VBox.margin>
</HBox> </HBox>
<HBox fx:id="hb8" alignment="CENTER_RIGHT" prefHeight="100.0" prefWidth="200.0" rotate="270.0"> <HBox fx:id="hb3" alignment="CENTER_RIGHT" prefHeight="100.0" prefWidth="200.0" rotate="270.0">
<children> <children>
<TextField prefHeight="51.0" prefWidth="149.0"> <TextField prefHeight="51.0" prefWidth="149.0">
<font> <font>
@ -170,7 +170,7 @@
<top> <top>
<HBox alignment="CENTER" prefHeight="110.0" prefWidth="1280.0" BorderPane.alignment="CENTER"> <HBox alignment="CENTER" prefHeight="110.0" prefWidth="1280.0" BorderPane.alignment="CENTER">
<children> <children>
<HBox fx:id="hb1" alignment="CENTER" rotate="180.0"> <HBox fx:id="hb6" alignment="CENTER" rotate="180.0">
<children> <children>
<TextField> <TextField>
<font> <font>
@ -192,7 +192,7 @@
</CheckBox> </CheckBox>
</children> </children>
</HBox> </HBox>
<HBox fx:id="hb2" alignment="CENTER" rotate="180.0"> <HBox fx:id="hb5" alignment="CENTER" rotate="180.0">
<children> <children>
<TextField accessibleRole="PARENT"> <TextField accessibleRole="PARENT">
<font> <font>
@ -228,7 +228,7 @@
<children> <children>
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0"> <HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0">
<children> <children>
<HBox fx:id="hb3" alignment="CENTER"> <HBox fx:id="hb1" alignment="CENTER">
<children> <children>
<TextField prefHeight="51.0" prefWidth="298.0"> <TextField prefHeight="51.0" prefWidth="298.0">
<font> <font>
@ -250,7 +250,7 @@
</CheckBox> </CheckBox>
</children> </children>
</HBox> </HBox>
<HBox fx:id="hb4" alignment="CENTER"> <HBox fx:id="hb2" alignment="CENTER">
<children> <children>
<TextField> <TextField>
<font> <font>

View File

@ -56,9 +56,9 @@
</VBox> </VBox>
<VBox alignment="CENTER" prefHeight="496.0" prefWidth="739.0"> <VBox alignment="CENTER" prefHeight="496.0" prefWidth="739.0">
<children> <children>
<HBox fx:id="lieux" alignment="TOP_CENTER" prefHeight="339.0" prefWidth="676.0"> <HBox fx:id="lieux" alignment="TOP_CENTER">
<children> <children>
<VBox alignment="CENTER" prefHeight="223.0" prefWidth="0.0"> <VBox alignment="CENTER">
<children> <children>
<Circle fill="#ff1f1f" radius="10.0" stroke="BLACK" strokeType="INSIDE" /> <Circle fill="#ff1f1f" radius="10.0" stroke="BLACK" strokeType="INSIDE" />
<Circle fill="#ffd71f" radius="10.0" stroke="BLACK" strokeType="INSIDE" /> <Circle fill="#ffd71f" radius="10.0" stroke="BLACK" strokeType="INSIDE" />
@ -66,7 +66,7 @@
<Circle fill="#64ff1f" radius="10.0" stroke="BLACK" strokeType="INSIDE" /> <Circle fill="#64ff1f" radius="10.0" stroke="BLACK" strokeType="INSIDE" />
</children> </children>
</VBox> </VBox>
<HBox alignment="TOP_CENTER" prefHeight="100.0" prefWidth="200.0" styleClass="lieux" stylesheets="@style/plateau.css"> <HBox alignment="TOP_CENTER" styleClass="lieux" stylesheets="@style/plateau.css">
<children> <children>
<ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true" /> <ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true" />
<ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true"> <ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true">
@ -79,7 +79,7 @@
<Insets left="10.0" /> <Insets left="10.0" />
</HBox.margin> </HBox.margin>
</HBox> </HBox>
<HBox alignment="BOTTOM_CENTER" prefHeight="100.0" prefWidth="200.0" styleClass="lieux" stylesheets="@style/plateau.css"> <HBox alignment="BOTTOM_CENTER" styleClass="lieux" stylesheets="@style/plateau.css">
<children> <children>
<ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true" /> <ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true" />
<ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true"> <ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true">
@ -92,7 +92,7 @@
<Insets left="5.0" /> <Insets left="5.0" />
</HBox.margin> </HBox.margin>
</HBox> </HBox>
<HBox alignment="TOP_CENTER" prefHeight="223.0" prefWidth="193.0" styleClass="lieux" stylesheets="@style/plateau.css"> <HBox alignment="TOP_CENTER" styleClass="lieux" stylesheets="@style/plateau.css">
<children> <children>
<ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true" /> <ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true" />
<ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true"> <ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true">
@ -485,86 +485,6 @@
</top> </top>
</BorderPane> </BorderPane>
</center> </center>
<left>
<VBox alignment="CENTER" prefHeight="634.0" prefWidth="199.0" BorderPane.alignment="CENTER">
<children>
<HBox fx:id="joueur31" prefHeight="132.0" prefWidth="118.0" rotate="90.0">
<children>
<AnchorPane styleClass="tour" />
<VBox alignment="CENTER">
<children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
<VBox.margin>
<Insets bottom="5.0" />
</VBox.margin>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" />
</children>
<HBox.margin>
<Insets left="5.0" right="5.0" />
</HBox.margin>
</VBox>
<VBox alignment="CENTER">
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<HBox styleClass="carteEquipement" stylesheets="@style/plateau.css">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</HBox>
</children>
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</VBox>
</children>
<VBox.margin>
<Insets bottom="20.0" />
</VBox.margin>
</HBox>
<HBox fx:id="joueur41" nodeOrientation="RIGHT_TO_LEFT" prefHeight="132.0" prefWidth="230.0" rotate="90.0">
<children>
<AnchorPane styleClass="tour" />
<VBox alignment="CENTER">
<children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
<VBox.margin>
<Insets bottom="5.0" />
</VBox.margin>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" />
</children>
<HBox.margin>
<Insets left="5.0" right="5.0" />
</HBox.margin>
</VBox>
<VBox alignment="CENTER">
<children>
<Label prefHeight="21.0" prefWidth="98.0" styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<HBox styleClass="carteEquipement" stylesheets="@style/plateau.css">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</HBox>
</children>
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</VBox>
</children>
<VBox.margin>
<Insets top="20.0" />
</VBox.margin>
</HBox>
</children>
</VBox>
</left>
<right> <right>
<VBox alignment="CENTER" prefHeight="634.0" prefWidth="200.0" BorderPane.alignment="CENTER"> <VBox alignment="CENTER" prefHeight="634.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<children> <children>
@ -645,6 +565,86 @@
</children> </children>
</VBox> </VBox>
</right> </right>
<left>
<VBox alignment="CENTER" prefHeight="634.0" prefWidth="199.0" BorderPane.alignment="CENTER">
<children>
<HBox fx:id="joueur31" prefHeight="132.0" prefWidth="118.0" rotate="90.0">
<children>
<AnchorPane styleClass="tour" />
<VBox alignment="CENTER">
<children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
<VBox.margin>
<Insets bottom="5.0" />
</VBox.margin>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" />
</children>
<HBox.margin>
<Insets left="5.0" right="5.0" />
</HBox.margin>
</VBox>
<VBox alignment="CENTER">
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<HBox styleClass="carteEquipement" stylesheets="@style/plateau.css">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</HBox>
</children>
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</VBox>
</children>
<VBox.margin>
<Insets bottom="20.0" />
</VBox.margin>
</HBox>
<HBox fx:id="joueur41" nodeOrientation="RIGHT_TO_LEFT" prefHeight="132.0" prefWidth="230.0" rotate="90.0">
<children>
<AnchorPane styleClass="tour" />
<VBox alignment="CENTER">
<children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
<VBox.margin>
<Insets bottom="5.0" />
</VBox.margin>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" />
</children>
<HBox.margin>
<Insets left="5.0" right="5.0" />
</HBox.margin>
</VBox>
<VBox alignment="CENTER">
<children>
<Label prefHeight="21.0" prefWidth="98.0" styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<HBox styleClass="carteEquipement" stylesheets="@style/plateau.css">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</HBox>
</children>
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</VBox>
</children>
<VBox.margin>
<Insets top="20.0" />
</VBox.margin>
</HBox>
</children>
</VBox>
</left>
</BorderPane> </BorderPane>
</children> </children>
</AnchorPane> </AnchorPane>

View File

@ -8,19 +8,25 @@
<?import javafx.scene.image.ImageView?> <?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?> <?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.BorderPane?> <?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.FlowPane?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?> <?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.StackPane?>
<?import javafx.scene.layout.VBox?> <?import javafx.scene.layout.VBox?>
<?import javafx.scene.shape.Circle?> <?import javafx.scene.shape.Circle?>
<?import javafx.scene.text.Font?>
<AnchorPane fx:id="rootPane" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.PlateauController"> <AnchorPane fx:id="rootPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="1070.0" prefWidth="1718.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.PlateauController">
<children> <children>
<BorderPane layoutX="7.0" prefHeight="1077.0" prefWidth="1868.0" styleClass="background" stylesheets="@style/plateau.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> <BorderPane layoutX="7.0" styleClass="background" stylesheets="@style/plateau.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<center> <center>
<BorderPane styleClass="background" stylesheets="@style/plateau.css"> <BorderPane styleClass="background" stylesheets="@style/plateau.css">
<center> <center>
<HBox alignment="CENTER" prefHeight="720.0" prefWidth="1078.0" BorderPane.alignment="CENTER"> <HBox alignment="CENTER" maxHeight="500.0" maxWidth="900.0" spacing="30.0" BorderPane.alignment="CENTER">
<children> <children>
<VBox alignment="CENTER_LEFT" prefWidth="22.0"> <VBox alignment="TOP_CENTER">
<children> <children>
<HBox prefHeight="100.0" prefWidth="200.0" styleClass="carteLumiere" stylesheets="@style/plateau.css"> <HBox prefHeight="100.0" prefWidth="200.0" styleClass="carteLumiere" stylesheets="@style/plateau.css">
<children> <children>
@ -54,251 +60,321 @@
</HBox> </HBox>
</children> </children>
</VBox> </VBox>
<VBox alignment="CENTER" prefHeight="496.0" prefWidth="739.0"> <VBox alignment="CENTER" spacing="50.0">
<children> <children>
<HBox fx:id="lieux" alignment="TOP_CENTER" prefHeight="339.0" prefWidth="676.0"> <GridPane hgap="20.0" VBox.vgrow="SOMETIMES">
<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> <children>
<VBox alignment="CENTER" prefHeight="223.0" prefWidth="0.0"> <GridPane>
<columnConstraints>
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" />
</columnConstraints>
<rowConstraints>
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
<RowConstraints vgrow="SOMETIMES" />
</rowConstraints>
<children> <children>
<Circle fill="#ff1f1f" radius="10.0" stroke="BLACK" strokeType="INSIDE" /> <Circle fill="#ff1f1f" radius="10.0" stroke="BLACK" strokeType="INSIDE" />
<Circle fill="#ffd71f" 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" /> <Circle fill="#ecff1f" radius="10.0" stroke="BLACK" strokeType="INSIDE" GridPane.rowIndex="2" />
<Circle fill="#64ff1f" radius="10.0" stroke="BLACK" strokeType="INSIDE" /> <Circle fill="#64ff1f" radius="10.0" stroke="BLACK" strokeType="INSIDE" GridPane.rowIndex="3" />
</children> </children>
</VBox> </GridPane>
<HBox alignment="TOP_CENTER" prefHeight="100.0" prefWidth="200.0" styleClass="lieux" stylesheets="@style/plateau.css"> <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> <children>
<ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true" /> <HBox alignment="TOP_CENTER" styleClass="lieux" stylesheets="@style/plateau.css">
<ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true"> <children>
<HBox.margin> <StackPane>
<Insets left="5.0" /> <children>
</HBox.margin> <FlowPane prefHeight="200.0" prefWidth="200.0" />
</ImageView> <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> </children>
<HBox.margin> </GridPane>
<Insets left="10.0" /> <GridPane GridPane.columnIndex="2">
</HBox.margin> <columnConstraints>
</HBox> <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" />
<HBox alignment="BOTTOM_CENTER" prefHeight="100.0" prefWidth="200.0" styleClass="lieux" stylesheets="@style/plateau.css"> </columnConstraints>
<children> <rowConstraints>
<ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true" /> <RowConstraints vgrow="SOMETIMES" />
<ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true"> <RowConstraints vgrow="SOMETIMES" />
<HBox.margin> <RowConstraints vgrow="SOMETIMES" />
<Insets left="5.0" /> <RowConstraints vgrow="SOMETIMES" />
</HBox.margin> </rowConstraints>
</ImageView>
</children>
<HBox.margin>
<Insets left="5.0" />
</HBox.margin>
</HBox>
<HBox alignment="TOP_CENTER" prefHeight="223.0" prefWidth="193.0" styleClass="lieux" stylesheets="@style/plateau.css">
<children>
<ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true" />
<ImageView fitHeight="132.03" fitWidth="94.5675" pickOnBounds="true" preserveRatio="true">
<HBox.margin>
<Insets left="5.0" />
</HBox.margin>
</ImageView>
</children>
<HBox.margin>
<Insets left="5.0" right="10.0" />
</HBox.margin>
</HBox>
<VBox alignment="CENTER" prefHeight="223.0" prefWidth="0.0">
<children> <children>
<Circle fill="#21ffee" radius="10.0" stroke="BLACK" strokeType="INSIDE" /> <Circle fill="#21ffee" radius="10.0" stroke="BLACK" strokeType="INSIDE" />
<Circle fill="#2168ff" 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" /> <Circle fill="#d921ff" radius="10.0" stroke="BLACK" strokeType="INSIDE" GridPane.rowIndex="2" />
<Circle fill="#ff21ad" radius="10.0" stroke="BLACK" strokeType="INSIDE" /> <Circle fill="#ff21ad" radius="10.0" stroke="BLACK" strokeType="INSIDE" GridPane.rowIndex="3" />
</children> </children>
</VBox> </GridPane>
</children> </children>
</HBox> </GridPane>
<VBox alignment="BOTTOM_CENTER" prefHeight="200.0" prefWidth="771.0"> <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> <children>
<HBox alignment="CENTER_RIGHT" prefHeight="60.0" prefWidth="671.0"> <StackPane>
<children> <children>
<Label alignment="CENTER" contentDisplay="CENTER" prefWidth="50.0" styleClass="text" stylesheets="@style/plateau.css" text="Allie" /> <FlowPane />
<VBox alignment="CENTER" prefHeight="60.0" prefWidth="50.0"> <Label alignment="CENTER" text="0" textFill="WHITE">
<children> <font>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Bob" /> <Font size="36.0" />
<Label styleClass="text" stylesheets="@style/plateau.css" text="Emi" /> </font>
</children> </Label>
</VBox>
<VBox alignment="CENTER" prefHeight="60.0" prefWidth="50.0">
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Charles" />
</children>
</VBox>
<Label alignment="CENTER" contentDisplay="CENTER" prefWidth="50.0" styleClass="text" stylesheets="@style/plateau.css" text="Franklin" />
<VBox alignment="CENTER" prefHeight="60.0" prefWidth="50.0">
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Vampire" />
<Label styleClass="text" stylesheets="@style/plateau.css" text="Daniel" />
</children>
</VBox>
<VBox alignment="CENTER" prefHeight="60.0" prefWidth="50.0">
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Loup-" />
<Label styleClass="text" stylesheets="@style/plateau.css" text="garou" />
<Label styleClass="text" stylesheets="@style/plateau.css" text="George" />
</children>
</VBox>
</children> </children>
</HBox> <styleClass>
<HBox fx:id="vie" prefHeight="58.0" prefWidth="655.0"> <String fx:value="barreDeVie" />
<String fx:value="zero" />
</styleClass>
</StackPane>
<StackPane layoutX="10.0" layoutY="10.0" GridPane.columnIndex="1">
<children> <children>
<HBox prefHeight="100.0" prefWidth="0.0" /> <FlowPane />
<HBox alignment="CENTER" prefHeight="64.0" prefWidth="50.0" stylesheets="@style/plateau.css"> <Label alignment="CENTER" text="0" textFill="WHITE">
<children> <font>
<VBox prefHeight="87.0" prefWidth="2.0"> <Font size="36.0" />
<children> </font>
<Circle fill="#ff1f1f" radius="8.0" stroke="BLACK" strokeType="INSIDE" /> </Label>
<Circle fill="#ffd71f" radius="8.0" stroke="BLACK" strokeType="INSIDE" />
<Circle fill="#ecff1f" radius="8.0" stroke="BLACK" strokeType="INSIDE" />
<Circle fill="#64ff1f" radius="8.0" stroke="BLACK" strokeType="INSIDE" />
</children>
</VBox>
<VBox prefHeight="87.0" prefWidth="4.0">
<children>
<Circle fill="#21ffee" radius="8.0" stroke="BLACK" strokeType="INSIDE" />
<Circle fill="#2168ff" radius="8.0" stroke="BLACK" strokeType="INSIDE" />
<Circle fill="#d921ff" radius="8.0" stroke="BLACK" strokeType="INSIDE" />
<Circle fill="#ff21ad" radius="8.0" stroke="BLACK" strokeType="INSIDE" />
</children>
</VBox>
</children>
<styleClass>
<String fx:value="barreDeVie" />
<String fx:value="zero" />
</styleClass>
</HBox>
<HBox prefHeight="100.0" prefWidth="50.0" stylesheets="@style/plateau.css">
<children>
<VBox prefHeight="64.0" prefWidth="25.0" />
<VBox prefHeight="200.0" prefWidth="25.0" />
</children>
<styleClass>
<String fx:value="barreDeVie" />
<String fx:value="un" />
</styleClass>
</HBox>
<HBox prefHeight="100.0" prefWidth="50.0" stylesheets="@style/plateau.css">
<children>
<VBox prefHeight="64.0" prefWidth="25.0" />
<VBox prefHeight="200.0" prefWidth="25.0" />
</children>
<styleClass>
<String fx:value="barreDeVie" />
<String fx:value="deux" />
</styleClass>
</HBox>
<HBox prefHeight="100.0" prefWidth="50.0" stylesheets="@style/plateau.css">
<children>
<VBox prefHeight="64.0" prefWidth="25.0" />
<VBox prefHeight="200.0" prefWidth="25.0" />
</children>
<styleClass>
<String fx:value="barreDeVie" />
<String fx:value="trois" />
</styleClass>
</HBox>
<HBox prefHeight="100.0" prefWidth="50.0" stylesheets="@style/plateau.css">
<children>
<VBox prefHeight="64.0" prefWidth="25.0" />
<VBox prefHeight="200.0" prefWidth="25.0" />
</children>
<styleClass>
<String fx:value="barreDeVie" />
<String fx:value="quatre" />
</styleClass>
</HBox>
<HBox prefHeight="100.0" prefWidth="50.0" styleClass="barreDeVie" stylesheets="@style/plateau.css">
<children>
<VBox prefHeight="64.0" prefWidth="25.0" />
<VBox prefHeight="200.0" prefWidth="25.0" />
</children>
</HBox>
<HBox prefHeight="100.0" prefWidth="50.0" styleClass="barreDeVie" stylesheets="@style/plateau.css">
<children>
<VBox prefHeight="64.0" prefWidth="25.0" />
<VBox prefHeight="200.0" prefWidth="25.0" />
</children>
</HBox>
<HBox prefHeight="100.0" prefWidth="50.0" styleClass="barreDeVie" stylesheets="@style/plateau.css">
<children>
<VBox prefHeight="64.0" prefWidth="25.0" />
<VBox prefHeight="200.0" prefWidth="25.0" />
</children>
</HBox>
<HBox prefHeight="100.0" prefWidth="50.0" styleClass="barreDeVie" stylesheets="@style/plateau.css">
<children>
<VBox prefHeight="64.0" prefWidth="25.0" />
<VBox prefHeight="200.0" prefWidth="25.0" />
</children>
</HBox>
<HBox prefHeight="100.0" prefWidth="50.0" styleClass="barreDeVie" stylesheets="@style/plateau.css">
<children>
<VBox prefHeight="64.0" prefWidth="25.0" />
<VBox prefHeight="200.0" prefWidth="25.0" />
</children>
</HBox>
<HBox prefHeight="100.0" prefWidth="50.0" styleClass="barreDeVie" stylesheets="@style/plateau.css">
<children>
<VBox prefHeight="64.0" prefWidth="25.0" />
<VBox prefHeight="200.0" prefWidth="25.0" />
</children>
</HBox>
<HBox prefHeight="100.0" prefWidth="50.0" styleClass="barreDeVie" stylesheets="@style/plateau.css">
<children>
<VBox prefHeight="64.0" prefWidth="25.0" />
<VBox prefHeight="200.0" prefWidth="25.0" />
</children>
</HBox>
<HBox prefHeight="100.0" prefWidth="50.0" styleClass="barreDeVie" stylesheets="@style/plateau.css">
<children>
<VBox prefHeight="64.0" prefWidth="25.0" />
<VBox prefHeight="200.0" prefWidth="25.0" />
</children>
</HBox>
<HBox prefHeight="100.0" prefWidth="50.0" styleClass="barreDeVie" stylesheets="@style/plateau.css">
<children>
<VBox prefHeight="64.0" prefWidth="25.0" />
<VBox prefHeight="200.0" prefWidth="25.0" />
</children>
</HBox>
</children> </children>
</HBox> <styleClass>
<HBox prefHeight="18.0" prefWidth="655.0"> <String fx:value="barreDeVie" />
<String fx:value="zero" />
</styleClass>
</StackPane>
<StackPane layoutX="10.0" layoutY="10.0" GridPane.columnIndex="2">
<children> <children>
<VBox prefHeight="41.0" prefWidth="50.0"> <FlowPane />
<children> <Label alignment="CENTER" text="0" textFill="WHITE">
<Label styleClass="text" stylesheets="@style/plateau.css" text="%pas.de" /> <font>
<Label styleClass="text" stylesheets="@style/plateau.css" text="%dégats" /> <Font size="36.0" />
</children> </font>
</VBox> </Label>
<Label alignment="CENTER" prefWidth="50.0" styleClass="text" stylesheets="@style/plateau.css" text="1" />
<Label alignment="CENTER" prefWidth="50.0" styleClass="text" stylesheets="@style/plateau.css" text="2" textAlignment="CENTER" />
<Label alignment="CENTER" prefWidth="50.0" styleClass="text" stylesheets="@style/plateau.css" text="3" textAlignment="CENTER" />
<Label alignment="CENTER" prefWidth="50.0" styleClass="text" stylesheets="@style/plateau.css" text="4" textAlignment="CENTER" />
<Label alignment="CENTER" prefWidth="50.0" styleClass="text" stylesheets="@style/plateau.css" text="5" textAlignment="CENTER" />
<Label alignment="CENTER" prefWidth="50.0" styleClass="text" stylesheets="@style/plateau.css" text="6" textAlignment="CENTER" />
<Label alignment="CENTER" prefWidth="50.0" styleClass="text" stylesheets="@style/plateau.css" text="7" textAlignment="CENTER" />
<Label alignment="CENTER" prefWidth="50.0" styleClass="text" stylesheets="@style/plateau.css" text="8" textAlignment="CENTER" />
<Label alignment="CENTER" prefWidth="50.0" styleClass="text" stylesheets="@style/plateau.css" text="9" textAlignment="CENTER" />
<Label alignment="CENTER" prefWidth="50.0" styleClass="text" stylesheets="@style/plateau.css" text="10" textAlignment="CENTER" />
<Label alignment="CENTER" prefWidth="50.0" styleClass="text" stylesheets="@style/plateau.css" text="11" textAlignment="CENTER" />
<Label alignment="CENTER" prefWidth="50.0" styleClass="text" stylesheets="@style/plateau.css" text="12" textAlignment="CENTER" />
<Label alignment="CENTER" prefWidth="50.0" styleClass="text" stylesheets="@style/plateau.css" text="13" textAlignment="CENTER" />
<Label alignment="CENTER" prefWidth="50.0" styleClass="text" stylesheets="@style/plateau.css" text="14" textAlignment="CENTER" />
</children> </children>
</HBox> <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> </children>
</VBox> </GridPane>
</children> </children>
</VBox> </VBox>
<VBox alignment="CENTER_RIGHT" prefHeight="496.0" prefWidth="29.0"> <VBox alignment="TOP_CENTER">
<children> <children>
<HBox prefHeight="100.0" prefWidth="200.0" styleClass="carteLumiere" stylesheets="@style/plateau.css"> <HBox prefHeight="100.0" prefWidth="200.0" styleClass="carteLumiere" stylesheets="@style/plateau.css">
<children> <children>
@ -324,11 +400,11 @@
</HBox> </HBox>
</center> </center>
<bottom> <bottom>
<HBox alignment="CENTER" BorderPane.alignment="CENTER"> <HBox alignment="CENTER" spacing="50.0" BorderPane.alignment="CENTER">
<children> <children>
<HBox fx:id="joueur3"> <HBox fx:id="joueur3">
<children> <children>
<AnchorPane styleClass="tour" /> <AnchorPane prefHeight="132.0" prefWidth="189.0" styleClass="tour" />
<VBox alignment="CENTER"> <VBox alignment="CENTER">
<children> <children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true"> <ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true">
@ -360,12 +436,12 @@
</VBox> </VBox>
</children> </children>
<padding> <padding>
<Insets right="10.0" /> <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding> </padding>
</HBox> </HBox>
<HBox fx:id="joueur4" nodeOrientation="RIGHT_TO_LEFT"> <HBox fx:id="joueur4" nodeOrientation="RIGHT_TO_LEFT">
<children> <children>
<AnchorPane styleClass="tour" /> <AnchorPane prefHeight="132.0" prefWidth="192.0" styleClass="tour" />
<VBox alignment="CENTER"> <VBox alignment="CENTER">
<children> <children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true"> <ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true">
@ -397,14 +473,14 @@
</VBox> </VBox>
</children> </children>
<padding> <padding>
<Insets left="10.0" /> <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding> </padding>
</HBox> </HBox>
</children> </children>
</HBox> </HBox>
</bottom> </bottom>
<top> <top>
<HBox alignment="CENTER" rotate="180.0" BorderPane.alignment="CENTER"> <HBox alignment="CENTER" rotate="180.0" spacing="50.0" BorderPane.alignment="CENTER">
<children> <children>
<HBox fx:id="joueur32"> <HBox fx:id="joueur32">
<children> <children>
@ -440,7 +516,7 @@
</VBox> </VBox>
</children> </children>
<padding> <padding>
<Insets right="10.0" /> <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding> </padding>
</HBox> </HBox>
<HBox fx:id="joueur42" nodeOrientation="RIGHT_TO_LEFT"> <HBox fx:id="joueur42" nodeOrientation="RIGHT_TO_LEFT">
@ -477,184 +553,195 @@
</VBox> </VBox>
</children> </children>
<padding> <padding>
<Insets left="10.0" /> <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding> </padding>
</HBox> </HBox>
</children> </children>
</HBox> </HBox>
</top> </top>
<left> <padding>
<VBox alignment="CENTER" prefHeight="634.0" prefWidth="166.0" BorderPane.alignment="CENTER"> <Insets bottom="20.0" left="20.0" right="20.0" top="20.0" />
<children> </padding>
<HBox fx:id="joueur31" prefHeight="132.0" prefWidth="118.0" rotate="90.0">
<children>
<AnchorPane styleClass="tour" />
<VBox alignment="CENTER">
<children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
<VBox.margin>
<Insets bottom="5.0" />
</VBox.margin>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" />
</children>
<HBox.margin>
<Insets left="5.0" right="5.0" />
</HBox.margin>
</VBox>
<VBox alignment="CENTER">
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<HBox styleClass="carteEquipement" stylesheets="@style/plateau.css">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</HBox>
</children>
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</VBox>
</children>
<VBox.margin>
<Insets bottom="20.0" />
</VBox.margin>
</HBox>
<HBox fx:id="joueur41" nodeOrientation="RIGHT_TO_LEFT" prefHeight="132.0" prefWidth="230.0" rotate="90.0">
<children>
<AnchorPane styleClass="tour" />
<VBox alignment="CENTER">
<children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
<VBox.margin>
<Insets bottom="5.0" />
</VBox.margin>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" />
</children>
<HBox.margin>
<Insets left="5.0" right="5.0" />
</HBox.margin>
</VBox>
<VBox alignment="CENTER">
<children>
<Label prefHeight="21.0" prefWidth="98.0" styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<HBox styleClass="carteEquipement" stylesheets="@style/plateau.css">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</HBox>
</children>
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</VBox>
</children>
<VBox.margin>
<Insets top="20.0" />
</VBox.margin>
</HBox>
</children>
</VBox>
</left>
<right>
<VBox alignment="CENTER" prefHeight="634.0" prefWidth="152.0" BorderPane.alignment="CENTER">
<children>
<HBox fx:id="joueur411" nodeOrientation="RIGHT_TO_LEFT" prefHeight="132.0" prefWidth="230.0" rotate="270.0">
<children>
<AnchorPane styleClass="tour" />
<VBox alignment="CENTER">
<children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
<VBox.margin>
<Insets bottom="5.0" />
</VBox.margin>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" />
</children>
<HBox.margin>
<Insets left="5.0" right="5.0" />
</HBox.margin>
</VBox>
<VBox alignment="CENTER">
<children>
<Label prefHeight="21.0" prefWidth="98.0" styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<HBox styleClass="carteEquipement" stylesheets="@style/plateau.css">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</HBox>
</children>
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</VBox>
</children>
<VBox.margin>
<Insets bottom="20.0" />
</VBox.margin>
</HBox>
<HBox fx:id="joueur311" prefHeight="132.0" prefWidth="118.0" rotate="270.0">
<children>
<AnchorPane styleClass="tour" />
<VBox alignment="CENTER">
<children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
<VBox.margin>
<Insets bottom="5.0" />
</VBox.margin>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" />
</children>
<HBox.margin>
<Insets left="5.0" right="5.0" />
</HBox.margin>
</VBox>
<VBox alignment="CENTER">
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<HBox styleClass="carteEquipement" stylesheets="@style/plateau.css">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</HBox>
</children>
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</VBox>
</children>
<VBox.margin>
<Insets top="20.0" />
</VBox.margin>
</HBox>
</children>
</VBox>
</right>
</BorderPane> </BorderPane>
</center> </center>
<left> <right>
<VBox alignment="CENTER" spacing="60.0" BorderPane.alignment="CENTER"> <VBox alignment="CENTER" spacing="50.0" BorderPane.alignment="CENTER">
<children> <children>
<VBox fx:id="joueur51" alignment="CENTER" layoutX="10.0" layoutY="481.0" nodeOrientation="LEFT_TO_RIGHT" rotate="90.0" /> <HBox fx:id="joueur411" nodeOrientation="RIGHT_TO_LEFT" rotate="270.0">
<children>
<AnchorPane styleClass="tour" />
<VBox alignment="CENTER">
<children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
<VBox.margin>
<Insets bottom="5.0" />
</VBox.margin>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" />
</children>
<HBox.margin>
<Insets left="5.0" right="5.0" />
</HBox.margin>
</VBox>
<VBox alignment="CENTER">
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<HBox styleClass="carteEquipement" stylesheets="@style/plateau.css">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</HBox>
</children>
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</VBox>
</children>
<VBox.margin>
<Insets />
</VBox.margin>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding>
</HBox>
<HBox fx:id="joueur311" rotate="270.0">
<children>
<AnchorPane styleClass="tour" />
<VBox alignment="CENTER">
<children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
<VBox.margin>
<Insets bottom="5.0" />
</VBox.margin>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" />
</children>
<HBox.margin>
<Insets left="5.0" right="5.0" />
</HBox.margin>
</VBox>
<VBox alignment="CENTER">
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<HBox styleClass="carteEquipement" stylesheets="@style/plateau.css">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</HBox>
</children>
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</VBox>
</children>
<VBox.margin>
<Insets />
</VBox.margin>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding>
</HBox>
</children> </children>
<padding>
<Insets right="20.0" />
</padding>
</VBox>
</right>
<left>
<VBox alignment="CENTER" fillWidth="false" spacing="50.0">
<children>
<HBox fx:id="joueur31" fillHeight="false" rotate="90.0" VBox.vgrow="NEVER">
<children>
<AnchorPane styleClass="tour" HBox.hgrow="NEVER" />
<VBox alignment="CENTER" fillWidth="false" HBox.hgrow="NEVER">
<children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
<VBox.margin>
<Insets bottom="5.0" />
</VBox.margin>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" />
</children>
<HBox.margin>
<Insets left="5.0" right="5.0" />
</HBox.margin>
</VBox>
<VBox alignment="CENTER" fillWidth="false" HBox.hgrow="NEVER">
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<HBox fillHeight="false" styleClass="carteEquipement" stylesheets="@style/plateau.css" VBox.vgrow="NEVER">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</HBox>
</children>
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</VBox>
</children>
<VBox.margin>
<Insets />
</VBox.margin>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding>
</HBox>
<HBox fx:id="joueur41" fillHeight="false" nodeOrientation="RIGHT_TO_LEFT" rotate="90.0" VBox.vgrow="NEVER">
<children>
<AnchorPane prefHeight="0.0" prefWidth="0.0" styleClass="tour" HBox.hgrow="NEVER" />
<VBox alignment="CENTER" fillWidth="false" HBox.hgrow="NEVER">
<children>
<ImageView fitHeight="97.8" fitWidth="70.05" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@img/dosCartesPersonnage.jpg" />
</image>
<VBox.margin>
<Insets bottom="5.0" />
</VBox.margin>
</ImageView>
<Button mnemonicParsing="false" styleClass="bouton" stylesheets="@style/plateau.css" text="%se.reveler" />
</children>
<HBox.margin>
<Insets left="5.0" right="5.0" />
</HBox.margin>
</VBox>
<VBox alignment="CENTER" fillWidth="false" HBox.hgrow="NEVER">
<children>
<Label styleClass="text" stylesheets="@style/plateau.css" text="Nom joueur" />
<HBox fillHeight="false" styleClass="carteEquipement" stylesheets="@style/plateau.css" VBox.vgrow="NEVER">
<children>
<ImageView pickOnBounds="true" preserveRatio="true" />
</children>
</HBox>
</children>
<HBox.margin>
<Insets right="5.0" />
</HBox.margin>
</VBox>
</children>
<VBox.margin>
<Insets />
</VBox.margin>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</padding>
</HBox>
</children>
<padding>
<Insets left="20.0" />
</padding>
</VBox> </VBox>
</left> </left>
<right>
<VBox alignment="CENTER" rotate="180.0" spacing="60.0" BorderPane.alignment="CENTER" />
</right>
</BorderPane> </BorderPane>
</children> </children>
</AnchorPane> </AnchorPane>