Add: Added Javadoc For "toStringBoard" Method And "icon" Field In Inventor.java.

This commit is contained in:
GabrieleRadice
2026-04-30 17:32:22 +02:00
parent 3fa0f24e52
commit 137a88fef0
@@ -4,6 +4,9 @@ import it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType;
import it.polimi.ingsw.gc14.Model.Player;
public class Inventor extends Character {
/**
* The {@code Icons}'s ID. There are a total of 10 different Icons.
*/
private int icon;
/**
@@ -54,6 +57,17 @@ public class Inventor extends Character {
public String toString() {
return super.toString() + " I_ID:" + String.valueOf(icon);
}
/**
* 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 #icon Icons's ID}
* </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
public String toStringBoard() {
return super.toStringBoard() + " I_ID:" + String.valueOf(icon);