Package fr.royalpha.sheepwars.api
Enum SheepWarsKit.KitResult
- java.lang.Object
-
- java.lang.Enum<SheepWarsKit.KitResult>
-
- fr.royalpha.sheepwars.api.SheepWarsKit.KitResult
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SheepWarsKit.KitResult>
,java.lang.constant.Constable
- Enclosing class:
- SheepWarsKit
public static enum SheepWarsKit.KitResult extends java.lang.Enum<SheepWarsKit.KitResult>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALREADY_OWNED
FAILURE_NEXT_LEVEL_NOT_PURCHASED
FAILURE_NEXT_LEVEL_TOO_EXPENSIVE
FAILURE_NOT_ALLOWED
FAILURE_NOT_ENOUGH_WINS
-
Constructor Summary
Constructors Modifier Constructor Description private
KitResult()
-
Method Summary
Modifier and Type Method Description static SheepWarsKit.KitResult
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SheepWarsKit.KitResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALREADY_OWNED
public static final SheepWarsKit.KitResult ALREADY_OWNED
-
FAILURE_NEXT_LEVEL_NOT_PURCHASED
public static final SheepWarsKit.KitResult FAILURE_NEXT_LEVEL_NOT_PURCHASED
-
FAILURE_NEXT_LEVEL_TOO_EXPENSIVE
public static final SheepWarsKit.KitResult FAILURE_NEXT_LEVEL_TOO_EXPENSIVE
-
FAILURE_NOT_ALLOWED
public static final SheepWarsKit.KitResult FAILURE_NOT_ALLOWED
-
FAILURE_NOT_ENOUGH_WINS
public static final SheepWarsKit.KitResult FAILURE_NOT_ENOUGH_WINS
-
-
Method Detail
-
values
public static SheepWarsKit.KitResult[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SheepWarsKit.KitResult valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-