Exemplo n.º 1
0
        private int DoAttack(Player target, Ability a)
        {
            var skill = (LightAttackAbility)a;
            var action = skill.CreatAction(this, target);
            var resolution = action;
            var r = resolution.Resolve();

            return r;
        }
Exemplo n.º 2
0
        public ChangeHealth(Enemy p1, Player p2, LightAttackAbility a1)
            : base(p1, p2, a1)
        {

            var temp = a1;
            this.DmgValue = temp.HealtDmg;
            this.ManaEffect = temp.ManaEffect;
            this.StaminaEffect = temp.StaminaEffect;

        }
Exemplo n.º 3
0
        public int DoAttack(Player target, int n)
        {
            var r = -1;            
            int ch = n;

            if (ch < 0) 
            { 
                return -1; 
            }   
         
            var tempattack = (LightAttackAbility)this.attacks[ch];
           
            r = this.DoAttack(target, tempattack);
            
            return r;
        }