Beispiel #1
0
  /**
   * Converts an area of tiles into characters which represent the view.
   *
   * @param area The area to convert
   * @return The View
   */
  protected String toChars(Tile[][] area) {
    String result = "";
    for (Tile[] row : area) {
      for (Tile tile : row) {
        result += MapMaker.convert(tile);
      }
      result += '\n';
    }

    return result.trim();
  }