36 lines
1.3 KiB
C++
36 lines
1.3 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ClapTrap.hpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/01/10 14:54:21 by rparodi #+# #+# */
|
|
/* Updated: 2025/02/10 10:24:18 by rparodi ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef CLAPTRAP_HPP
|
|
#define CLAPTRAP_HPP
|
|
|
|
#include <string>
|
|
|
|
class ClapTrap {
|
|
public:
|
|
ClapTrap();
|
|
ClapTrap(ClapTrap const ©);
|
|
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
|