Beispiel #1
0
        public void removeCloths(Clothes _cloths)
        {
            this.armor -= _cloths.armor;
            this.attributes -= _cloths.attributes;

            //this.armor.removeArmor(_cloths.armor);
            //this.attributes.removeAttributes(_cloths.attributes);
        }
Beispiel #2
0
        public void addCloth(Clothes _cloths)
        {
            this.armor += _cloths.armor;
            this.attributes += _cloths.attributes;
            this.typeCloths = _cloths.typeCloths;

            //this.armor.addArmor(_cloths.armor);
            //this.attributes.addAttributes(_cloths.attributes);
            
        }
Beispiel #3
0
        public static Clothes operator -(Clothes _clothes1, Clothes _clothes2)
        {
            Clothes _clothes = new Clothes();

            _clothes.armor = _clothes1.armor - _clothes2.armor;
            _clothes.attributes = _clothes1.attributes - _clothes2.attributes;
            _clothes.typeCloths = _clothes1.typeCloths;

            return _clothes;
        }
Beispiel #4
0
        public Clothes(Clothes _cloths)
        {
            this.id = _cloths.id;
            this.amount = _cloths.amount;
            this.image = _cloths.image;
            this.name = _cloths.name;
            this.typeItem = _cloths.typeItem;

            this.armor = new Armor(_cloths.armor);
            this.attributes = new Attributes(_cloths.attributes);
            this.typeCloths = _cloths.typeCloths;
        }
Beispiel #5
0
        public Clothes(Clothes _cloths)
        {
            this.id       = _cloths.id;
            this.amount   = _cloths.amount;
            this.image    = _cloths.image;
            this.name     = _cloths.name;
            this.typeItem = _cloths.typeItem;

            this.armor      = new Armor(_cloths.armor);
            this.attributes = new Attributes(_cloths.attributes);
            this.typeCloths = _cloths.typeCloths;
        }