2023-05-24 17:34:20 -07:00
|
|
|
// Public class that stores all the global static options
|
|
|
|
public class Options {
|
2023-05-25 19:44:14 -07:00
|
|
|
// Directory with all the skins files
|
|
|
|
public static final String SKINS_DIR = "Skins/";
|
|
|
|
|
2023-05-24 17:34:20 -07:00
|
|
|
// Whether or not sound is enabled
|
|
|
|
private static boolean sound = false;
|
|
|
|
// Whether or not to force starting at 0
|
|
|
|
private static boolean protectedStart = false;
|
|
|
|
// The difficulty
|
|
|
|
private static Difficulty difficulty = Difficulty.INTERMEDIATE;
|
2023-05-25 19:44:14 -07:00
|
|
|
// The skin
|
|
|
|
private static String skinName = "winxpskin.bmp";
|
2023-05-24 17:34:20 -07:00
|
|
|
|
|
|
|
public static boolean hasSound() {
|
|
|
|
return sound;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void toggleSound() {
|
|
|
|
sound = !sound;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static boolean isProtectedStart() {
|
|
|
|
return protectedStart;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void toggleProtectedStart() {
|
|
|
|
protectedStart = !protectedStart;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static Difficulty getDifficulty() {
|
|
|
|
return difficulty;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void setDifficulty(Difficulty difficulty) {
|
|
|
|
Options.difficulty = difficulty;
|
|
|
|
}
|
|
|
|
|
2023-05-25 19:44:14 -07:00
|
|
|
public static String getSkinName() {
|
|
|
|
return skinName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void setSkinName(String skinName) {
|
|
|
|
Options.skinName = skinName;
|
|
|
|
}
|
|
|
|
|
2023-05-24 17:34:20 -07:00
|
|
|
// No constructing >:(
|
|
|
|
private Options() {
|
|
|
|
}
|
|
|
|
}
|