Ejemplo n.º 1
0
 @Override
 public String toString() {
   StringBuilder sb = new StringBuilder();
   for (Tile t : this.map.values()) {
     sb.append("x: " + t.getPoint().x);
     sb.append("y: " + t.getPoint().y);
     sb.append(" obs: " + t.isObstacle());
     sb.append(" dirty: " + t.isDirty());
     sb.append(" base: " + t.isBase());
     sb.append("\n");
   }
   return sb.toString();
 }
Ejemplo n.º 2
0
 private void setBase(Tile t) {
   if (!t.isBase()) {
     // TODO error
   }
   this.base = t;
 }