Enum Class AssistantCard

java.lang.Object
java.lang.Enum<AssistantCard>
it.polimi.ingsw.eriantys.model.AssistantCard
All Implemented Interfaces:
Serializable, Comparable<AssistantCard>, Constable

public enum AssistantCard extends Enum<AssistantCard>
An enumeration which defines the assistant cards inside a Player's deck.
  • Enum Constant Details

  • Method Details

    • values

      public static AssistantCard[] 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 AssistantCard 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
    • value

      public int value()
      The number graphically written in the top-left corner of the card.
      Returns:
      the value of the given AssistantCard object
    • movement

      public int movement()
      The number graphically written in the top-right corner of the card.
      Returns:
      the quantity of movements that Mother Nature may perform by playing the given AssistantCard object