Fix: Building10.java, Building11.java, Building13.java Fixed Typos.

This commit is contained in:
GabrieleRadice
2026-04-12 19:02:41 +02:00
parent c6b96cf4eb
commit 144d26f03b
3 changed files with 24 additions and 27 deletions
@@ -2,7 +2,6 @@ package it.polimi.ingsw.gc14.Model.Cards.Building.Effects;
import it.polimi.ingsw.gc14.Model.Cards.Building.EffectType; import it.polimi.ingsw.gc14.Model.Cards.Building.EffectType;
import it.polimi.ingsw.gc14.Model.Cards.BuildingCard; import it.polimi.ingsw.gc14.Model.Cards.BuildingCard;
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.Character;
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType; import it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType;
import it.polimi.ingsw.gc14.Model.Player; import it.polimi.ingsw.gc14.Model.Player;
@@ -13,9 +12,9 @@ public class Building10 extends BuildingCard {
/** /**
* Creates a Building10 card with the specified era, price, and prestige value. * Creates a Building10 card with the specified era, price, and prestige value.
* *
* @param era the era of the building card * @param era the era of the building card.
* @param price the price of the building card * @param price the price of the building card.
* @param prestigeValue the prestige value of the building card * @param prestigeValue the prestige value of the building card.
*/ */
public Building10(int era, int price,int prestigeValue) { public Building10(int era, int price,int prestigeValue) {
super(era,price,prestigeValue); super(era,price,prestigeValue);
@@ -26,7 +25,7 @@ public class Building10 extends BuildingCard {
/** /**
* Creates and returns a copy of this Building10 card. * Creates and returns a copy of this Building10 card.
* *
* @return a clone of this Building10 card * @return a clone of this Building10 card.
*/ */
@Override @Override
public BuildingCard clone() { public BuildingCard clone() {
@@ -35,12 +34,12 @@ public class Building10 extends BuildingCard {
/** /**
* Applies the effect of this building card to the specified player. * Applies the effect of this building card to the specified player.
* The effect grants 6 prestige points for each complete set of character cards * The effect grants 6 prestige points for each complete set of character cards.
* owned by the player, where a complete set contains one card of each * owned by the player, where a complete set contains one card of each.
* {@link CharacterType}. * {@link CharacterType}.
* *
* @param player the player to whom the effect is applied * @param player the player to whom the effect is applied.
* @throws IllegalArgumentException if the player does not own this building card * @throws IllegalArgumentException if the player does not own this building card.
*/ */
@Override @Override
public void applyEffect(Player player) throws IllegalArgumentException { public void applyEffect(Player player) throws IllegalArgumentException {
@@ -5,15 +5,13 @@ import it.polimi.ingsw.gc14.Model.Cards.BuildingCard;
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType; import it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType;
import it.polimi.ingsw.gc14.Model.Player; import it.polimi.ingsw.gc14.Model.Player;
import java.util.ArrayList;
public class Building11 extends BuildingCard { public class Building11 extends BuildingCard {
private CharacterType icon ; private CharacterType icon ;
/** /**
* Returns the CharacterType associated with this building card effect. * Returns the CharacterType associated with this building card effect.
* *
* @return the CharacterType associated with this building card effect * @return the CharacterType associated with this building card effect.
*/ */
public CharacterType getIcon() {return icon;} public CharacterType getIcon() {return icon;}
private int PrestigeMul; private int PrestigeMul;
@@ -21,7 +19,7 @@ public class Building11 extends BuildingCard {
/** /**
* Returns the prestige multiplier associated with this building card effect. * Returns the prestige multiplier associated with this building card effect.
* *
* @return the prestige multiplier associated with this building card effect * @return the prestige multiplier associated with this building card effect.
*/ */
public int getPrestigeMul() {return PrestigeMul;} public int getPrestigeMul() {return PrestigeMul;}
@@ -29,11 +27,11 @@ public class Building11 extends BuildingCard {
* Creates a Building11 card with the specified era, price, prestige value, * Creates a Building11 card with the specified era, price, prestige value,
* character type icon, and prestige multiplier. * character type icon, and prestige multiplier.
* *
* @param era the era of the building card * @param era the era of the building card.
* @param price the price of the building card * @param price the price of the building card.
* @param prestigeValue the prestige value of the building card * @param prestigeValue the prestige value of the building card.
* @param icon the CharacterType associated with the building card effect * @param icon the CharacterType associated with the building card effect.
* @param prestigeMul the prestige multiplier of the building card effect * @param prestigeMul the prestige multiplier of the building card effect.
*/ */
public Building11(int era, int price,int prestigeValue, CharacterType icon, int prestigeMul) { public Building11(int era, int price,int prestigeValue, CharacterType icon, int prestigeMul) {
super(era,price,prestigeValue); super(era,price,prestigeValue);
@@ -46,7 +44,7 @@ public class Building11 extends BuildingCard {
/** /**
* Creates and returns a copy of this Building11 card. * Creates and returns a copy of this Building11 card.
* *
* @return a clone of this Building11 card * @return a clone of this Building11 card.
*/ */
@Override @Override
public BuildingCard clone() { public BuildingCard clone() {
@@ -58,8 +56,8 @@ public class Building11 extends BuildingCard {
* The effect grants prestige points equal to the number of cards of the * The effect grants prestige points equal to the number of cards of the
* associated CharacterType owned by the player, multiplied by the prestige multiplier. * associated CharacterType owned by the player, multiplied by the prestige multiplier.
* *
* @param player the player to whom the effect is applied * @param player the player to whom the effect is applied-
* @throws IllegalArgumentException if the player does not own this building card * @throws IllegalArgumentException if the player does not own this building card-
*/ */
@Override @Override
public void applyEffect(Player player) throws IllegalArgumentException { public void applyEffect(Player player) throws IllegalArgumentException {
@@ -9,9 +9,9 @@ public class Building13 extends BuildingCard{
/** /**
* Creates a Building13 card with the specified era, price, and prestige value. * Creates a Building13 card with the specified era, price, and prestige value.
* *
* @param era the era of the building card * @param era the era of the building card.
* @param price the price of the building card * @param price the price of the building card.
* @param prestigeValue the prestige value of the building card * @param prestigeValue the prestige value of the building card.
*/ */
public Building13(int era, int price,int prestigeValue) { public Building13(int era, int price,int prestigeValue) {
super(era,price,prestigeValue); super(era,price,prestigeValue);
@@ -22,7 +22,7 @@ public class Building13 extends BuildingCard{
/** /**
* Creates and returns a copy of this Building13 card. * Creates and returns a copy of this Building13 card.
* *
* @return a clone of this Building13 card * @return a clone of this Building13 card.
*/ */
@Override @Override
public BuildingCard clone() { public BuildingCard clone() {
@@ -32,8 +32,8 @@ public class Building13 extends BuildingCard{
/** /**
* Applies the effect of this building card to the specified player. * Applies the effect of this building card to the specified player.
* *
* @param player the player to whom the effect is applied * @param player the player to whom the effect is applied.
* @throws IllegalArgumentException if the player does not own this building card * @throws IllegalArgumentException if the player does not own this building card.
*/ */
@Override @Override
public void applyEffect(Player player) throws IllegalArgumentException { public void applyEffect(Player player) throws IllegalArgumentException {