Package edu.ntnu.idi.idatt.model.token
Enum Class LudoToken.TokenStatus
- All Implemented Interfaces:
Serializable
,Comparable<LudoToken.TokenStatus>
,Constable
- Enclosing class:
LudoToken
Enum representing the possible statuses of a
LudoToken
.
NOT_RELEASED
: The token is in the player's start area, not yet on the main track.RELEASED
: The token is on the main track or a player's finish path.FINISHED
: The token has reached the final home position.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic LudoToken.TokenStatus
Returns the enum constant of this class with the specified name.static LudoToken.TokenStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_RELEASED
-
RELEASED
-
FINISHED
-
-
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
-