void ICharacter::equipWeapon(Weapon weapon)
		{
			this -> weapon = weapon;

			updateStats(weapon.getStrength(), weapon.getDexterity(), weapon.getConstitution(), weapon.getIntelligence(), weapon.getWisdom(), weapon.getCharisma());
		}
Exemple #2
0
	int getWeaponStrength() const
	{// delegation of task to the weapon class
		return weapon.getStrength();
	}
	int getWeaponStrength() const { return weapon.getStrength(); }