Exemple #1
0
        public void PiggyBankPayDay()
        {
            var player = new Player("", CreepyTowers.Content.Avatars.PiggyBank);

            player.Avatar.ActivatedSpecialAttack    = AvatarAttack.PiggyBankPayDay;
            player.Avatar.SpecialAttackBIsActivated = true;
            SpecialAttackSelector.SelectAttack(Vector2D.One);
            Assert.IsFalse(player.Avatar.SpecialAttackBIsActivated);
        }
Exemple #2
0
        public void PenguinCarpetBombing()
        {
            var player = new Player("", CreepyTowers.Content.Avatars.Penguin);

            player.Avatar.ActivatedSpecialAttack    = AvatarAttack.PenguinCarpetBombing;
            player.Avatar.SpecialAttackBIsActivated = true;
            SpecialAttackSelector.SelectAttack(Vector2D.One);
            Assert.IsFalse(player.Avatar.SpecialAttackBIsActivated);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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);
        }
 private void BuildTower(TowerType type)
 {
     level = (GameLevel)Level.Current;
     Hide();
     if (IsSpecialAttackPossible())
     {
         SpecialAttackSelector.SelectAttack(level.GetRealPosition(clickedPosition));
     }
     else
     {
         level.SpawnTower(type, clickedPosition, 180.0f);
     }
 }
Exemple #6
0
 private static void AddInputCommands()
 {
     new Command(GameCommands.MouseLeftButtonClick.ToString(), pos =>
     {
         var cinematicMenus = MenuController.Current.GetAllCinematicMenus();
         if (cinematicMenus.Any(cinematic => cinematic.IsShown) || cinematicMenus.Count == 0)
         {
             return;
         }
         if (IsSpecialAttackPossible(pos))
         {
             SpecialAttackSelector.SelectAttack(((GameLevel)Level.Current).GetRealPosition(pos));
         }
         else
         {
             ShowTowerPanel(pos);
         }
     });
 }