Example #1
0
File: Map.java Project: 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));
   }
 }
Example #2
0
File: Map.java Project: 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;
 }