-
Notifications
You must be signed in to change notification settings - Fork 0
/
Weapon.hpp
45 lines (37 loc) · 793 Bytes
/
Weapon.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
39
40
41
42
43
44
45
#pragma once
#include"Libraries.hpp"
#include"Item.hpp"
class Weapon :
public Item
{
private:
int damageMin;
int damageMax;
public:
Weapon();
Weapon(
int level,
int rarity
);
Weapon(
int damageMin,
int damageMax,
std::string name,
int level,
int buyValue,
int sellValue,
int rarity);
virtual ~Weapon();
//Pure virtual
virtual Weapon* clone()const;
//Functions
std::string toString()const;
std::string toStringSave()const;
//Accessors
inline int getDamageMin()const { return this->damageMin; }
inline int getDamageMax()const { return this->damageMax; }
//Modifiers
//Static
static dArr<std::string> names;
static void initNames();
};