reglé erreur
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user