Exemplo n.º 1
0
 public Map(GameState gameState, MapConfiguration config) {
   this.config = config;
   nodes = new ArrayList<Node>();
   int id = 0;
   for (NodeConfiguration nc : config.getNodes()) nodes.add(nc.createNode(gameState, id++));
   lanes = new ArrayList<Lane>();
   for (LaneConfiguration lc : config.getLanes()) lanes.add(lc.createLane(gameState));
 }