package de.steamwar.fightsystem; import java.util.Collections; import java.util.EnumSet; import java.util.Set; public enum ArenaMode { NORMAL, RANKED, EVENT, TEST, CHECK, PREPARE; public static final Set All = Collections.unmodifiableSet(EnumSet.allOf(ArenaMode.class)); public static final Set Normal = Collections.unmodifiableSet(EnumSet.of(NORMAL)); public static final Set Check = Collections.unmodifiableSet(EnumSet.of(CHECK)); public static final Set Event = Collections.unmodifiableSet(EnumSet.of(EVENT)); public static final Set Test = Collections.unmodifiableSet(EnumSet.of(TEST, CHECK)); public static final Set Ranked = Collections.unmodifiableSet(EnumSet.of(RANKED)); public static final Set Prepare = Collections.unmodifiableSet(EnumSet.of(PREPARE)); public static final Set AntiTest = Collections.unmodifiableSet(EnumSet.complementOf(EnumSet.of(TEST, CHECK))); public static final Set AntiEvent = Collections.unmodifiableSet(EnumSet.complementOf(EnumSet.of(EVENT))); public static final Set AntiPrepare = Collections.unmodifiableSet(EnumSet.complementOf(EnumSet.of(PREPARE))); public static final Set VariableTeams = Collections.unmodifiableSet(EnumSet.complementOf(EnumSet.of(RANKED, EVENT))); public static final Set RankedEvent = Collections.unmodifiableSet(EnumSet.of(RANKED, EVENT)); public static final Set Restartable = Collections.unmodifiableSet(EnumSet.of(NORMAL, RANKED)); }