public void addWeapon(Weapon _weapon) { this.element = _weapon.element; this.typeWeapon = _weapon.typeWeapon; this.damage += _weapon.damage; this.attributes += _weapon.attributes; //this.damage.addDamage(_weapon.damage); //this.attributes.addAttributes(_weapon.attributes); }
public void removeWeapon(Weapon _weapon) { this.element = _Element.Null; this.typeWeapon = _Weapon.Null; this.damage -= _weapon.damage; this.attributes -= _weapon.attributes; /* this.damage.removeDamage(_weapon.damage); this.attributes.removeAttributes(_weapon.attributes);*/ }
public Weapon(Weapon _weapon) { this.id = _weapon.id; this.amount = _weapon.amount; this.image = _weapon.image; this.name = _weapon.name; this.typeItem = _weapon.typeItem; this.element = _weapon.element; this.typeWeapon = _weapon.typeWeapon; this.damage = new Damage(_weapon.damage); this.attributes = new Attributes(_weapon.attributes); }