41 lines
1.3 KiB
C++
41 lines
1.3 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ClapTrap.hpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/09/06 02:27:27 by aortigos #+# #+# */
|
|
/* Updated: 2025/09/06 02:28:09 by aortigos ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef CLAPTRAP_HPP
|
|
|
|
# define CLAPTRAP_HPP
|
|
|
|
# include <iostream>
|
|
|
|
class ClapTrap
|
|
{
|
|
protected:
|
|
std::string name;
|
|
unsigned int health;
|
|
unsigned int energy;
|
|
unsigned int attackDamage;
|
|
|
|
public:
|
|
ClapTrap();
|
|
ClapTrap(std::string name);
|
|
ClapTrap(const ClapTrap &target);
|
|
ClapTrap& operator=(const ClapTrap &target);
|
|
~ClapTrap();
|
|
|
|
void attack(const std::string &target);
|
|
void takeDamage(unsigned int amount);
|
|
void beRepaired(unsigned int amount);
|
|
|
|
};
|
|
|
|
#endif
|