BossTests DisplayBossVillainFollowingPreDefinedPath Method Delta Engine Documentation

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

public void DisplayBossVillainFollowingPreDefinedPath()
Examples

[Test]
public void DisplayBossVillainFollowingPreDefinedPath()
{
    camera.ZoomLevel = 1 / 20.0f;
    var grid = new Grid3D(new Size(10, 10));
    grid.RenderLayer = -10;
    var boss = new Boss(BossType.Cloak, Vector2D.Zero);
    boss.RenderModel();
    boss.FinalTarget = new Vector2D(2, 2);
    boss.Path = new List<Vector2D>
    {
        new Vector2D(4, 0),
        new Vector2D(4, 9),
        new Vector2D(2, 9),
        new Vector2D(2, 2)
    };
}
See Also