FlyingPenguinTests PerformCarpetBombingAttack 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 PerformCarpetBombingAttack()
Examples

[Test]
public void PerformCarpetBombingAttack()
{
    new Level(new Size(5, 5));
    Randomizer.Use(new FixedRandom(new[] { 0.1f, 0.2f, 0.1f, 0.2f, 0.1f, 0.2f, 0.3f }));
    var missedCreep = new Creep(CreepType.Paper, new Vector2D(4, 4));
    var hitCreep = new Creep(CreepType.Paper, new Vector2D(0, 1));
    player.Avatar.PerformAttack(AvatarAttack.PenguinCarpetBombing, Vector2D.Unused);
    Assert.AreEqual(1, missedCreep.GetStatPercentage("Hp"));
    Assert.Less(hitCreep.GetStatPercentage("Hp"), 1);
}
See Also