Class Shaman

All Implemented Interfaces:
Serializable, Cloneable

public class Shaman extends Character
Represents a Shaman character card.

A Shaman is a specific type of Character initialized with CharacterType.SHAMAN.

See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The number of star Icons the card possesses.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Creates and returns a copy of this Shaman card.
    int
    Returns the icon value of this Shaman card.
    void
    insert(Player player)
    Inserts this Shaman card into the specified player's Shaman 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
  • Field Details

    • icon

      private final int icon
      The number of star Icons the card possesses. During the Shamanic Ritual Event, having the majority of these icons provides Prestige Points; having the minority, on the other hand, results in losing Prestige Points.
  • Constructor Details

    • Shaman

      public Shaman(int Era, int icon)
      Creates a Shaman character card with the specified era and icon value.
      Parameters:
      Era - the era of the Shaman card.
      icon - the icon value of the Shaman card.
    • Shaman

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

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

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

    • getIcon

      public int getIcon()
      Returns the icon value of this Shaman card.
      Returns:
      the icon value of this Shaman 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.
    • clone

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

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