Package rlforj.los

Examples of rlforj.los.ILosAlgorithm


//    int x1=45, y1=10;
//    tb.exception.add(new Point2I(7, 11));
//    tb.exception.add(new Point2I(13, 12));
   
//    ILosAlgorithm alg = new PrecisePermissive();
    ILosAlgorithm alg = new ShadowCasting();
   
    boolean losExists = alg.existsLineOfSight(tb, 10, 10, x1, y1, true);
    List<Point2I> path=alg.getProjectPath();
   
    for(Point2I p:path) {
      int xx=p.x, yy=p.y;
      tb.mark(xx, yy, '-');
    }
View Full Code Here

TOP

Related Classes of rlforj.los.ILosAlgorithm

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.