Enum Class EffectType
- All Implemented Interfaces:
Serializable
,Comparable<EffectType>
,Constable
EffectType enum, where the effect type is created.
- Since:
- 2023-02-04
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe effect type Arrival.The effect type defeated.The effect type Destroy.The effect type Discard.The effect type Freeze.The effect type Hurt.The effect type Marked.The effect type Other.The effect type setting game.The effect type Strengthen. -
Method Summary
Modifier and TypeMethodDescriptionThe getter of the description.static EffectType
getEffectType
(String description) The getter of the effect type.void
setDescription
(String description) The setter of the description.toString()
The toString method of the effect type.static EffectType
Returns the enum constant of this class with the specified name.static EffectType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRENGTHEN
The effect type Strengthen. -
DISCARD
The effect type Discard. -
SETTINGGAME
The effect type setting game. -
ARRIVAL
The effect type Arrival. -
HURT
The effect type Hurt. -
DEFEATED
The effect type defeated. -
DESTROY
The effect type Destroy. -
FREEZE
The effect type Freeze. -
MARKED
The effect type Marked. -
OTHER
The effect type Other.
-
-
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
-
getDescription
The getter of the description.- Returns:
- The description of the effect type.
-
setDescription
The setter of the description.- Parameters:
description
- The description of the effect type.
-
getEffectType
The getter of the effect type.- Parameters:
description
- The description of the effect type.- Returns:
- The effect type.
-
toString
The toString method of the effect type.- Overrides:
toString
in classEnum<EffectType>
- Returns:
- The description of the effect type.
-