Add: Partial Implementation Of toString For Player.java.

This commit is contained in:
GabrieleRadice
2026-04-12 18:55:56 +02:00
parent 15e21fbec9
commit c18d00ab0a
@@ -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
}