/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ClapTrap.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: apommier +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/07/13 05:22:53 by apommier #+# #+# */ /* Updated: 2022/08/01 13:23:39 by apommier ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef CLAPTRAP_HPP # define CLAPTRAP_HPP #include class ClapTrap { public: ClapTrap(std::string name); ClapTrap(const ClapTrap& copy); ~ClapTrap(); ClapTrap &operator=(const ClapTrap& rhs); void attack(const std::string& target); void takeDamage(unsigned int amount); void beRepaired(unsigned int amount); std::string getName(void) const; int getHitPoints(void) const; int getEnergyPoints(void) const; int getAttackDamage(void) const; protected: std::string _name; int _hitPoints; int _energyPoints; int _attackDamage; }; #endif