Esempio n. 1
0
        public Ability ( Ability _ability)
	    {
            this.id = _ability.id;
            this.image = _ability.image;
            this.name = _ability.name;
            this.desc = _ability.desc;
            this.cooldown = _ability.cooldown;
            this.cost = _ability.cost;
            this.damage = _ability.damage;
            this.armor = _ability.armor;
            this.attributes = _ability.attributes;
            this.effects = _ability.effects;
            this.element = _ability.element;
	    }
Esempio n. 2
0
 public bool swapAbility(Ability _current, Ability _last)
 {
     if (_last != null)
     {
         for (int i = 0; i < abilitys.Count; i++)
         {
             if (abilitys[i].id == _last.id)
             {
                 abilitys[i] = _current;
                 return true;
             }
         }
     }
     else
     {
         abilitys.Add(_current);
         return true;
     }
     return false;
 }
Esempio n. 3
0
        public Ability getAbility(int _id)
        {
            Ability _ability = new Ability();

            return _ability;
        }