Package moe.maika.ygofm.gamedata
Enum Class GuardianStar
- All Implemented Interfaces:
Serializable
,Comparable<GuardianStar>
,Constable
The Guardian Stars in Forbidden Memories. Each Guardian Star has a strength and a weakness.
-
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 TypeMethodDescriptionReturns the Guardian Star that this Guardian Star is strong against.Returns the Guardian Star that this Guardian Star is weak against.boolean
isStrongAgainst
(GuardianStar opponent) Returns true if this Guardian Star is strong against the given Guardian Star.boolean
isWeakAgainst
(GuardianStar opponent) Returns true if this Guardian Star is weak against the given Guardian Star.toString()
static GuardianStar
Returns the enum constant of this class with the specified name.static GuardianStar[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUN
-
MOON
-
VENUS
-
MERCURY
-
MARS
-
JUPITER
-
SATURN
-
URANUS
-
PLUTO
-
NEPTUNE
-
-
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
-
getStrength
Returns the Guardian Star that this Guardian Star is strong against.- Returns:
- the Guardian Star that this Guardian Star is strong against
-
getWeakness
Returns the Guardian Star that this Guardian Star is weak against.- Returns:
- the Guardian Star that this Guardian Star is weak against
-
isStrongAgainst
Returns true if this Guardian Star is strong against the given Guardian Star.- Parameters:
opponent
- the opposing Guardian Star- Returns:
- true if this Guardian Star is strong against the given Guardian Star
-
isWeakAgainst
Returns true if this Guardian Star is weak against the given Guardian Star.- Parameters:
opponent
- the opposing Guardian Star- Returns:
- true if this Guardian Star is weak against the given Guardian Star
-
toString
- Overrides:
toString
in classEnum<GuardianStar>
-