Class Hunt

All Implemented Interfaces:
Serializable

public class Hunt extends EventCard
When activated, gives Food and Prestige Points to every player.
See Also:
  • Field Details

    • BASE_FOOD_PER_HUNTER

      private static final int BASE_FOOD_PER_HUNTER
      Base food units granted per Hunter. Always 1; increased by Building 7.
      See Also:
    • prestigeMultiplier

      private final int prestigeMultiplier
      Prestige Points multiplier used during the event.
  • Constructor Details

    • Hunt

      public Hunt(int Era, int prestigeMultiplier)
      Creates a new Hunt event card.
      Parameters:
      Era - the era of the card
      prestigeMultiplier - prestige points multiplicator used during the event
    • Hunt

      public Hunt(String idIMG, int Era, int prestigeMultiplier)
      Creates a new Hunt event card.
      Parameters:
      idIMG - the image identifier of the Hunt event card.
      Era - the era of the card.
      prestigeMultiplier - the prestige points multiplier used during the event.
  • Method Details

    • getPrestigeMultiplier

      int getPrestigeMultiplier()
      Gets Prestige Points multiplier used during the event.
      Returns:
      int PrestigeMultiplier
    • activateEvent

      public void activateEvent(ArrayList<Player> playerList)
      Activates the event card "Hunt". Each player gains Food and Prestige Points for each Hunter in their tribe, multiplied by the respective multipliers (base food per hunter is 1). Buildings influence: Building 7: adds 1 to both the food and prestige multiplier for each copy owned.
      Specified by:
      activateEvent in class EventCard
      Parameters:
      playerList - the list of all players in the game.
    • clone

      public EventCard clone()
      Creates and returns a copy of this Hunt card.
      Specified by:
      clone in class EventCard
      Returns:
      a new Hunt card with the same era and prestige multiplier
    • 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.