Class Building13
java.lang.Object
it.polimi.ingsw.gc14.Model.PlayableCard
it.polimi.ingsw.gc14.Model.Cards.BuildingCard
it.polimi.ingsw.gc14.Model.Cards.Building.Effects.Building13
- All Implemented Interfaces:
BuildingEffect, Serializable, Cloneable
At the end of the game, this building grants 25 Prestige Points
to the player who owns it.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intPrestige points granted at end of game by this building.Fields inherited from class BuildingCard
effectId, effectType -
Constructor Summary
ConstructorsConstructorDescriptionBuilding13(int era, int price, int prestigeValue) Creates a Building13 card with the specified era, price, and prestige value.Building13(String idIMG, int era, int price, int prestigeValue) Creates a Building13 card with the specified image id, era, price, and prestige value. -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyEffect(Player player) Applies the effect of this building card to the specified player, granting 25 Prestige Points.clone()Creates and returns a copy of this Building13 card.Methods inherited from class BuildingCard
buy, getEffectId, getEffectType, getPrestigeValue, getPrice, toStringBoard, toStringPlayerMethods inherited from class PlayableCard
getEra, getIdIMG
-
Field Details
-
PRESTIGE_AWARD
private static final int PRESTIGE_AWARDPrestige 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
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
Creates and returns a copy of this Building13 card.- Overrides:
clonein classBuildingCard- Returns:
- a clone of this Building13 card.
-
applyEffect
Applies the effect of this building card to the specified player, granting 25 Prestige Points.- Overrides:
applyEffectin classBuildingCard- Parameters:
player- the player to whom the effect is applied.- Throws:
IllegalArgumentException- if the player does not own this building card.
-