Package wolf.city.road.rules

Examples of wolf.city.road.rules.OffRamp


          rqM.add(localConstraints(r));

        }else if(city.pop.getCircleAvg((int)road.b.pos.x, (int)road.b.pos.y, populationSampleRadiusHighwayIntersection) >= minimumPopulationHighwayIntersection){
          //determine if this location should have an intersection (or should all locations have an intersection and then prune later?)

          OffRamp rampRule = new OffRamp(city);
          //yes, have an intersection! Free, with your purchase!
          rq.add(localConstraints(rampRule.globalGoals(city, road, Direction.LEFT)));
          rq.add(localConstraints(rampRule.globalGoals(city, road, Direction.RIGHT)));
        }
        if(road.getType() == RoadType.HIGHWAY){
          Basic basicRule = new Basic(city);
          Road newRoad = basicRule.globalGoals(city, road, Direction.FORWARD);
          rqH.add(localConstraints(newRoad));
View Full Code Here

TOP

Related Classes of wolf.city.road.rules.OffRamp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.