added Method toString in City
This commit is contained in:
1 parent
8cb13ce0a6
commit
8fc77abdd0
1 file changed
+4
@@ -5,4 +5,8 @@ public class City extends Settlement {
|
|||||||
public City(Config.Faction faction) {
|
public City(Config.Faction faction) {
|
||||||
super(faction);
|
super(faction);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String toString() {
|
||||||
|
return super.getFaction().toString().toUpperCase();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user