mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2024-11-25 03:29:44 +01:00
effect when opponent miss the ship
This commit is contained in:
parent
68beedcf29
commit
38979bdf86
@ -1,7 +1,8 @@
|
|||||||
|
/*
|
||||||
package pp.battleship.game.client;
|
package pp.battleship.game.client;
|
||||||
import com.simsilica.lemur.Slider;
|
|
||||||
|
|
||||||
public class VolumeSlider extends Slider{
|
|
||||||
|
public class VolumeSlider extends Slider {
|
||||||
|
|
||||||
private final GameMusic music;
|
private final GameMusic music;
|
||||||
|
|
||||||
@ -17,10 +18,8 @@ public class VolumeSlider extends Slider{
|
|||||||
public void update() {
|
public void update() {
|
||||||
if (vol != getModel().getPercent()) {
|
if (vol != getModel().getPercent()) {
|
||||||
vol = getModel().getPercent();
|
vol = getModel().getPercent();
|
||||||
music.setVolume( (float) vol);
|
music.setVolume((float) vol);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
*/
|
Loading…
Reference in New Issue
Block a user