Fixed: JavaDOC finished for Building11
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user