Add: Partial Implementation Of toString For Player.java.
This commit is contained in:
@@ -224,5 +224,16 @@ public class Player {
|
||||
|
||||
// region Functions
|
||||
// TODO tostring usr + food + prestige \n tab foreach(characters.cards + spazio)
|
||||
@Override
|
||||
public String toString() {
|
||||
return this.getUserName() + ":\n\tFood: " + this.getFoodValue()
|
||||
+ "\n\tPrestige: " + this.getPrestigeValue()
|
||||
+ "\n\tArtists: " + this.artists.toString()
|
||||
+ "\n\tBuilders: " + this.builders.toString()
|
||||
+ "\n\tGatherers: " + this.gatherers.toString()
|
||||
+ "\n\tShamans: " + this.shamans.toString()
|
||||
+ "\n\tHunters: " + this.hunters.toString()
|
||||
+ "\n\tBuildings:" + this.buildingCards.toString().indent(1);
|
||||
}
|
||||
// endregion functions
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user