private static void ActivateSpecialAttackA(Avatar avatar) { if (avatar is Dragon) avatar.ActivatedSpecialAttack = AvatarAttack.DragonBreathOfFire; else if (avatar is Penguin) avatar.ActivatedSpecialAttack = AvatarAttack.PenguinBigFirework; else if (avatar is PiggyBank) avatar.ActivatedSpecialAttack = AvatarAttack.PiggyBankCoinMinefield; }
private static void SpecialAttackPiggyBank(Avatar avatar, Vector2D pos) { switch (avatar.ActivatedSpecialAttack) { case AvatarAttack.PiggyBankCoinMinefield: avatar.PerformAttack(AvatarAttack.PiggyBankCoinMinefield, pos); avatar.SpecialAttackAIsActivated = false; break; case AvatarAttack.PiggyBankPayDay: avatar.PerformAttack(AvatarAttack.PiggyBankPayDay, pos); avatar.SpecialAttackBIsActivated = false; break; } }
private static void SpecialAttackPenguin(Avatar avatar, Vector2D pos) { switch (avatar.ActivatedSpecialAttack) { case AvatarAttack.PenguinBigFirework: avatar.PerformAttack(AvatarAttack.PenguinBigFirework, pos); avatar.SpecialAttackAIsActivated = false; break; case AvatarAttack.PenguinCarpetBombing: avatar.PerformAttack(AvatarAttack.PenguinCarpetBombing, pos); avatar.SpecialAttackBIsActivated = false; break; } }
private static void SpecialAttackDragon(Avatar avatar, Vector2D pos) { switch (avatar.ActivatedSpecialAttack) { case AvatarAttack.DragonBreathOfFire: avatar.PerformAttack(AvatarAttack.DragonBreathOfFire, pos); avatar.SpecialAttackAIsActivated = false; break; case AvatarAttack.DragonAuraCannon: avatar.PerformAttack(AvatarAttack.DragonAuraCannon, pos); avatar.SpecialAttackBIsActivated = false; break; } }
private static void ActivateSpecialAttackB(Avatar avatar) { if (avatar is Dragon) avatar.ActivatedSpecialAttack = AvatarAttack.DragonAuraCannon; else if (avatar is Penguin) avatar.ActivatedSpecialAttack = AvatarAttack.PenguinCarpetBombing; else if (avatar is PiggyBank) avatar.ActivatedSpecialAttack = AvatarAttack.PiggyBankPayDay; }