Package BasicDataType

Examples of BasicDataType.Rect


//      map.propagateEmpty((byte)0, (byte)y);
//    }
//    for(int x=1; x < 3; x++){
//      map.propagateEmpty((byte)x, (byte)0);
//    }
    Rect bound = new Rect(5, 6, 6,5);
    Search search = new Search(map);   
    for(int i = 0; i < 5 ; i++) {
      currentPos = search.getNext(currentPos, map, bound);
      if (currentPos == null) {
        bound.setRect(0, 9, 9, 0);
        currentPos = new Position(new Vector(5,5), 3);
        for(int j = 0; j < 5 ; j++) {
          currentPos = search.getNext(currentPos, map, bound);
          map.propagateEmpty((byte)currentPos.pos.x,(byte)currentPos.pos.y);
          map.showMap();
View Full Code Here


      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);
    //assertTrue(search.allSearched(map, bound));
    //assertEquals(search.allSearched(map, bound), true);
    bound.setRect(2, 2, 4, 4);
    //System.out.println(search.allSearched(map, bound));
    //assertTr(search.allSearched(map, bound) == false);
    //assertFalse(search.allSearched(map, bound));
  }
View Full Code Here

TOP

Related Classes of BasicDataType.Rect

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.