Package rlforj.los

Examples of rlforj.los.IConeFovAlgorithm


   
    b.exception.add(new Point2I(15, 15));
    b.exception.add(new Point2I(15, 16));
    b.exception.add(new Point2I(16, 15));
   
    IConeFovAlgorithm a= new ConePrecisePremisive();
   
    a.visitConeFieldOfView(b, 10, 10, 10, startAngle, finishAngle);
   
    b.mark(10, 10, '@');
    b.print(-1, 21, -1, 21);
   
    System.out.println("visitederr "+b.visiterr);
   
    a= new ShadowCasting();
    b.visited.clear();
   
    a.visitConeFieldOfView(b, 10, 10, 10, startAngle, finishAngle);
   
    b.mark(10, 10, '@');
    b.print(-1, 21, -1, 21);
   
//    IFovAlgorithm a1= new ShadowCasting();
View Full Code Here


    }
//    int startAngle=rand.nextInt(360), finishAngle=rand.nextInt(360);
    int startAngle=30, finishAngle=70;
    System.out.println(startAngle+" degrees to "+finishAngle+" degrees");
    System.out.println("ShadowCasting");
    IConeFovAlgorithm a=new ShadowCasting();
    a.visitConeFieldOfView(b, 10, 10, 9, startAngle, finishAngle);
    b.print(10, 10);
   
    b.resetVisitedAndMarks();
    System.out.println("Precise Permissive");
    a=new ConePrecisePremisive();
    a.visitConeFieldOfView(b, 10, 10, 10, startAngle, finishAngle);
    b.print(10, 10);
  }
View Full Code Here

TOP

Related Classes of rlforj.los.IConeFovAlgorithm

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.