Class Building13

All Implemented Interfaces:
BuildingEffect, Serializable, Cloneable

public class Building13 extends BuildingCard
At the end of the game, this building grants 25 Prestige Points to the player who owns it.
See Also:
  • Field Details

    • PRESTIGE_AWARD

      private static final int PRESTIGE_AWARD
      Prestige points granted at end of game by this building.
      See Also:
  • Constructor Details

    • Building13

      public Building13(int era, int price, int prestigeValue)
      Creates a Building13 card with the specified era, price, and prestige value.
      Parameters:
      era - the era of the building card.
      price - the price of the building card.
      prestigeValue - the prestige value of the building card.
    • Building13

      public Building13(String idIMG, int era, int price, int prestigeValue)
      Creates a Building13 card with the specified image id, era, price, and prestige value.
      Parameters:
      idIMG - the image identifier of the building card.
      era - the era of the building card.
      price - the price of the building card.
      prestigeValue - the prestige value of the building card.
  • Method Details

    • clone

      public BuildingCard clone()
      Creates and returns a copy of this Building13 card.
      Overrides:
      clone in class BuildingCard
      Returns:
      a clone of this Building13 card.
    • applyEffect

      public void applyEffect(Player player) throws IllegalArgumentException
      Applies the effect of this building card to the specified player, granting 25 Prestige Points.
      Overrides:
      applyEffect in class BuildingCard
      Parameters:
      player - the player to whom the effect is applied.
      Throws:
      IllegalArgumentException - if the player does not own this building card.