Package wolf.city

Examples of wolf.city.Roadmap


public class MapRender {
  public static void render(City c, String file) {
    int sizeX = c.sizeX;
    int sizeY = c.sizeY;
    Roadmap rm;
    String filename;
    float d = 1f; //delta (times smaller)
    rm = c.rm;
    filename = file;
    ImageOutput img = new ImageOutput(sizeX, sizeY);
View Full Code Here


    roads = new LinkedList<Road>();
    testRoad = new Road(new Intersection(new Coordinate(10,100)),new Intersection(new Coordinate(400,400)), RoadType.HIGHWAY, null);
    roads.add(new Road(new Intersection(new Coordinate(100,10)),new Intersection(new Coordinate(400,300)), RoadType.HIGHWAY, null));
    roads.add(new Road(new Intersection(new Coordinate(50,25)),new Intersection(new Coordinate(400,200)), RoadType.HIGHWAY, null));
    c = new City(windowHeight*4, windowHeight*4, 0);
    rm = new Roadmap(c);
    for(Road r: roads){
      rm.roads.insert(r.getEnvelope(), r);
    }
   
    mouseLoc = new Coordinate(0,0);
View Full Code Here

TOP

Related Classes of wolf.city.Roadmap

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.