-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathitems.h
More file actions
53 lines (41 loc) · 950 Bytes
/
Copy pathitems.h
File metadata and controls
53 lines (41 loc) · 950 Bytes
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
46
47
48
49
50
51
52
53
#ifndef RPG_ITEMS_H
#define RPG_ITEMS_H
#include <string>
#include "character.h"
#include <map>
#include <vector>
#include <iomanip>
#include <iostream>
#include <fstream>
using namespace std;
struct itemNode {
string name;
char attrType;
int attrValue;
int rarity;
int quantity = 0;
bool isEquipped = false;
struct itemNode *next;
struct itemNode *prev;
};
class items {
public:
void load_items();
void display_items();
void display_equipped_items();
void add_element(string, char, int, int);
void create_list(string, char, int, int);
void equipItem(int, character*);
void unequipItem(int, character*);
void addItem(int);
int getS();
int getI();
int getC();
int getE();
int getD();
items();
itemNode* start;
map<char, string> attrmap;
map<int, string> rarmap;
};
#endif //RPG_ITEMS_H