blob: 582a61c148e57dd04ee6e0ebd172245ca5f481ae (
plain)
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
39
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Enemy.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/14 13:23:40 by charles #+# #+# */
/* Updated: 2020/04/14 14:13:07 by charles ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef ENEMY_HPP
# define ENEMY_HPP
# include <string>
class Enemy
{
public:
Enemy(Enemy const& other);
void operator=(Enemy const& other);
virtual ~Enemy();
Enemy(int hp, std::string const& type);
std::string const& getType() const;
int getHP() const;
virtual void takeDamage(int amount);
protected:
Enemy();
int m_hp;
std::string m_type;
};
#endif
|