From 993f65dce439f41c405fcaea4ef74be80e8b8759 Mon Sep 17 00:00:00 2001 From: AleandroPagani Date: Tue, 21 Apr 2026 14:06:55 +0200 Subject: [PATCH] Fixed: JavaDOC finished for Building11 --- .../Cards/Building/Effects/Building11.java | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/src/main/java/it/polimi/ingsw/gc14/Model/Cards/Building/Effects/Building11.java b/src/main/java/it/polimi/ingsw/gc14/Model/Cards/Building/Effects/Building11.java index daa07df..5278483 100644 --- a/src/main/java/it/polimi/ingsw/gc14/Model/Cards/Building/Effects/Building11.java +++ b/src/main/java/it/polimi/ingsw/gc14/Model/Cards/Building/Effects/Building11.java @@ -7,10 +7,30 @@ import it.polimi.ingsw.gc14.Model.Player; import java.util.ArrayList; +/** + * At the end of the game, you gain the indicated amount of Prestige Points for each character + * card of the indicated type in your tribe. + */ public class Building11 extends BuildingCard { + + /** + * Character type used by the building effect + */ private CharacterType icon ; + + /** + * @return the icon attribute + */ public CharacterType getIcon() {return icon;} + + /** + * Prestige multiplier used by the building effect + */ private int PrestigeMul; + + /** + * @return the prestige multiplier attribute + */ public int getPrestigeMul() {return PrestigeMul;} /** @@ -38,7 +58,12 @@ public class Building11 extends BuildingCard { return new Building11(getEra(),getPrice(),getPrestigeValue(), getIcon(), getPrestigeMul()); } - + /** + * Calculates the number of indicated character type. + * Add an amount of Prestige Points equal to the number of characters times the prestige multiplier. + * @param player the player who owns the building + * @throws IllegalArgumentException thrown if the specified player does not own this card. + */ @Override public void applyEffect(Player player) throws IllegalArgumentException { if(!player.buildingCards.contains(this))