Merge pull request #23

Add: Partial Implementation Of toString For Player.java.
This commit is contained in:
GabrieleRadice
2026-04-12 18:56:32 +02:00
committed by GitHub
@@ -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
}