Now displays city name in tile information, and not "railroad"
This commit is contained in:
parent
4a6a6d912f
commit
832191d87e
1 changed files with 5 additions and 3 deletions
|
@ -157,10 +157,12 @@ public class TileInfo
|
|||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder SB = new StringBuilder(this.baseTerrain);
|
||||
StringBuilder SB = new StringBuilder();
|
||||
if (isCityCenter()) SB.append(workingCity+",\r\n");
|
||||
SB.append(this.baseTerrain);
|
||||
if (terrainFeature != null) SB.append(",\r\n" + terrainFeature);
|
||||
if (hasViewableResource()) SB.append(",\r\n" + resource);
|
||||
if(roadStatus!= RoadStatus.None) SB.append(",\r\n" + roadStatus);
|
||||
if (roadStatus!= RoadStatus.None && !isCityCenter()) SB.append(",\r\n" + roadStatus);
|
||||
if (improvement != null) SB.append(",\r\n" + improvement);
|
||||
if (improvementInProgress != null) SB.append(",\r\n" + improvementInProgress +" in "+this.turnsToImprovement +" turns");
|
||||
if (unit !=null) SB.append(",\r\n" + unit.name + "("+ new DecimalFormat("0.#").format(unit.currentMovement)+"/"+ unit.maxMovement +")");
|
||||
|
|
Loading…
Reference in a new issue