public Map(String m) { map = m; GameUtilities.getUtilities().gamestatus.put(m, GameStatus.WAITING); for (Location l : getCapturePoints()) { Integer id = CapturePointUtilities.getUtilities().getIDFromLocation(l); points.put(id, new CapturePoint(map, id)); } }
public List<Location> getCapturePoints() { List<Location> locs = new ArrayList<Location>(); for (String id : MapConfiguration.getMaps() .getMap(map) .getConfigurationSection("capture-points") .getKeys(false)) { locs.add(CapturePointUtilities.getUtilities().getLocationFromID(map, Integer.parseInt(id))); } return locs; }