Exemple #1
0
 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));
   }
 }
Exemple #2
0
 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;
 }