/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ClapTrap.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: apommier +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/07/13 05:22:53 by apommier #+# #+# */ /* Updated: 2022/07/13 13:13:24 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; /*std::string setName(std::string name); int setHitPoints(int hitPoints); int setEnergyPoints(int energyPoints); int setAttackDamage(int attackDamage);*/ protected: std::string _name; int _hitPoints = 100; int _energyPoints = 50; int _attackDamage = 20; }; #endif