From 38979bdf86db30bebd8614ebd17a1019704cba7a Mon Sep 17 00:00:00 2001 From: Tamino Mueller Date: Mon, 14 Oct 2024 08:15:02 +0200 Subject: [PATCH] effect when opponent miss the ship --- .../java/pp/battleship/game/client/VolumeSlider.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Projekte/battleship/model/src/main/java/pp/battleship/game/client/VolumeSlider.java b/Projekte/battleship/model/src/main/java/pp/battleship/game/client/VolumeSlider.java index 7b80471..70abc71 100644 --- a/Projekte/battleship/model/src/main/java/pp/battleship/game/client/VolumeSlider.java +++ b/Projekte/battleship/model/src/main/java/pp/battleship/game/client/VolumeSlider.java @@ -1,7 +1,8 @@ +/* package pp.battleship.game.client; -import com.simsilica.lemur.Slider; -public class VolumeSlider extends Slider{ + +public class VolumeSlider extends Slider { private final GameMusic music; @@ -17,10 +18,8 @@ public class VolumeSlider extends Slider{ public void update() { if (vol != getModel().getPercent()) { vol = getModel().getPercent(); - music.setVolume( (float) vol); + music.setVolume((float) vol); } } - -} - } +*/ \ No newline at end of file