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