Namespace: DeltaEngine.GameLogic.PathFinding
Assembly: DeltaEngine.GameLogic.PathFinding (in DeltaEngine.GameLogic.PathFinding.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.GameLogic.PathFinding.Tests.LevelGraphTests
1 unit tests call DeltaEngine.GameLogic.PathFinding.LevelGraph.ResetGraph
Assembly: DeltaEngine.GameLogic.PathFinding (in DeltaEngine.GameLogic.PathFinding.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Remarks
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