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