Esempio n. 1
0
File: Map.java Progetto: bob7l/TF2
 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));
   }
 }
Esempio n. 2
0
File: Map.java Progetto: bob7l/TF2
 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;
 }