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.GraphTests
Tests: DeltaEngine.GameLogic.PathFinding.Tests.LevelGraphTests
2 unit tests call DeltaEngine.GameLogic.PathFinding.Graph.GetNode(System.Int32)
1 unit tests call DeltaEngine.GameLogic.PathFinding.Graph.GetNode(System.Int32)
Assembly: DeltaEngine.GameLogic.PathFinding (in DeltaEngine.GameLogic.PathFinding.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- nodeId
- Type: System Int32
Return Value
Type: GraphNodeRemarks
Remarks
Examples
[Test] public void ThrowExceptionISearchedForWrongNode() { Assert.Throws<Graph.InvalidNodeId>(() => graphAsPlusShape.GetNode(-1)); }
[Test] public void CheckForExistingGraphNodes() { for (int nodeId = 0; nodeId < NumberOfNodesInGraph; nodeId++) Assert.IsNotNull(graphAsPlusShape.GetNode(nodeId)); }
Examples
[Test] public void CheckGetNodes() { Assert.AreEqual(4, grid3X2.GetNode(1, 1).Id); }
See Also