SpecialAttackSelector ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  CreepyTowers.Avatars SpecialAttackSelector

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

public class SpecialAttackSelector

The SpecialAttackSelector type exposes the following members.

Constructors

  NameDescription
Public methodSpecialAttackSelector
Initializes a new instance of the SpecialAttackSelector class
Top
Methods

  NameDescription
Public methodStatic memberSelectAttack
Top
Remarks

Tests: CreepyTowers.Tests.Avatars.SpecialAttackSelectorTests
Examples

6 unit tests call CreepyTowers.Avatars.SpecialAttackSelector
[Test]
public void DragonBreathOfFire()
{
    var player = new Player();
    player.Avatar.ActivatedSpecialAttack = AvatarAttack.DragonBreathOfFire;
    player.Avatar.SpecialAttackAIsActivated = true;
    SpecialAttackSelector.SelectAttack(Vector2D.One);
    Assert.IsFalse(player.Avatar.SpecialAttackAIsActivated);
}
[Test]
public void DragonAuraCannon()
{
    var player = new Player();
    player.Avatar.ActivatedSpecialAttack = AvatarAttack.DragonAuraCannon;
    player.Avatar.SpecialAttackBIsActivated = true;
    SpecialAttackSelector.SelectAttack(Vector2D.One);
    Assert.IsFalse(player.Avatar.SpecialAttackBIsActivated);
}
[Test]
public void PenguinBigFirework()
{
    var player = new Player("", CreepyTowers.Content.Avatars.Penguin);
    player.Avatar.ActivatedSpecialAttack = AvatarAttack.PenguinBigFirework;
    player.Avatar.SpecialAttackAIsActivated = true;
    SpecialAttackSelector.SelectAttack(Vector2D.One);
    Assert.IsFalse(player.Avatar.SpecialAttackAIsActivated);
}
See Also