Пример #1
0
 @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();
   }
 }