37 lines
1.3 KiB
C++
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/27 16:29:00 by whaffman ######## odam.nl */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
class ClapTrap
|
|
{
|
|
private:
|
|
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);
|
|
};
|