From b2b3bc23bf9a75c7479a6b0b0db5a1430f6a5799 Mon Sep 17 00:00:00 2001 From: Lukas Bauer <157071544+Heady045@users.noreply.github.com> Date: Thu, 3 Oct 2024 19:10:36 +0200 Subject: [PATCH] Aufgabe 10. added class BackgroundMusic edited BattleshipApp, GameSound, Menu implemented a Slider for the Gui in order to change the Volume Quality of Life implemented feature to Safe the Sound settings to keep them even after shutting down the game implemented feature to mute Sounds/effects implemented feature to mute Music --- .../src/main/java/pp/battleship/client/BackgroundMusic.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Projekte/battleship/client/src/main/java/pp/battleship/client/BackgroundMusic.java b/Projekte/battleship/client/src/main/java/pp/battleship/client/BackgroundMusic.java index adf4b576..cdcc1629 100644 --- a/Projekte/battleship/client/src/main/java/pp/battleship/client/BackgroundMusic.java +++ b/Projekte/battleship/client/src/main/java/pp/battleship/client/BackgroundMusic.java @@ -19,8 +19,8 @@ public class BackgroundMusic { /** * Constuctor for the BackgroundMusic - * @param app - * @param musicFilePath + * @param app for synchronising and saving data with the application + * @param musicFilePath the filepath for the BackgroundMusic */ public BackgroundMusic(Application app, String musicFilePath) { this.volume = prefs.getFloat(VOLUME_PREF, 1.0f); @@ -69,7 +69,7 @@ public void toogleMusic() { /** * Setter for the Volume also safes the volume from the previous session - * @param volume + * @param volume variable for the volume of the BackgroundMusic */ public void setVolume(float volume) { this.volume = volume;