@Override public void saveTileToSnapshot(Tile tile, Document doc, Element tileNode) { if (tile.getBridge() != null) { Location realLoc = tile.getBridge().getRawLocation(); tileNode.setAttribute("bridge", realLoc.toString()); } }
@Override public String toString() { if (location == Location.PRISON) { return getClass().getSimpleName() + " " + location.toString(); } else { return super.toString(); } }