Enum Class ScenarioSelectionMode
- All Implemented Interfaces:
Serializable,Comparable<ScenarioSelectionMode>,Constable
How a match decides which scenarios it runs.
The mode is resolved per match through the normal override chain, so one arena can vote while another runs a fixed set.
- Since:
- 1.6.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn administrator picked the scenarios, globally or per arena.Zentrix draws a configurable number of scenarios at random from the allowed pool when the match is created.The scenario system is switched off for the match.Players vote in the waiting lobby. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScenarioSelectionModeReturns the enum constant of this class with the specified name.static ScenarioSelectionMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADMIN_SET
An administrator picked the scenarios, globally or per arena. The set is known before the lobby even opens. -
PLAYER_VOTING
Players vote in the waiting lobby. The match cannot start until the vote is resolved and the winners are locked in. -
AUTOMATIC
Zentrix draws a configurable number of scenarios at random from the allowed pool when the match is created. -
DISABLED
The scenario system is switched off for the match. No set is drawn, no vote is opened and no scenario activates, whatever the rest of the configuration says.Resolved through the same override chain as every other mode, so switching the global mode off still leaves an arena free to run scenarios through its own enabled override.
- Since:
- 1.6.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-