Add: Added Javadoc For "toStringBoard" Method And "icon" Field In Inventor.java.
This commit is contained in:
@@ -4,6 +4,9 @@ import it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType;
|
|||||||
import it.polimi.ingsw.gc14.Model.Player;
|
import it.polimi.ingsw.gc14.Model.Player;
|
||||||
|
|
||||||
public class Inventor extends Character {
|
public class Inventor extends Character {
|
||||||
|
/**
|
||||||
|
* The {@code Icons}'s ID. There are a total of 10 different Icons.
|
||||||
|
*/
|
||||||
private int icon;
|
private int icon;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -54,6 +57,17 @@ public class Inventor extends Character {
|
|||||||
public String toString() {
|
public String toString() {
|
||||||
return super.toString() + " I_ID:" + String.valueOf(icon);
|
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
|
@Override
|
||||||
public String toStringBoard() {
|
public String toStringBoard() {
|
||||||
return super.toStringBoard() + " I_ID:" + String.valueOf(icon);
|
return super.toStringBoard() + " I_ID:" + String.valueOf(icon);
|
||||||
|
|||||||
Reference in New Issue
Block a user