2 //! @brief Implementation of Boots equipment
4 //! This class represents the boots that is equipped or carried by a character
5 //! This class validates the boots and assigns its stats
8 //! Default boots constructor sets stats to 1
17 //! Ring constructor sets stats.
18 //! @param b_ac: the armor class to be set
19 //! @param b_dex the value of dexterity to be set
20 //! @param b_level the level to be set to
21 Boots::Boots(int b_dex
, int b_ac
, int b_level
)
29 //! Boots constructor sets stats based on level.
30 //! @param b_level the level which designates stat values
31 Boots::Boots(int b_level
)
34 levelUpEquipment(b_level
);
42 //! Validates the ring
43 //! Ring has an armor class attribute that must be between 1 and 5
44 //! Ring has an dexterity attribute that must be between 1 and 5
45 bool Boots::validateEquipment()
47 if (ac
< 1 || ac
> 5 ||
54 //! Sets the boots stats to the given level
55 void Boots::levelUpEquipment(int b_level
)