Add: Added Javadoc For "toString" Method In Building1.java.
This commit is contained in:
@@ -4,7 +4,6 @@ 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.CharacterType;
|
import it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* During the Sustenance Event, you have a discount of 1 food token on the total you
|
* During the Sustenance Event, you have a discount of 1 food token on the total you
|
||||||
* would have to pay, for each of the indicated characters in your tribe.
|
* would have to pay, for each of the indicated characters in your tribe.
|
||||||
@@ -44,6 +43,16 @@ public class Building1 extends BuildingCard {
|
|||||||
return new Building1(getEra(),getPrice(),getPrestigeValue(),getIcon());
|
return new Building1(getEra(),getPrice(),getPrestigeValue(),getIcon());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prints a string representation of this {@code Building1}. This specific variation is used in the {@code Game}'s
|
||||||
|
* toString to print a more detailed version.
|
||||||
|
* <p>includes:
|
||||||
|
* <li>{@link #icon Icon}
|
||||||
|
* </p>
|
||||||
|
* @return {@code String} - a string representation of this {@code Building1}.
|
||||||
|
* @see it.polimi.ingsw.gc14.Model.Game Game
|
||||||
|
* @see it.polimi.ingsw.gc14.Model.GamePackage.Board Board
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return super.toString() + " Icon: " + this.icon.toString().charAt(0);
|
return super.toString() + " Icon: " + this.icon.toString().charAt(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user