blob: 468f96672fe9c96e9052b2a5140b18517f4acb8d (
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
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* AWeapon.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/14 11:22:06 by charles #+# #+# */
/* Updated: 2020/04/14 14:33:07 by charles ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef AWEAPON_HPP
# define AWEAPON_HPP
# include <string>
class AWeapon
{
public:
AWeapon(AWeapon const& other);
void operator=(AWeapon const& other);
virtual ~AWeapon();
AWeapon(std::string const& name, int apcost, int damage);
std::string const& getName() const;
int getAPCost() const;
int getDamage() const;
virtual void attack() const = 0;
protected:
AWeapon();
std::string m_name;
int m_apcost;
int m_damage;
};
#endif
|