public void removeCloths(Clothes _cloths) { this.armor -= _cloths.armor; this.attributes -= _cloths.attributes; //this.armor.removeArmor(_cloths.armor); //this.attributes.removeAttributes(_cloths.attributes); }
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); }
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; }
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; }