Package com.minigameworld.frames.helpers
Enum Class MiniGameSetting.GameFinishCondition
java.lang.Object
java.lang.Enum<MiniGameSetting.GameFinishCondition>
com.minigameworld.frames.helpers.MiniGameSetting.GameFinishCondition
- All Implemented Interfaces:
Serializable
,Comparable<MiniGameSetting.GameFinishCondition>
,Constable
- Enclosing class:
- MiniGameSetting
public static enum MiniGameSetting.GameFinishCondition
extends Enum<MiniGameSetting.GameFinishCondition>
Check game finish condition
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFinish minigame if left players are less thanMiniGameSetting.gameFinishConditionPlayerCount
Contains also dead(not live) playersFinish minigame if live player are less thanMiniGameSetting.gameFinishConditionPlayerCount
Finish minigame if live players are more thanMiniGameSetting.gameFinishConditionPlayerCount
Check nothing
Have to process in minigame with overridingMiniGame.handleException(com.minigameworld.events.minigame.MiniGameExceptionEvent)
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static MiniGameSetting.GameFinishCondition[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Check nothing
Have to process in minigame with overridingMiniGame.handleException(com.minigameworld.events.minigame.MiniGameExceptionEvent)
-
LESS_THAN_PLAYERS_LIVE
Finish minigame if live player are less thanMiniGameSetting.gameFinishConditionPlayerCount
-
MORE_THAN_PLAYERS_LIVE
Finish minigame if live players are more thanMiniGameSetting.gameFinishConditionPlayerCount
-
LESS_THAN_PLAYERS_LEFT
Finish minigame if left players are less thanMiniGameSetting.gameFinishConditionPlayerCount
Contains also dead(not live) players
-
-
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
-