TowerTests CheckForCreepUnderAttack Method Delta Engine Documentation

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

public void CheckForCreepUnderAttack()
Examples

[Test, CloseAfterFirstFrame]
public void CheckForCreepUnderAttack()
{
    var tower = new Tower(TowerType.Slice, new Vector2D(0, 0));
    tower.RenderModel();
    var creep = new Creep(CreepType.Cloth, new Vector2D(1, 0));
    new TowerTargetFinder();
    AdvanceTimeAndUpdateEntities(2.1f);
    Assert.Less(creep.GetStatPercentage("Hp"), 1);
}
See Also