37 unsigned int hitPoints;
38 unsigned int energyPoints;
39 unsigned int attackDamage;
Represents a basic robot character.
void beRepaired(unsigned int amount)
beRepaired function implementation.
unsigned int getHitPoints() const
Gets the current hit points of the ClapTrap.
unsigned int getAttackDamage() const
Gets the attack damage of the ClapTrap.
ClapTrap()
Default constructor implementation.
void takeDamage(unsigned int amount)
takeDamage function implementation.
void attack(const std::string &target)
Attack function implementation.
ClapTrap & operator=(const ClapTrap &other)
Copy assignment operator implementation.
~ClapTrap()
Destructor implementation.
const std::string & getName() const
Gets the name of the ClapTrap.
unsigned int getEnergyPoints() const
Gets the current energy points of the ClapTrap.