Merge branch 'development' of https://github.com/PTE-SH/ShadowHunterGame into development
This commit is contained in:
commit
2ab9df30ed
BIN
shDBlatest.sql
BIN
shDBlatest.sql
Binary file not shown.
@ -31,7 +31,7 @@ public class Main extends Application {
|
|||||||
System.exit(0);
|
System.exit(0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//primaryStage.setMaximized(true);
|
primaryStage.setMaximized(true);
|
||||||
primaryStage.show();
|
primaryStage.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,12 +6,13 @@ import java.util.ResourceBundle;
|
|||||||
import javafx.fxml.FXML;
|
import javafx.fxml.FXML;
|
||||||
import javafx.fxml.Initializable;
|
import javafx.fxml.Initializable;
|
||||||
import javafx.scene.control.Button;
|
import javafx.scene.control.Button;
|
||||||
|
import javafx.scene.control.Label;
|
||||||
import main.GestionnaireJeu;
|
import main.GestionnaireJeu;
|
||||||
|
|
||||||
public class ChoisirBoolean implements Initializable {
|
public class ChoisirBoolean implements Initializable {
|
||||||
|
|
||||||
@FXML private Button ouiButton;
|
@FXML private Button ouiButton;
|
||||||
@FXML private Button nonButton;
|
@FXML private Button nonButton;
|
||||||
|
@FXML private Label titre;
|
||||||
|
|
||||||
private boolean result;
|
private boolean result;
|
||||||
@Override
|
@Override
|
||||||
@ -32,4 +33,28 @@ public class ChoisirBoolean implements Initializable {
|
|||||||
public boolean getResult() {
|
public boolean getResult() {
|
||||||
return this.result;
|
return this.result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Button getOuiButton() {
|
||||||
|
return ouiButton;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOuiButton(Button ouiButton) {
|
||||||
|
this.ouiButton = ouiButton;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Button getNonButton() {
|
||||||
|
return nonButton;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNonButton(Button nonButton) {
|
||||||
|
this.nonButton = nonButton;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Label getTitre() {
|
||||||
|
return titre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTitre(Label titre) {
|
||||||
|
this.titre = titre;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
67
src/ihm/controller/ChoisirJoueur.java
Normal file
67
src/ihm/controller/ChoisirJoueur.java
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
package ihm.controller;
|
||||||
|
|
||||||
|
import java.net.URL;
|
||||||
|
import java.util.ResourceBundle;
|
||||||
|
|
||||||
|
import javafx.fxml.FXML;
|
||||||
|
import javafx.fxml.Initializable;
|
||||||
|
import javafx.scene.control.Label;
|
||||||
|
import javafx.scene.layout.HBox;
|
||||||
|
|
||||||
|
public class ChoisirJoueur implements Initializable{
|
||||||
|
@FXML private HBox joueurHaut;
|
||||||
|
@FXML private HBox joueurBas;
|
||||||
|
@FXML private Label titre;
|
||||||
|
|
||||||
|
private int joueurSelected;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void initialize(URL arg0, ResourceBundle arg1) {
|
||||||
|
for (int i=0; i<joueurHaut.getChildren().size(); i++) {
|
||||||
|
int numJoueur = i;
|
||||||
|
joueurHaut.getChildren().get(i).setOnMouseClicked(e -> {
|
||||||
|
this.joueurSelected = numJoueur;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
for (int i=0; i<joueurBas.getChildren().size(); i++) {
|
||||||
|
int numJoueur = i;
|
||||||
|
joueurHaut.getChildren().get(i).setOnMouseClicked(e -> {
|
||||||
|
this.joueurSelected = numJoueur;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//GETTERS AND SETTERS
|
||||||
|
public HBox getJoueurHaut() {
|
||||||
|
return joueurHaut;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJoueurHaut(HBox joueurHaut) {
|
||||||
|
this.joueurHaut = joueurHaut;
|
||||||
|
}
|
||||||
|
|
||||||
|
public HBox getJoueurBas() {
|
||||||
|
return joueurBas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJoueurBas(HBox joueurBas) {
|
||||||
|
this.joueurBas = joueurBas;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Label getTitre() {
|
||||||
|
return titre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTitre(Label titre) {
|
||||||
|
this.titre = titre;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getJoueurSelected() {
|
||||||
|
return joueurSelected;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setJoueurSelected(int joueurSelected) {
|
||||||
|
this.joueurSelected = joueurSelected;
|
||||||
|
}
|
||||||
|
}
|
@ -45,7 +45,7 @@ public class JouerSonTour1Controller implements Initializable{
|
|||||||
btnLancer.setVisible(false);
|
btnLancer.setVisible(false);
|
||||||
btnStop.setVisible(true);
|
btnStop.setVisible(true);
|
||||||
|
|
||||||
for (int i=1; i<7; i++) {
|
/*for (int i=1; i<7; i++) {
|
||||||
Thread.sleep(500);
|
Thread.sleep(500);
|
||||||
d6.setText(Integer.toString(i));
|
d6.setText(Integer.toString(i));
|
||||||
}
|
}
|
||||||
@ -53,7 +53,7 @@ public class JouerSonTour1Controller implements Initializable{
|
|||||||
for (int i=1; i<5; i++) {
|
for (int i=1; i<5; i++) {
|
||||||
Thread.sleep(500);
|
Thread.sleep(500);
|
||||||
d4.setText(Integer.toString(i));
|
d4.setText(Integer.toString(i));
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
|
@ -1,51 +1,9 @@
|
|||||||
package ihm.controller;
|
package ihm.controller;
|
||||||
|
|
||||||
import java.io.IOException;
|
public class JouerSonTour2Controller extends ChoisirBoolean{
|
||||||
import java.net.URL;
|
public void initButtons () {
|
||||||
import java.util.ResourceBundle;
|
super.getOuiButton().setText("utiliser.capaciter.lieux");
|
||||||
|
super.getNonButton().setText("sauter.etape");
|
||||||
import carte.CarteLieu;
|
super.getTitre().setText("description.capacite.carte.lieux");
|
||||||
import javafx.fxml.FXML;
|
|
||||||
import javafx.fxml.FXMLLoader;
|
|
||||||
import javafx.fxml.Initializable;
|
|
||||||
import javafx.scene.control.Label;
|
|
||||||
import javafx.scene.input.MouseEvent;
|
|
||||||
import javafx.scene.layout.BorderPane;
|
|
||||||
import javafx.scene.layout.Pane;
|
|
||||||
|
|
||||||
public class JouerSonTour2Controller implements Initializable{
|
|
||||||
private CarteLieu lieu;
|
|
||||||
|
|
||||||
@FXML private Pane rootPane;
|
|
||||||
@FXML private Label descriptionLieu;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
|
||||||
System.out.println("\tDescrption du lieux");
|
|
||||||
//descriptionLieu.setText(lieu.getDescription());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@FXML
|
|
||||||
public void ignorerEtape(MouseEvent mouseEvent) throws IOException{
|
|
||||||
Pane pane = FXMLLoader.load(getClass().getResource("/ihm/ressources/Jouer_tour(3)attaquer.fxml"));
|
|
||||||
rootPane.getChildren().setAll(pane);
|
|
||||||
}
|
|
||||||
|
|
||||||
@FXML
|
|
||||||
public void capaciteLieu(MouseEvent mouseEvent) throws IOException{
|
|
||||||
/*//si le lieu fait attaquer ou se soigner
|
|
||||||
if (lieu.getNom().compareTo("foret hantee")) {
|
|
||||||
Pane pane = FXMLLoader.load(getClass().getResource("../ressources/Jouer_tour(2c)attaquer_soigner.fxml"));
|
|
||||||
rootPane.getChildren().setAll(pane);
|
|
||||||
//si le lieu fait voler une carte equipement
|
|
||||||
}else if(lieu.getNom().compareTo("sanctuaire ancien")) {
|
|
||||||
Pane pane = FXMLLoader.load(getClass().getResource("../ressources/Jouer_tour(2a)voler_equipement.fxml"));
|
|
||||||
rootPane.getChildren().setAll(pane);
|
|
||||||
//si le lieu fait piocher une carte
|
|
||||||
}else {
|
|
||||||
Pane pane = FXMLLoader.load(getClass().getResource("../ressources/Jouer_tour(2b)piocher_carte.fxml"));
|
|
||||||
rootPane.getChildren().setAll(pane);
|
|
||||||
}*/
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
9
src/ihm/controller/JouerSonTour2c1Controller.java
Normal file
9
src/ihm/controller/JouerSonTour2c1Controller.java
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
package ihm.controller;
|
||||||
|
|
||||||
|
public class JouerSonTour2c1Controller extends ChoisirBoolean{
|
||||||
|
public void initButtons () {
|
||||||
|
super.getOuiButton().setText("Attaquer !");
|
||||||
|
super.getNonButton().setText("se.soigner");
|
||||||
|
super.getTitre().setText("attaquer.ou.soigner");
|
||||||
|
}
|
||||||
|
}
|
@ -1,35 +1,9 @@
|
|||||||
package ihm.controller;
|
package ihm.controller;
|
||||||
|
|
||||||
import java.io.IOException;
|
public class JouerSonTour3Controller extends ChoisirBoolean{
|
||||||
import java.net.URL;
|
public void initButtons () {
|
||||||
import java.util.ResourceBundle;
|
super.getOuiButton().setText("Attaquer !");
|
||||||
|
super.getNonButton().setText("Ne pas attaquer");
|
||||||
import javafx.fxml.FXML;
|
super.getTitre().setText("Voulez-vous attaquer un joueur ?");
|
||||||
import javafx.fxml.FXMLLoader;
|
|
||||||
import javafx.fxml.Initializable;
|
|
||||||
import javafx.scene.Node;
|
|
||||||
import javafx.scene.input.MouseEvent;
|
|
||||||
import javafx.scene.layout.Pane;
|
|
||||||
import javafx.stage.Stage;
|
|
||||||
|
|
||||||
public class JouerSonTour3Controller implements Initializable{
|
|
||||||
@FXML private Pane rootPane;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*@FXML
|
|
||||||
public void choixJoueur(MouseEvent mouseEvent) throws IOException{
|
|
||||||
Pane pane = FXMLLoader.load(getClass().getResource("../ressources/jouerSonTour4.fxml"));
|
|
||||||
rootPane.getChildren().setAll(pane);
|
|
||||||
|
|
||||||
}*/
|
|
||||||
|
|
||||||
@FXML
|
|
||||||
public void pasAttaquer(MouseEvent mouseEvent) throws IOException{
|
|
||||||
Stage appStage = (Stage) ((Node) mouseEvent.getSource()).getScene().getWindow();
|
|
||||||
appStage.close();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
package ihm.controller;
|
|
||||||
|
|
||||||
import java.net.URL;
|
|
||||||
import java.util.ResourceBundle;
|
|
||||||
|
|
||||||
import javafx.fxml.FXML;
|
|
||||||
import javafx.fxml.Initializable;
|
|
||||||
import javafx.scene.layout.Pane;
|
|
||||||
|
|
||||||
public class JouerSonTour4Controller implements Initializable{
|
|
||||||
@FXML private Pane rootPane;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,33 +0,0 @@
|
|||||||
package ihm.controller;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.net.URL;
|
|
||||||
import java.util.Locale;
|
|
||||||
import java.util.ResourceBundle;
|
|
||||||
|
|
||||||
import javafx.fxml.FXML;
|
|
||||||
import javafx.fxml.FXMLLoader;
|
|
||||||
import javafx.fxml.Initializable;
|
|
||||||
import javafx.scene.input.MouseEvent;
|
|
||||||
import javafx.scene.layout.Pane;
|
|
||||||
|
|
||||||
public class JouerSonTour5Controller implements Initializable{
|
|
||||||
@FXML private Pane rootPane;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
|
|
||||||
}
|
|
||||||
@FXML
|
|
||||||
public void equipementVole(MouseEvent mouseEvent) throws IOException{
|
|
||||||
|
|
||||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/jouerSonTour6.fxml");
|
|
||||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.ENGLISH);
|
|
||||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
|
||||||
Pane pane = fxmlLoader.load();
|
|
||||||
rootPane.getChildren().setAll(pane);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,44 +0,0 @@
|
|||||||
package ihm.controller;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.net.URL;
|
|
||||||
import java.util.Locale;
|
|
||||||
import java.util.ResourceBundle;
|
|
||||||
|
|
||||||
import javafx.fxml.FXML;
|
|
||||||
import javafx.fxml.FXMLLoader;
|
|
||||||
import javafx.fxml.Initializable;
|
|
||||||
import javafx.scene.input.MouseEvent;
|
|
||||||
import javafx.scene.layout.Pane;
|
|
||||||
|
|
||||||
public class JouerSonTour6Controller implements Initializable{
|
|
||||||
@FXML private Pane rootPane;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
|
|
||||||
}
|
|
||||||
@FXML
|
|
||||||
public void piocherVision(MouseEvent mouseEvent) throws IOException{
|
|
||||||
|
|
||||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/jouer_Son_Tour_piocher_vision.fxml");
|
|
||||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.ENGLISH);
|
|
||||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
|
||||||
Pane pane = fxmlLoader.load();
|
|
||||||
|
|
||||||
rootPane.getChildren().setAll(pane);
|
|
||||||
|
|
||||||
}
|
|
||||||
@FXML
|
|
||||||
public void piocherTenebre(MouseEvent mouseEvent) throws IOException{
|
|
||||||
|
|
||||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/jouer_Son_Tour_piocher_lum_et_ten.fxml");
|
|
||||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.ENGLISH);
|
|
||||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
|
||||||
Pane pane = fxmlLoader.load();
|
|
||||||
|
|
||||||
rootPane.getChildren().setAll(pane);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,34 +0,0 @@
|
|||||||
package ihm.controller;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.net.URL;
|
|
||||||
import java.util.Locale;
|
|
||||||
import java.util.ResourceBundle;
|
|
||||||
|
|
||||||
import javafx.fxml.FXML;
|
|
||||||
import javafx.fxml.FXMLLoader;
|
|
||||||
import javafx.fxml.Initializable;
|
|
||||||
import javafx.scene.input.MouseEvent;
|
|
||||||
import javafx.scene.layout.Pane;
|
|
||||||
|
|
||||||
public class JouerSonTourDonnerVisionController implements Initializable{
|
|
||||||
@FXML private Pane rootPane;
|
|
||||||
@Override
|
|
||||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
|
|
||||||
}
|
|
||||||
@FXML
|
|
||||||
public void attaquer(MouseEvent mouseEvent) throws IOException{
|
|
||||||
|
|
||||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/jouer_Son_Tour_recevoir_blessure.fxml");
|
|
||||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.ENGLISH);
|
|
||||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
|
||||||
Pane pane = fxmlLoader.load();
|
|
||||||
|
|
||||||
rootPane.getChildren().setAll(pane);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
@ -1,19 +0,0 @@
|
|||||||
package ihm.controller;
|
|
||||||
|
|
||||||
import java.net.URL;
|
|
||||||
import java.util.ResourceBundle;
|
|
||||||
|
|
||||||
import javafx.fxml.FXML;
|
|
||||||
import javafx.fxml.Initializable;
|
|
||||||
import javafx.scene.layout.Pane;
|
|
||||||
|
|
||||||
public class PiocherLumiereTenebreController implements Initializable{
|
|
||||||
@FXML private Pane rootPane;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -1,19 +0,0 @@
|
|||||||
package ihm.controller;
|
|
||||||
|
|
||||||
import java.net.URL;
|
|
||||||
import java.util.ResourceBundle;
|
|
||||||
|
|
||||||
import javafx.fxml.FXML;
|
|
||||||
import javafx.fxml.Initializable;
|
|
||||||
import javafx.scene.layout.Pane;
|
|
||||||
|
|
||||||
public class RecevoirBlessureController implements Initializable{
|
|
||||||
@FXML private Pane rootPane;
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
|
||||||
// TODO Auto-generated method stub
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -12,8 +12,14 @@
|
|||||||
<children>
|
<children>
|
||||||
<Pane fx:id="rootPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css">
|
<Pane fx:id="rootPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css">
|
||||||
<children>
|
<children>
|
||||||
<Button layoutX="103.0" layoutY="133.0" mnemonicParsing="false" onMouseClicked="#capaciteLieu" text="%utiliser.capaciter.lieux" />
|
<Button fx:id="ouiButton" layoutX="103.0" layoutY="133.0" mnemonicParsing="false" text="%utiliser.capaciter.lieux">
|
||||||
<Button layoutX="104.0" layoutY="97.0" mnemonicParsing="false" onMouseClicked="#ignorerEtape" prefHeight="29.0" prefWidth="142.0" text="%sauter.etape" />
|
<font>
|
||||||
|
<Font size="11.0" />
|
||||||
|
</font></Button>
|
||||||
|
<Button fx:id="nonButton" layoutX="104.0" layoutY="97.0" mnemonicParsing="false" text="%sauter.etape">
|
||||||
|
<font>
|
||||||
|
<Font size="11.0" />
|
||||||
|
</font></Button>
|
||||||
<ImageView fitHeight="114.0" fitWidth="82.0" layoutX="14.0" layoutY="33.0" pickOnBounds="true" preserveRatio="true" />
|
<ImageView fitHeight="114.0" fitWidth="82.0" layoutX="14.0" layoutY="33.0" pickOnBounds="true" preserveRatio="true" />
|
||||||
<Label fx:id="descriptionLieu" layoutX="96.0" layoutY="33.0" text="%description.capacite.carte.lieux">
|
<Label fx:id="descriptionLieu" layoutX="96.0" layoutY="33.0" text="%description.capacite.carte.lieux">
|
||||||
<font>
|
<font>
|
||||||
|
@ -5,13 +5,13 @@
|
|||||||
<?import javafx.scene.layout.AnchorPane?>
|
<?import javafx.scene.layout.AnchorPane?>
|
||||||
<?import javafx.scene.layout.Pane?>
|
<?import javafx.scene.layout.Pane?>
|
||||||
|
|
||||||
|
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.JouerSonTour2c1Controller">
|
||||||
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1">
|
|
||||||
<children>
|
<children>
|
||||||
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css">
|
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css">
|
||||||
<children>
|
<children>
|
||||||
<Label layoutX="71.0" layoutY="57.0" text="%attaquer.ou.soigner" />
|
<Label fx:id="Titre" layoutX="9.0" layoutY="32.0" text="%attaquer.ou.soigner" />
|
||||||
<Button layoutX="86.0" layoutY="100.0" mnemonicParsing="false" text="%se.soigner" />
|
<Button fx:id="nonButton" layoutX="142.0" layoutY="119.0" mnemonicParsing="false" text="%se.soigner" />
|
||||||
|
<Button fx:id="ouiButton" layoutX="29.0" layoutY="119.0" mnemonicParsing="false" text="Attaquer !" />
|
||||||
</children>
|
</children>
|
||||||
</Pane>
|
</Pane>
|
||||||
</children>
|
</children>
|
@ -1,81 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
|
|
||||||
<?import javafx.geometry.Insets?>
|
|
||||||
<?import javafx.scene.control.Button?>
|
|
||||||
<?import javafx.scene.control.Label?>
|
|
||||||
<?import javafx.scene.layout.HBox?>
|
|
||||||
<?import javafx.scene.layout.Pane?>
|
|
||||||
<?import javafx.scene.text.Font?>
|
|
||||||
|
|
||||||
<Pane fx:id="rootPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.JouerSonTour3Controller">
|
|
||||||
<children>
|
|
||||||
<Button layoutX="76.0" layoutY="76.0" mnemonicParsing="false" onMouseClicked="#pasAttaquer" text="Ne pas attaquer" />
|
|
||||||
<HBox layoutY="1.0">
|
|
||||||
<children>
|
|
||||||
<Button mnemonicParsing="false" text="Joueur 1">
|
|
||||||
<font>
|
|
||||||
<Font size="10.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets right="10.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
<Button mnemonicParsing="false" text="Joueur 2">
|
|
||||||
<font>
|
|
||||||
<Font size="10.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets right="10.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
<Button mnemonicParsing="false" text="Joueur 3">
|
|
||||||
<font>
|
|
||||||
<Font size="10.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets right="10.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
<Button mnemonicParsing="false" text="Joueur 4">
|
|
||||||
<font>
|
|
||||||
<Font size="10.0" />
|
|
||||||
</font>
|
|
||||||
</Button>
|
|
||||||
</children>
|
|
||||||
</HBox>
|
|
||||||
<HBox layoutX="1.0" layoutY="153.0">
|
|
||||||
<children>
|
|
||||||
<Button mnemonicParsing="false" text="Joueur 5">
|
|
||||||
<font>
|
|
||||||
<Font size="10.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets right="10.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
<Button mnemonicParsing="false" text="Joueur 6">
|
|
||||||
<font>
|
|
||||||
<Font size="10.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets right="10.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
<Button mnemonicParsing="false" text="Joueur 7">
|
|
||||||
<font>
|
|
||||||
<Font size="10.0" />
|
|
||||||
</font>
|
|
||||||
<HBox.margin>
|
|
||||||
<Insets right="10.0" />
|
|
||||||
</HBox.margin>
|
|
||||||
</Button>
|
|
||||||
<Button mnemonicParsing="false" text="Joueur 8">
|
|
||||||
<font>
|
|
||||||
<Font size="10.0" />
|
|
||||||
</font>
|
|
||||||
</Button>
|
|
||||||
</children>
|
|
||||||
</HBox>
|
|
||||||
<Label layoutX="73.0" layoutY="55.0" text="Attaquer un joueur !" />
|
|
||||||
</children>
|
|
||||||
</Pane>
|
|
13
src/ihm/ressources/Jouer_tour(3a)attaquer.fxml
Normal file
13
src/ihm/ressources/Jouer_tour(3a)attaquer.fxml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<?import javafx.scene.control.Button?>
|
||||||
|
<?import javafx.scene.control.Label?>
|
||||||
|
<?import javafx.scene.layout.Pane?>
|
||||||
|
|
||||||
|
<Pane fx:id="rootPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.JouerSonTour3Controller">
|
||||||
|
<children>
|
||||||
|
<Button fx:id="nonButton" layoutX="136.0" layoutY="128.0" mnemonicParsing="false" text="Ne pas attaquer" />
|
||||||
|
<Label fx:id="titre" layoutX="40.0" layoutY="31.0" text="Voulez-vous attaquer un joueur ?" />
|
||||||
|
<Button fx:id="ouiButton" layoutX="21.0" layoutY="128.0" mnemonicParsing="false" text="Attaquer !" />
|
||||||
|
</children>
|
||||||
|
</Pane>
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<AnchorPane fx:id="root" minHeight="0.0" minWidth="0.0" prefHeight="129.0" prefWidth="201.0" style="-fx-background-color: white;" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.ChoisirBoolean">
|
<AnchorPane fx:id="root" minHeight="0.0" minWidth="0.0" prefHeight="129.0" prefWidth="201.0" style="-fx-background-color: white;" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.ChoisirBoolean">
|
||||||
<children>
|
<children>
|
||||||
<Label layoutX="8.0" layoutY="-11.0" prefHeight="26.0" prefWidth="128.0" text="Voulez vous faire cette action ?" AnchorPane.bottomAnchor="77.0" AnchorPane.leftAnchor="8.0" AnchorPane.rightAnchor="7.0" AnchorPane.topAnchor="-11.0">
|
<Label fx:id="titre" layoutX="8.0" layoutY="-11.0" prefHeight="26.0" prefWidth="128.0" text="Voulez vous faire cette action ?" AnchorPane.bottomAnchor="77.0" AnchorPane.leftAnchor="8.0" AnchorPane.rightAnchor="7.0" AnchorPane.topAnchor="-11.0">
|
||||||
<font>
|
<font>
|
||||||
<Font size="13.0" />
|
<Font size="13.0" />
|
||||||
</font>
|
</font>
|
||||||
|
85
src/ihm/ressources/choisirJoueur.fxml
Normal file
85
src/ihm/ressources/choisirJoueur.fxml
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<?import javafx.geometry.Insets?>
|
||||||
|
<?import javafx.scene.control.Button?>
|
||||||
|
<?import javafx.scene.control.Label?>
|
||||||
|
<?import javafx.scene.layout.AnchorPane?>
|
||||||
|
<?import javafx.scene.layout.HBox?>
|
||||||
|
<?import javafx.scene.layout.Pane?>
|
||||||
|
<?import javafx.scene.text.Font?>
|
||||||
|
|
||||||
|
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ihm.controller.ChoisirJoueur">
|
||||||
|
<children>
|
||||||
|
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="180.0" prefWidth="255.0" stylesheets="@style/popUp.css">
|
||||||
|
<children>
|
||||||
|
<HBox fx:id="joueurHaut" layoutX="4.0" layoutY="14.0">
|
||||||
|
<children>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur1">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur2">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets left="2.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur3">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets left="2.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur4">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets left="2.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
</children>
|
||||||
|
</HBox>
|
||||||
|
<HBox fx:id="joueurBas" layoutX="4.0" layoutY="139.0">
|
||||||
|
<children>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur5">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets right="2.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur6">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets right="2.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur7">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets right="2.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
<Button mnemonicParsing="false" text="%joueur8">
|
||||||
|
<font>
|
||||||
|
<Font size="10.0" />
|
||||||
|
</font>
|
||||||
|
</Button>
|
||||||
|
</children>
|
||||||
|
</HBox>
|
||||||
|
<Label fx:id="titre" layoutX="50.0" layoutY="82.0" text="Choisir un joueur à attaquer !" />
|
||||||
|
</children>
|
||||||
|
</Pane>
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
Loading…
x
Reference in New Issue
Block a user