adaptation interfaces boolean
This commit is contained in:
@@ -22,15 +22,12 @@ public class ChoisirBoolean implements Initializable {
|
||||
|
||||
this.result = true;
|
||||
GestionnaireJeu.notifyPlateau();
|
||||
|
||||
});
|
||||
|
||||
nonButton.setOnAction(x -> {
|
||||
|
||||
this.result = false;
|
||||
GestionnaireJeu.notifyPlateau();
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
public boolean getResult() {
|
||||
|
33
src/ihm/controller/PiocherVisionController.java
Normal file
33
src/ihm/controller/PiocherVisionController.java
Normal file
@@ -0,0 +1,33 @@
|
||||
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 PiocherVisionController implements Initializable{
|
||||
@FXML private Pane rootPane;
|
||||
@Override
|
||||
public void initialize(URL arg0, ResourceBundle arg1) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
@FXML
|
||||
public void voirCarte(MouseEvent mouseEvent) throws IOException{
|
||||
|
||||
final URL fxmlURL = getClass().getResource("/ihm/ressources/jouer_Son_Tour_donner_vision.fxml");
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", Locale.FRANCE);
|
||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||
Pane pane = fxmlLoader.load();
|
||||
|
||||
rootPane.getChildren().setAll(pane);
|
||||
|
||||
}
|
||||
|
||||
}
|
@@ -264,7 +264,6 @@ public class PlateauController implements Initializable {
|
||||
public void rollDice(Joueur joueur, int typeDice, int[] rolls) {
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void afficherChoisir(Joueur j) throws IOException {
|
||||
|
Reference in New Issue
Block a user