CPP03/ex02/inc/ClapTrap.hpp
2025-03-28 16:03:05 +01:00

37 lines
1.3 KiB
C++

/* ************************************************************************** */
/* */
/* :::::::: */
/* ClapTrap.hpp :+: :+: */
/* +:+ */
/* By: whaffman <whaffman@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2025/03/27 16:26:32 by whaffman #+# #+# */
/* Updated: 2025/03/28 11:35:08 by whaffman ######## odam.nl */
/* */
/* ************************************************************************** */
#pragma once
#include <string>
class ClapTrap
{
protected:
std::string _name;
int _hitpoints;
int _energy_points;
int _attack_damage;
public:
ClapTrap();
ClapTrap(std::string name);
ClapTrap(ClapTrap const &src);
~ClapTrap();
ClapTrap &operator=(ClapTrap const &rhs);
void attack(std::string const &target);
void takeDamage(unsigned int amount);
void beRepaired(unsigned int amount);
};