// Public class that stores all the global static options public class Options { // 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; 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; } // No constructing >:( private Options() { } }