-
Notifications
You must be signed in to change notification settings - Fork 0
/
ClapTrap.hpp
38 lines (33 loc) · 1.36 KB
/
ClapTrap.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ClapTrap.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: zelhajou <zelhajou@student.1337.ma> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/14 19:34:02 by zelhajou #+# #+# */
/* Updated: 2024/06/15 15:09:07 by zelhajou ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef CLAPTRAP_HPP
#define CLAPTRAP_HPP
#include <string>
#include <iostream>
class ClapTrap
{
public:
ClapTrap();
ClapTrap(const std::string &name);
ClapTrap(const ClapTrap &src);
~ClapTrap();
ClapTrap &operator=(const ClapTrap &src);
void attack(std::string const & target);
void takeDamage(unsigned int amount);
void beRepaired(unsigned int amount);
protected:
std::string _name;
unsigned int _hitPoints;
unsigned int _energyPoints;
unsigned int _attackDamage;
};
#endif