HumanB.class.hpp 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. /* ************************************************************************** */
  2. /* */
  3. /* ::: :::::::: */
  4. /* HumanB.class.hpp :+: :+: :+: */
  5. /* +:+ +:+ +:+ */
  6. /* By: bchanot <bchanot@gmail.fr> +#+ +:+ +#+ */
  7. /* +#+#+#+#+#+ +#+ */
  8. /* Created: 2025/07/15 15:37:01 by bchanot #+# #+# */
  9. /* Updated: 2025/07/15 18:12:13 by bchanot ### ########.fr */
  10. /* */
  11. /* ************************************************************************** */
  12. #ifndef HUMANB_CLASS_H
  13. #define HUMANB_CLASS_H
  14. #include <iostream>
  15. #include "Weapon.class.hpp"
  16. class HumanB {
  17. public:
  18. HumanB(std::string name);
  19. ~HumanB(void);
  20. void attack(void) const;
  21. void setWeapon(Weapon &weapon);
  22. private:
  23. std::string _name;
  24. Weapon *_weapon;
  25. };
  26. #endif