示例#1
0
 public static void buildMap(Battlefield b) {
   if (b.getMap() == null) {
     createMapOn(b);
   } else {
     finalizeMapOn(b);
   }
 }
示例#2
0
  private static void finalizeMapOn(Battlefield b) {
    Map m = b.getMap();
    m.setStyle(BuilderManager.getMapStyleBuilder(m.getMapStyleID()).build());
    TileArtisanUtil.finalizeTilesOn(m);
    TileArtisanUtil.readElevation(m.getAll());
    m.setParcelling(new Parcelling(m));

    attachInitialTrinkets(m);
    for (Ramp r : m.getRamps()) {
      r.connect(m);
    }
    AtlasArtisanUtil.buildAtlas(m);
  }
示例#3
0
 private static void createMapOn(Battlefield b) {
   Map m = new Map(BuilderManager.getMapStyleBuilder("StdMapStyle").build());
   AtlasArtisanUtil.buildAtlas(m);
   b.setMap(m);
 }