Enum Class GuardianStar

java.lang.Object
java.lang.Enum<GuardianStar>
moe.maika.ygofm.gamedata.GuardianStar
All Implemented Interfaces:
Serializable, Comparable<GuardianStar>, Constable

public enum GuardianStar extends Enum<GuardianStar>
The Guardian Stars in Forbidden Memories. Each Guardian Star has a strength and a weakness.
  • Enum Constant Details

  • Method Details

    • values

      public static GuardianStar[] 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

      public static GuardianStar valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getStrength

      public GuardianStar getStrength()
      Returns the Guardian Star that this Guardian Star is strong against.
      Returns:
      the Guardian Star that this Guardian Star is strong against
    • getWeakness

      public GuardianStar getWeakness()
      Returns the Guardian Star that this Guardian Star is weak against.
      Returns:
      the Guardian Star that this Guardian Star is weak against
    • isStrongAgainst

      public boolean isStrongAgainst(GuardianStar opponent)
      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

      public boolean isWeakAgainst(GuardianStar opponent)
      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

      public String toString()
      Overrides:
      toString in class Enum<GuardianStar>