LevelGraphTests SetUnreachableNodeAndCheck Method Delta Engine Documentation

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

public void SetUnreachableNodeAndCheck()
Examples

[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