Inheritance Hierarchy
CreepyTowers.Avatars SpecialAttackSelector
Namespace: CreepyTowers.Avatars
Assembly: CreepyTowers (in CreepyTowers.exe) Version: 1.1.1.0 (1.1.1)
Syntax
The SpecialAttackSelector type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SpecialAttackSelector | Initializes a new instance of the SpecialAttackSelector class |
Methods
Name | Description | |
---|---|---|
SelectAttack |
Remarks
Examples
[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