reglé erreur

This commit is contained in:
Kruss
2020-05-14 11:11:31 +02:00
parent 52ae8c66d3
commit 75e611f2b1
5 changed files with 11 additions and 15 deletions

View File

@@ -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();
}
@@ -542,7 +541,7 @@ public void afficherEffet(Joueur j) throws IOException {
VBox v= (VBox)a.getChildren().get(0);
AnchorPane b=(AnchorPane)s.getItems().get(1);
ImageView i= (ImageView)b.getChildren().get(0);
v.setRotate(180);
i.setRotate(180);
s.setRotate(180);