From 8fc77abdd04f4c16523f86399e8adaa77f47c162 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Fri, 3 Dec 2021 10:48:59 +0100 Subject: [PATCH] added Method toString in City --- src/ch/zhaw/catan/City.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ch/zhaw/catan/City.java b/src/ch/zhaw/catan/City.java index 5e16c18..499bf87 100644 --- a/src/ch/zhaw/catan/City.java +++ b/src/ch/zhaw/catan/City.java @@ -5,4 +5,8 @@ public class City extends Settlement { public City(Config.Faction faction) { super(faction); } + + public String toString() { + return super.getFaction().toString().toUpperCase(); + } }