Ejemplo n.º 1
0
 public void TestGranularity()
 {
     _navigator = new Navigator(DIMENSIONS, 2, x => true);
     AssertPath(Vector2.Zero, DIMENSIONS - Vector2.One, 1,1, 3,3);
 }
Ejemplo n.º 2
0
 public void Setup()
 {
     _navigator = new Navigator(DIMENSIONS, 1, x => true);
 }
Ejemplo n.º 3
0
 public void TestDimensions()
 {
     _navigator = new Navigator(new Vector2(3, 5), 1, x => true);
     AssertPath(Vector2.Zero, new Vector2(2, 4), 0.5f,0.5f, 1.5f,1.5f, 1.5f,2.5f, 1.5f,3.5f, 2.5f,4.5f);
 }
Ejemplo n.º 4
0
 private void InitializeNavigator()
 {
     Navigator = new Navigator(Dimensions, Gob.LARGE_GOB_PHYSICAL_RADIUS,
         pos => IsFreePosition(new Circle(pos, Gob.SMALL_GOB_PHYSICAL_RADIUS),
             area => area.Owner.MoveType != MoveType.Dynamic));
 }