Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
db2e2e1f7a
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user