code: private void appendMap(MapTile other, int offsetX, int offsetY)
      {
          for (int v = 0; v < other.getInTileHeight(); v++)
          {
              final int ty = offsetY + v;
              for (int h = 0; h < other.getInTileWidth(); h++)
              {
                  final int tx = offsetX + h;
                  final Tile tile = other.getTile(h, v);
                  if (tile != null)
                  {
                      final double x = tx * (double) map.getTileWidth();
                      final double y = ty * (double) map.getTileHeight();
                      map.setTile(map.createTile(tile.getSheet(), tile.getNumber(), x, y));
                  }
              }
          }
      }
docs: Append the map at specified offset.
  
  @param other The map to append.
  @param offsetX The horizontal offset.
  @param offsetY The vertical offset.