Enum Class Card

java.lang.Object
java.lang.Enum<Card>
org.bitsquad.warzone.card.Card
All Implemented Interfaces:
Serializable, Comparable<Card>, Constable

public enum Card extends Enum<Card>
Card enum, represents the types of cards in the game
  • Enum Constant Details

    • BombCard

      public static final Card BombCard
    • BlockadeCard

      public static final Card BlockadeCard
    • AirliftCard

      public static final Card AirliftCard
    • DiplomacyCard

      public static final Card DiplomacyCard
  • Method Details

    • values

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