reglé erreur
This commit is contained in:
parent
52ae8c66d3
commit
75e611f2b1
@ -60,12 +60,11 @@ public class ChoisirEquipement implements Initializable{
|
||||
for (CarteEquipement ce : equipements) {
|
||||
|
||||
ImageView iv = new ImageView(PlateauController.getImageCarte(ce));
|
||||
iv.setFitHeight(100);
|
||||
iv.setFitHeight(100);
|
||||
iv.setPreserveRatio(true);
|
||||
|
||||
hbox.getChildren().add(iv);
|
||||
|
||||
iv.fitHeightProperty().bind(hbox.heightProperty());
|
||||
//iv.fitWidthProperty().bind(scrollpane.widthProperty());
|
||||
iv.setPreserveRatio(true);
|
||||
iv.setOnMouseClicked(e -> {
|
||||
equipementSelected = ce;
|
||||
GestionnaireJeu.notifyPlateau();
|
||||
|
@ -44,7 +44,6 @@ public class MenuController implements Initializable{
|
||||
final ResourceBundle bundle = ResourceBundle.getBundle("domaine.properties.langue", ParametreController.LaLangue);
|
||||
final FXMLLoader fxmlLoader = new FXMLLoader(fxmlURL, bundle);
|
||||
AnchorPane pane = fxmlLoader.load();
|
||||
rootPane.getChildren().setAll(pane);
|
||||
Scene scene = new Scene(pane);
|
||||
Stage appStage = (Stage) ((Node) mouseEvent.getSource()).getScene().getWindow();
|
||||
appStage.setScene(scene);
|
||||
|
@ -450,6 +450,7 @@ public void afficherEffet(Joueur j) throws IOException {
|
||||
|
||||
public void updateVieJoueur(Joueur joueur, int damage) {
|
||||
JoueurIHM jIHM = getJoueurIHM(joueur);
|
||||
jIHM.getZoneJoueur().getChildren().setAll();
|
||||
jIHM.deplacerPionVie(damage);
|
||||
}
|
||||
|
||||
@ -513,13 +514,11 @@ public void afficherEffet(Joueur j) throws IOException {
|
||||
}
|
||||
});
|
||||
if(j instanceof JoueurVirtuel) {
|
||||
System.out.println("here");
|
||||
Timeline timeline = new Timeline(new KeyFrame(Duration.millis(3000), ae -> {
|
||||
pu.getStage().hide();
|
||||
}));
|
||||
timeline.play();
|
||||
}
|
||||
System.out.println("j is instance of "+j);
|
||||
pu.display();
|
||||
|
||||
}
|
||||
|
@ -32,20 +32,20 @@ public class ControleurIA {
|
||||
int diff = jIA.getDifficulte();
|
||||
switch (diff) {
|
||||
case 1:
|
||||
if (res < 25)
|
||||
if (res < 60)
|
||||
return true;
|
||||
break;
|
||||
case 2:
|
||||
if (res < 50)
|
||||
if (res < 80)
|
||||
return true;
|
||||
break;
|
||||
case 3:
|
||||
if (res < 75)
|
||||
if (res < 100)
|
||||
return true;
|
||||
break;
|
||||
default:
|
||||
}
|
||||
} else if (res < 10)
|
||||
} else if (res < 30)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
@ -315,7 +315,6 @@ public class Plateau extends Thread{
|
||||
return this.getStat(PARTIE_FINIE) == 1;
|
||||
}
|
||||
|
||||
|
||||
public void deplacer(Joueur currentJoueur) {
|
||||
|
||||
boolean attributed = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user