Class Artist

All Implemented Interfaces:
Serializable, Cloneable

public class Artist extends Character
Represents an Artist character card.

An Artist is a specific type of Character initialized with CharacterType.ARTIST.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Artist(int Era)
    Creates an Artist character card with the specified era.
    Artist(int Era, int nMin)
    Creates an Artist character card with the specified Era and minimum number of players required to play it.
    Artist(String idIMG, int Era)
    Creates an Artist character card with the specified image id and era.
    Artist(String idIMG, int Era, int nMin)
    Creates an Artist character card with the specified image id, era and minimum number of players required to play it.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates and returns a copy of this Artist card.
    void
    insert(Player player)
    Inserts this Artist card into the specified player's Artist 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

    • Artist

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

      public Artist(int Era, int nMin)
      Creates an Artist character card with the specified Era and minimum number of players required to play it.
      Parameters:
      Era - the era of the Artist card.
      nMin - the minimum number of players required for the card.
    • Artist

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

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

    • clone

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

      public void insert(Player player)
      Inserts this Artist card into the specified player's Artist 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.