238239240241242243244245246247248
int h = new Integer( mapNode.contentOf("height")); resizeMap(w,h,-1); for(Node tileNode: mapNode.subnodes("tile")) { Tile t = Tile.fromNode(tileNode); tiles[t.getX()][t.getY()] = t; }