cpp03/ex00/ClapTrap.hpp

25 lines
443 B
C++
Raw Normal View History

2025-05-19 13:50:55 +02:00
#ifndef CLAPTRAP_HPP
#define CLAPTRAP_HPP
#include <string>
class ClapTrap {
private:
std::string name;
unsigned int hit_points;
unsigned int energy_points;
unsigned int attack_damage;
public:
ClapTrap();
ClapTrap(std::string name);
~ClapTrap();
ClapTrap &operator=(const ClapTrap &other);
void attack(const std::string &target);
void takeDamage(unsigned int amount);
void beRepaired(unsigned int amount);
};
#endif