FightingDragonTests PerformAuraCannonAttack Method Delta Engine Documentation

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

public void PerformAuraCannonAttack()
Examples

[Test]
public void PerformAuraCannonAttack()
{
    var creepOutsideRange = new Creep(CreepType.Paper, new Vector2D(1, 4));
    var creepInsideRange = new Creep(CreepType.Paper, new Vector2D(2, 2));
    player.Avatar.PerformAttack(AvatarAttack.DragonAuraCannon, new Vector2D(1, 2));
    Assert.AreEqual(0.933f, creepOutsideRange.GetStatPercentage("Hp"), 0.001f);
    Assert.Less(creepInsideRange.GetStatPercentage("Hp"), 1);
    AdvanceTimeAndUpdateEntities(0.1f);
}
See Also