Merge remote-tracking branch 'origin/master'

This commit is contained in:
Katchan 2021-12-07 15:56:03 +01:00
commit db2e2e1f7a
2 changed files with 4 additions and 3 deletions

View File

@ -31,11 +31,12 @@ public class ButtonListener extends AbstractModelListening {
public void updateModel(Object event) {
Player player = game.getCurrentPlayer();
game.play();
/*
Alert alert = new Alert(Alert.AlertType.INFORMATION);
alert.setTitle("Un joueur ordinateur a joué");
alert.setHeaderText("Le joueur ordinateur numéro" + player.getId() + " a joué");
alert.setContentText("Il a joué l'action: " + game.getSelectedAction());
alert.setContentText("Il a joué l'action: " + game.getSelectedAction());*/
App.viewManager.updateView();
alert.showAndWait();
//alert.showAndWait();
}
}

View File

@ -105,7 +105,7 @@ public class Window extends AbstractView {
StackPane subSp = new StackPane();
String s = "Joueur " + (playerNumber+1) + "\n" +
"Energie : " + game.getPlayers().get(playerNumber).getEnergy() + "\n" +
"Arme : " + game.getPlayers().get(playerNumber).getWeapon() + "\n";
"Arme : " + game.getPlayers().get(playerNumber).getWeapon().getClass().getSimpleName() + "\n";
Text t = new Text(s);
Rectangle r = new Rectangle();
r.setWidth(500);