Esempio n. 1
0
        public Armor(Armor armor)
        {
            this.armor = armor.armor;
            this.parry = armor.parry;

            this.resistance = new Resistance(armor.resistance);
        }
Esempio n. 2
0
        public Armor(Armor armor)
        {
            this.armor = armor.armor;
            this.parry = armor.parry;

            this.resistance = new Resistance( armor.resistance);  
        }
Esempio n. 3
0
        public Armor()
        {
            this.armor = 0;
            this.parry = 0;

            this.resistance = new Resistance();
        }
Esempio n. 4
0
 public void addArmor(Armor armor)
 {
     this.armor += armor.armor;
     this.parry += armor.parry;
     this.resistance += armor.resistance;
     //this.resistance.addResistence(armor.resistance);
 }
Esempio n. 5
0
        public static Resistance operator -(Resistance _resi1, Resistance _resi2)
        {
            Resistance _resi = new Resistance();

            _resi.fire   = _resi1.fire - _resi2.fire;
            _resi.frost  = _resi1.frost - _resi2.frost;
            _resi.dark   = _resi1.dark - _resi2.dark;
            _resi.nature = _resi1.nature - _resi2.nature;

            if (_resi.fire <= 0)
            {
                _resi.fire = 0;
            }
            if (_resi.frost <= 0)
            {
                _resi.frost = 0;
            }
            if (_resi.dark <= 0)
            {
                _resi.dark = 0;
            }
            if (_resi.nature <= 0)
            {
                _resi.nature = 0;
            }

            return(_resi);
        }
Esempio n. 6
0
        public Armor()
        {
            this.armor = 0;
            this.parry = 0;

            this.resistance = new Resistance();
        }
Esempio n. 7
0
 public void addResistence(Resistance _resistence)
 {
     this.fire   += _resistence.fire;
     this.frost  += _resistence.frost;
     this.nature += _resistence.nature;
     this.dark   += _resistence.dark;
 }
Esempio n. 8
0
 public Resistance(Resistance _resistence)
 {
     this.fire   = _resistence.fire;
     this.frost  = _resistence.frost;
     this.nature = _resistence.nature;
     this.dark   = _resistence.dark;
 }
Esempio n. 9
0
 public void addResistence( Resistance _resistence)
 {
     this.fire += _resistence.fire;
     this.frost += _resistence.frost;
     this.nature += _resistence.nature;
     this.dark += _resistence.dark;
 }
Esempio n. 10
0
 public void addArmor(Armor armor)
 {
     this.armor      += armor.armor;
     this.parry      += armor.parry;
     this.resistance += armor.resistance;
     //this.resistance.addResistence(armor.resistance);
 }
Esempio n. 11
0
 public Resistance( Resistance _resistence)
 {
     this.fire = _resistence.fire;
     this.frost = _resistence.frost;
     this.nature = _resistence.nature;
     this.dark = _resistence.dark;
 }
Esempio n. 12
0
        public void removeArmor(Armor armor)
        {
            this.armor -= armor.armor;
            this.parry -= armor.parry;

            if (this.armor <= 0) this.armor = 0;
            if (this.parry <= 0) this.parry = 0;

            this.resistance -= armor.resistance;
            //this.resistance.removeResistence(armor.resistance);
        }
Esempio n. 13
0
        public static Resistance operator + (Resistance _resi1, Resistance _resi2)
        {
            Resistance _resi = new Resistance();

            _resi.fire = _resi1.fire + _resi2.fire;
            _resi.frost = _resi1.frost + _resi2.frost;
            _resi.dark = _resi1.dark + _resi2.dark;
            _resi.nature = _resi1.nature + _resi2.nature;

            return _resi;
        }
Esempio n. 14
0
        public static Resistance operator +(Resistance _resi1, Resistance _resi2)
        {
            Resistance _resi = new Resistance();

            _resi.fire   = _resi1.fire + _resi2.fire;
            _resi.frost  = _resi1.frost + _resi2.frost;
            _resi.dark   = _resi1.dark + _resi2.dark;
            _resi.nature = _resi1.nature + _resi2.nature;

            return(_resi);
        }
Esempio n. 15
0
        public void removeResistence(Resistance _resistence)
        {
            this.fire -= _resistence.fire;
            this.frost -= _resistence.frost;
            this.nature -= _resistence.nature;
            this.dark -= _resistence.dark;

            if (this.fire <= 0) this.fire = 0;
            if (this.frost <= 0) this.frost = 0;
            if (this.nature <= 0) this.nature = 0;
            if (this.dark <= 0) this.dark = 0;
        }
Esempio n. 16
0
        public static Resistance operator - (Resistance _resi1, Resistance _resi2)
        {
            Resistance _resi = new Resistance();

            _resi.fire = _resi1.fire - _resi2.fire;
            _resi.frost = _resi1.frost - _resi2.frost;
            _resi.dark = _resi1.dark - _resi2.dark;
            _resi.nature = _resi1.nature - _resi2.nature;

            if (_resi.fire <= 0) _resi.fire = 0;
            if (_resi.frost <= 0) _resi.frost = 0;
            if (_resi.dark <= 0) _resi.dark = 0;
            if (_resi.nature <= 0) _resi.nature = 0;

            return _resi;
        }
Esempio n. 17
0
        public void removeArmor(Armor armor)
        {
            this.armor -= armor.armor;
            this.parry -= armor.parry;

            if (this.armor <= 0)
            {
                this.armor = 0;
            }
            if (this.parry <= 0)
            {
                this.parry = 0;
            }

            this.resistance -= armor.resistance;
            //this.resistance.removeResistence(armor.resistance);
        }
Esempio n. 18
0
        public void removeResistence(Resistance _resistence)
        {
            this.fire   -= _resistence.fire;
            this.frost  -= _resistence.frost;
            this.nature -= _resistence.nature;
            this.dark   -= _resistence.dark;

            if (this.fire <= 0)
            {
                this.fire = 0;
            }
            if (this.frost <= 0)
            {
                this.frost = 0;
            }
            if (this.nature <= 0)
            {
                this.nature = 0;
            }
            if (this.dark <= 0)
            {
                this.dark = 0;
            }
        }