Enum Class EffectType

java.lang.Object
java.lang.Enum<EffectType>
it.polimi.ingsw.gc14.Model.Cards.Building.EffectType
All Implemented Interfaces:
Serializable, Comparable<EffectType>, Constable

public enum EffectType extends Enum<EffectType>
Represents the possible effect types of building cards.
  • Enum Constant Details

    • FINAL

      public static final EffectType FINAL
      Effect applied during the final scoring phase.
    • CARD_SET

      public static final EffectType CARD_SET
      Effect based on collecting a specific set of cards.
    • INVENTOR_PAIR

      public static final EffectType INVENTOR_PAIR
      Effect based on pairs of Inventor cards.
    • ON_EVENT

      public static final EffectType ON_EVENT
      Effect triggered when an event card is resolved.
    • ON_END_TURN

      public static final EffectType ON_END_TURN
      Effect triggered at the end of a player's turn.
    • ON_ROUND_END

      public static final EffectType ON_ROUND_END
      Effect triggered at the end of a round.
  • Constructor Details

    • EffectType

      private EffectType()
  • Method Details

    • values

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