GameLevelTests DisplayCreepWalkingViaPathfinding Method Delta Engine Documentation

Namespace: CreepyTowers.Tests
Assembly: CreepyTowers.Tests (in CreepyTowers.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void DisplayCreepWalkingViaPathfinding()
Examples

[Test]
public void DisplayCreepWalkingViaPathfinding()
{
    var creep = new Creep(CreepType.Cloth, gameLevel.SpawnPoints[0]);
    var path =
        gameLevel.GetPath(gameLevel.SpawnPoints[0], gameLevel.GoalPoints[0]).GetListOfCoordinates();
    creep.Path = path.Select(element => element + Vector2D.Half).ToList();
}
See Also