Enum Class MultiMatchStatus
- All Implemented Interfaces:
Serializable,Comparable<MultiMatchStatus>,Constable
Indicates the current status of the
MultiMatch.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe match is closed to new players and will not accept new players, even if somebody leaves.The match has ended and will be deleted shortly, based on the configuration of the match.The match is full and no longer accepting new players.The match is open and accepting new players. -
Method Summary
Modifier and TypeMethodDescriptionstatic MultiMatchStatusReturns the enum constant of this class with the specified name.static MultiMatchStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPEN
The match is open and accepting new players. Wen the match hits the maximum number of players defined in the configuration it will automatically transition to FULL. -
FULL
The match is full and no longer accepting new players. But may be reopened if a player leaves. If players leaves while the match is FULL the match will automatically transition back to OPEN. -
CLOSED
The match is closed to new players and will not accept new players, even if somebody leaves. The match may be reopened, though explicit actions, but it will not automatically transition back to OPEN if a player leaves thereby effectively locking new players out regardless of player departures. -
ENDED
The match has ended and will be deleted shortly, based on the configuration of the match. No new players may join, nor the match reopened. Matches in this state will linger for a brief period of time for the sake of reporting or end of game victory celebration. Code must always consider matches in this state as effectively deleted.
-
-
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
-