diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/Toolbar.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/Toolbar.java index 978eebe..6d4e543 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/Toolbar.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/Toolbar.java @@ -20,7 +20,6 @@ import com.simsilica.lemur.event.MouseEventControl; import com.simsilica.lemur.event.MouseListener; import com.simsilica.lemur.style.ElementId; import pp.dialog.Dialog; -import pp.monopoly.client.BoardAppState; import pp.monopoly.client.MonopolyApp; import pp.monopoly.client.gui.popups.Bankrupt; import pp.monopoly.game.server.Player; @@ -197,16 +196,6 @@ public class Toolbar extends Dialog implements GameEventListener { menuContainer.setBackground(null); } - /** - * Returns the color of the current player. - * - * @return The color of the current player. - */ - private ColorRGBA getCurrentPlayerColor() { - Player currentPlayer = playerHandler.getPlayerById(app.getId()); - return Player.getColor(currentPlayer.getId()).getColor(); - } - /** * Creates the dice display section of the toolbar interface. * @@ -291,12 +280,6 @@ public class Toolbar extends Dialog implements GameEventListener { startDiceAnimation(); app.getGameLogic().send(new RollDice()); app.getGameLogic().playSound(Sound.BUTTON); - - // Animation in BoardAppState starten - BoardAppState boardAppState = app.getStateManager().getState(BoardAppState.class); - if (boardAppState != null) { - boardAppState.onRollDicePressed(); // Animation starten - } }); } @@ -361,18 +344,6 @@ public class Toolbar extends Dialog implements GameEventListener { return endTurnButton; } - /** - * Creates a background with the specified color. - * - * @param color The color of the background. - * @return The background component. - */ - private QuadBackgroundComponent createButtonBackground(ColorRGBA color) { - QuadBackgroundComponent background = new QuadBackgroundComponent(color); - Texture gradient = app.getAssetManager().loadTexture("Textures/gradient.png"); - if (gradient != null) background.setTexture(gradient); - return background; - } /** * Handles the end turn event.