Exemple #1
0
 public void SpellAction(Attack spell)
 {
     spell.UpdateDescription();
     if (ActionChosen != null)
     {
         ActionChosen.Invoke(spell);
     }
 }
Exemple #2
0
        public void AttackAction()
        {
            IAction action = new BasicSwordAttack(player, currentWeapon);

            if (ActionChosen != null)
            {
                ActionChosen.Invoke(action);
            }
        }
Exemple #3
0
        public void DefendAction()
        {
            IAction action;

            if (currentWeapon is IceShield)
            {
                action = new IceDefend(player, 1, currentWeapon);
            }
            else
            {
                action = new Defend(player, 1, currentWeapon);
            }
            if (ActionChosen != null)
            {
                ActionChosen.Invoke(action);
            }
        }