diff --git a/client/src/main/java/fr/lnl/game/client/view/Cell.java b/client/src/main/java/fr/lnl/game/client/view/Cell.java index 7cb48e5..7e3c3d6 100644 --- a/client/src/main/java/fr/lnl/game/client/view/Cell.java +++ b/client/src/main/java/fr/lnl/game/client/view/Cell.java @@ -82,4 +82,7 @@ public class Cell extends Rectangle { return sp; } + public static Image getPlayerImage() { + return PLAYER_IMAGE; + } } diff --git a/client/src/main/java/fr/lnl/game/client/view/Window.java b/client/src/main/java/fr/lnl/game/client/view/Window.java index 5a19a77..8a8c12f 100644 --- a/client/src/main/java/fr/lnl/game/client/view/Window.java +++ b/client/src/main/java/fr/lnl/game/client/view/Window.java @@ -47,6 +47,7 @@ public class Window extends AbstractView { Scene scene = new Scene(createContent()); stage.setScene(scene); stage.setTitle("Game"); + stage.getIcons().add(Cell.getPlayerImage()); stage.setResizable(false); stage.sizeToScene(); stage.show();