Examples of propagateOccupied()


Examples of BasicDataType.Map.propagateOccupied()

  public void testClosestPath() {
    Map map = new Map((byte)5);
    Position currentPos = new Position(new Vector(0,0),0);
    Position destinationPos = new Position(new Vector(2,0),0);
    for(int y=0; y < 3; y++){
      map.propagateOccupied((byte)1, (byte)y);
    }
    Position nextPosition = new Position();
    Search search = new Search(map);
    //search.closestPath(map, currentPos, destinationPos,nextPosition);
    //map.showMap();
View Full Code Here

Examples of BasicDataType.Map.propagateOccupied()

 
  public void testAllSearched() {
    Map map = new Map((byte)5);
    for (int i = 0; i < 2; i++) {
      for (int j = 0; j < 2; j++) {
        map.propagateOccupied((byte)i, (byte)j);
      }
    }
    //map.showMap();
    Rect bound = new Rect(0,0,3,3);
    Search search = new Search(map);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.