Exemplo n.º 1
0
	void ICharacter::equipWeapon(Weapon weapon)
		{
			this -> weapon = weapon;

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