feat: adding the class ScavTrap

This commit is contained in:
Raphael 2025-01-24 18:33:58 +01:00
parent 0188957b10
commit 245ac4c3a9
5 changed files with 38 additions and 7 deletions

View file

@ -6,7 +6,7 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/10 14:54:21 by rparodi #+# #+# */
/* Updated: 2025/01/10 15:52:10 by rparodi ### ########.fr */
/* Updated: 2025/01/24 18:32:41 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
@ -17,17 +17,18 @@
class ClapTrap {
public:
ClapTrap();
ClapTrap(std::string name);
~ClapTrap();
void attack(const std::string& target);
void takeDamage(unsigned int amount);
void beRepaired(unsigned int amount);
private:
ClapTrap();
protected:
std::string _name;
int _hit_point;
int _energy_point;
int _attack_damage;
private:
};