1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef WEAPON_HPP #define WEAPON_HPP #include "Item.hpp" #include "Actor.hpp" #include <string> class Weapon : public Item { protected: unsigned _damage; unsigned _requiredLevel; Weapon(const std::string &name) : Item(name) {} }; #endif