Add: Added Javadoc For "toStringBoard" Method In Sustenance.java.

This commit is contained in:
GabrieleRadice
2026-04-30 17:06:40 +02:00
parent 0da74efe01
commit b75a4224ee
@@ -90,6 +90,16 @@ public class Sustenance extends EventCard {
return new Sustenance(getEra(), PrestigeDebt); return new Sustenance(getEra(), PrestigeDebt);
} }
/**
* Prints a string representation of this {@code TribeCard}. This specific variation is used in the {@code Game}'s
* toString to print a more detailed version.
* <p>includes:
* <li>{@link #PrestigeDebt}
* </p>
* @return {@code String} - a string representation of this {@code TribeCard}.
* @see it.polimi.ingsw.gc14.Model.Cards.TribeCard TribeCard
* @see it.polimi.ingsw.gc14.Model.Game Game
*/
@Override @Override
public String toStringBoard() { public String toStringBoard() {
return super.toString()+" -1F/-"+PrestigeDebt+"PP"; return super.toString()+" -1F/-"+PrestigeDebt+"PP";