Class ShamanicRitual

All Implemented Interfaces:
Serializable

public class ShamanicRitual extends EventCard
When activated, rewards the player with the most shaman icons and penalizes the one with the fewest.
See Also:
  • Field Details

    • BUILDING5_BONUS_ICONS

      private static final int BUILDING5_BONUS_ICONS
      Bonus shaman icons granted per Building 5 owned during this event.
      See Also:
    • prestigeToAdd

      private final int prestigeToAdd
      Prestige points awarded to the player with the most shaman icons.
    • prestigeToRemove

      private final int prestigeToRemove
      Prestige points removed from the player with the fewest shaman icons.
  • Constructor Details

    • ShamanicRitual

      public ShamanicRitual(int Era, int prestigeToAdd, int prestigeToRemove)
      Creates a new ShamanicRitual event card.
      Parameters:
      Era - the era of the card
      prestigeToAdd - prestige points awarded to the player with the most icons
      prestigeToRemove - prestige points removed from the player with the fewest icons
    • ShamanicRitual

      public ShamanicRitual(String idIMG, int Era, int prestigeToAdd, int prestigeToRemove)
      Creates a new ShamanicRitual event card.
      Parameters:
      idIMG - the image identifier of the ShamanicRitual event card.
      Era - the era of the card.
      prestigeToAdd - prestige points awarded to the player with the most icons.
      prestigeToRemove - prestige points removed from the player with the fewest icons.
  • Method Details

    • getPrestigeToAdd

      int getPrestigeToAdd()
      Returns the prestige points awarded to the player with the most shaman icons.
      Returns:
      prestige points to award.
    • getPrestigeToRemove

      int getPrestigeToRemove()
      Returns the prestige points removed from the player with the fewest shaman icons.
      Returns:
      prestige points to remove.
    • activateEvent

      public void activateEvent(ArrayList<Player> playerList)
      Activates the event card "Shamanic Ritual". The player with the most icons gains the Prestige Points indicated. The player with the fewest icons loses the Prestige Points indicated. In case of a tie, all players gain or lose the Prestige Points indicated. If all players have the same amount of icons, they all gain and lose Prestige Points. Buildings influence: Building 2: if you have the lowest number of icons, you don't lose Prestige Points Building 5: during the Shamanic Ritual, you gain 3 icons Building 6: if you have more icons than any other player, you gain double of Prestige Points
      Specified by:
      activateEvent in class EventCard
      Parameters:
      playerList - contains all the players in the game
    • clone

      public EventCard clone()
      Creates and returns a copy of this ShamanicRitual card.
      Specified by:
      clone in class EventCard
      Returns:
      a new ShamanicRitual card with the same era and prestige values
    • toStringPlayer

      public String toStringPlayer()
      Prints a string representation of this TribeCard. This specific variation is used in the Game's toString to print a more detailed version. Includes:
      Specified by:
      toStringPlayer in class PlayableCard
      Returns:
      String - a string representation of this TribeCard.
      See Also:
    • 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.