Un peu de ménage dans le git
This commit is contained in:
14
src/fr/monkhanny/dorfromantik/enums/Musics.java
Normal file
14
src/fr/monkhanny/dorfromantik/enums/Musics.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package fr.monkhanny.dorfromantik.enums;
|
||||
|
||||
public enum Musics {
|
||||
MAIN_MENU_MUSIC;
|
||||
|
||||
public String getSoundsPath() {
|
||||
switch (this) {
|
||||
case MAIN_MENU_MUSIC:
|
||||
return "./ressources/sounds/Music/mainMenuMusic.wav";
|
||||
default:
|
||||
throw new IllegalArgumentException("Unexpected value: " + this);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user