LevelGraph SetUnreachableNode Method Delta Engine Documentation

Namespace: DeltaEngine.GameLogic.PathFinding
Assembly: DeltaEngine.GameLogic.PathFinding (in DeltaEngine.GameLogic.PathFinding.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void SetUnreachableNode(
	int nodeIndex
)
Remarks

Tests: DeltaEngine.GameLogic.PathFinding.Tests.LevelGraphTests
Examples

1 unit tests call DeltaEngine.GameLogic.PathFinding.LevelGraph.SetUnreachableNode(System.Int32)
[Test]
public void SetUnreachableNodeAndCheck()
{
    const int Index = 0;
    grid3X2.SetUnreachableAndUpdate(Index);
    Assert.IsFalse(grid3X2.AdjacentLinks[1][Index].IsActive);
    Assert.IsFalse(grid3X2.AdjacentLinks[3][Index].IsActive);
    Assert.IsTrue(grid3X2.IsUnreachableNode(0));
}
See Also