2 //! @brief Implementation of Shield equipment
4 //! This class represents the shield that is equipped or carried by a character
5 //! This class validates the shield and assigns its stats
10 //! Default shield constructor sets stats to 1
18 //! shield constructor sets stats.
19 //! @param s_ac: the armor class to be set
20 //! @param s_level the level to be set to
21 Shield::Shield(int s_ac
, int s_level
)
28 //! Shield constructor sets stats based on level.
29 //! @param s_level the level which designates stat values
30 Shield::Shield(int s_level
)
42 //! Validates the Shield
43 //! Shield has an armor class attribute that must be between 1 and 5
44 bool Shield::validateEquipment()
52 //! Sets the shield stats to the given level
53 void Shield::levelUpEquipment(int h_level
)