Add: Added "toString" Method And Relevant Test In Building11.java And Building11Test.java.
This commit is contained in:
@@ -6,6 +6,7 @@ import it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType;
|
||||
import it.polimi.ingsw.gc14.Model.Player;
|
||||
|
||||
public class Building11 extends BuildingCard {
|
||||
|
||||
private CharacterType icon ;
|
||||
|
||||
/**
|
||||
@@ -14,6 +15,7 @@ public class Building11 extends BuildingCard {
|
||||
* @return the CharacterType associated with this building card effect.
|
||||
*/
|
||||
public CharacterType getIcon() {return icon;}
|
||||
|
||||
private int PrestigeMul;
|
||||
|
||||
/**
|
||||
@@ -65,4 +67,9 @@ public class Building11 extends BuildingCard {
|
||||
throw new IllegalArgumentException();
|
||||
player.addPrestige(player.getNType(getIcon()) * this.getPrestigeMul());
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return super.toString() + " Icon: " + this.icon.toString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user