Namespace: DeltaEngine.GameLogic.PathFinding.Tests
Assembly: DeltaEngine.GameLogic.PathFinding.Tests (in DeltaEngine.GameLogic.PathFinding.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.GameLogic.PathFinding.Tests (in DeltaEngine.GameLogic.PathFinding.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test] public void CheckUpdateWeightInLinks() { grid3X2.UpdateWeightInAdjacentNodes(new Vector2D(0, 1), 1, 10); Assert.AreEqual(20, grid3X2.AdjacentLinks[1][0].Costs); Assert.AreEqual(10, grid3X2.AdjacentLinks[1][1].Costs); Assert.AreEqual(20, grid3X2.AdjacentLinks[1][2].Costs); grid3X2.ResetGraph(); foreach(var links in grid3X2.AdjacentLinks) foreach (var link in links) Assert.IsTrue(link.IsActive); }
See Also