Enum Class CastType

java.lang.Object
java.lang.Enum<CastType>
de.gurkenlabs.litiengine.abilities.CastType
All Implemented Interfaces:
Serializable, Comparable<CastType>, Constable

public enum CastType extends Enum<CastType>
The CastType enum represents the types of casting an ability in the game. It can be either INSTANT or ONCONFIRM.
  • Enum Constant Details

    • INSTANT

      public static final CastType INSTANT
      Represents an ability that is cast instantly.
    • ONCONFIRM

      public static final CastType ONCONFIRM
      Represents an ability that is cast upon confirmation.
  • Method Details

    • values

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