| | |
| | | } |
| | | |
| | | //加载白名单节点 |
| | | List<List<MapNode>> realMap = getJsonData(lev, -1, null, null);//获取完整地图 |
| | | for (int[] points : whitePoints) { |
| | | //获取原始节点数据 |
| | | int x = points[0]; |
| | | int y = points[1]; |
| | | List<MapNode> rows = realMap.get(x); |
| | | MapNode col = rows.get(y); |
| | | if (whitePoints != null) { |
| | | List<List<MapNode>> realMap = getJsonData(lev, -1, null, null);//获取完整地图 |
| | | for (int[] points : whitePoints) { |
| | | //获取原始节点数据 |
| | | int x = points[0]; |
| | | int y = points[1]; |
| | | List<MapNode> rows = realMap.get(x); |
| | | MapNode col = rows.get(y); |
| | | |
| | | List<MapNode> list = lists.get(x); |
| | | MapNode mapNode = list.get(y); |
| | | mapNode.setValue(col.getValue());//恢复原始节点 |
| | | List<MapNode> list = lists.get(x); |
| | | MapNode mapNode = list.get(y); |
| | | mapNode.setValue(col.getValue());//恢复原始节点 |
| | | |
| | | //更新list |
| | | list.set(y, mapNode); |
| | | lists.set(x, list); |
| | | //更新list |
| | | list.set(y, mapNode); |
| | | lists.set(x, list); |
| | | } |
| | | } |
| | | |
| | | |
| | | return lists; |
| | | } |