java.lang.Object
it.polimi.ingsw.eriantys.model.characters.BaseCharacterCard
it.polimi.ingsw.eriantys.model.characters.Farmer
All Implemented Interfaces:
CharacterCard

public class Farmer extends BaseCharacterCard
Represents the "farmer" character card and the corresponding effect.
See Also:
  • Constructor Details

  • Method Details

    • applyEffect

      public void applyEffect(List<Color> sourceColors, List<Color> destinationColors, Color targetColor, IslandGroup targetIsland)
      Description copied from interface: CharacterCard
      Activates this card and applies the effect. If it is the first time also increases the cost for next activations. Only some arguments might be used for a specific character card effect.
      Parameters:
      sourceColors - a list of student colors selected from the source
      destinationColors - a list of student colors selected from the destination
      targetColor - the color selected for the effect
      targetIsland - the island selected for the effect
    • cancelEffect

      public void cancelEffect()
      Description copied from interface: CharacterCard
      Resets the effects of this card that are not intended to persist after the activation turn. It should be called at the end of the turn.
      Specified by:
      cancelEffect in interface CharacterCard
      Overrides:
      cancelEffect in class BaseCharacterCard