Class Gatherer

All Implemented Interfaces:
Serializable, Cloneable

public class Gatherer extends Character
Represents a Gatherer character card.

A Gatherer is a specific type of Character initialized with CharacterType.GATHERER.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Gatherer(int Era)
    Creates a Gatherer character card with the specified era.
    Gatherer(int Era, int nMin)
    Creates a Gatherer character card with the specified era and minimum number of players.
    Gatherer(String idIMG, int Era)
    Creates a Gatherer character card with the specified image id and era.
    Gatherer(String idIMG, int Era, int nMin)
    Creates a Gatherer character card with the specified image id, era and minimum number of players.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates and returns a copy of this Gatherer card.
    void
    insert(Player player)
    Inserts this Gatherer card into the specified player's Gatherer collection and applies any building effects triggered by character set completion.
    Returns the representation shown on the board (offer track cards).
    Returns the compact representation shown in the player hand panel.

    Methods inherited from class Character

    getType

    Methods inherited from class TribeCard

    getNMin, isEventCard

    Methods inherited from class PlayableCard

    getEra, getIdIMG

    Methods inherited from class Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Gatherer

      public Gatherer(int Era)
      Creates a Gatherer character card with the specified era.
      Parameters:
      Era - the era of the Gatherer card.
    • Gatherer

      public Gatherer(int Era, int nMin)
      Creates a Gatherer character card with the specified era and minimum number of players.
      Parameters:
      Era - the era of the Gatherer card.
      nMin - the minimum number of players required for the card.
    • Gatherer

      public Gatherer(String idIMG, int Era)
      Creates a Gatherer character card with the specified image id and era.
      Parameters:
      idIMG - the image identifier of the Gatherer card.
      Era - the era of the Gatherer card.
    • Gatherer

      public Gatherer(String idIMG, int Era, int nMin)
      Creates a Gatherer character card with the specified image id, era and minimum number of players.
      Parameters:
      idIMG - the image identifier of the Gatherer card.
      Era - the era of the Gatherer card.
      nMin - the minimum number of players required for the card.
  • Method Details

    • clone

      public Character clone()
      Creates and returns a copy of this Gatherer card.
      Specified by:
      clone in class Character
      Returns:
      a clone of this Gatherer card.
    • insert

      public void insert(Player player)
      Inserts this Gatherer card into the specified player's Gatherer collection and applies any building effects triggered by character set completion.
      Specified by:
      insert in class Character
      Parameters:
      player - the player who receives the card.
    • toStringPlayer

      public String toStringPlayer()
      Description copied from class: PlayableCard
      Returns the compact representation shown in the player hand panel.
      Specified by:
      toStringPlayer in class PlayableCard
      Returns:
      the player-hand string representation of this card.
    • toStringBoard

      public String toStringBoard()
      Description copied from class: PlayableCard
      Returns the representation shown on the board (offer track cards).
      Specified by:
      toStringBoard in class PlayableCard
      Returns:
      the board string representation of this card.