2 //! @brief Declaration of weapon equipment
4 //! This class represents weapon that is equipped or carried by a character
5 //! It makes accessible all stats that weapons have in D20 ruleset
9 //! This class represents weapon that is equipped or carried by a character
15 Weapon(int w_atk
, int w_dmg
, int w_level
);
18 int getAttack() { return atk
; };
19 int getDamage() { return dmg
; };
20 void setAttack(int w_atk
) { atk
= w_atk
; };
21 void setDamage(int w_dmg
) { dmg
= w_dmg
; };
22 bool validateEquipment();
23 void levelUpEquipment(int w_level
);