piscine_cpp/cpp03/ex01/ClapTrap.hpp
2025-01-24 18:33:58 +01:00

35 lines
1.2 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ClapTrap.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/10 14:54:21 by rparodi #+# #+# */
/* Updated: 2025/01/24 18:32:41 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef CLAPTRAP_HPP
#define CLAPTRAP_HPP
#include <string>
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);
protected:
std::string _name;
int _hit_point;
int _energy_point;
int _attack_damage;
private:
};
#endif