-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEquipment.h
53 lines (39 loc) · 2.09 KB
/
Equipment.h
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
#pragma once
#include "ITEMS.h"
#include "ItemList.h"
class Equipment
{
std::string itemName;
std::string itemSlot;
int minDamage;
int maxDamage;
int armorRating;
int strength;
int vitality;
ITEMS <char*, char*, int, int, int, int, int> EquipedWeapon; // instantiate the item Weapon Slot
ITEMS <char*, char*, int, int, int, int, int> EquipedChest; // instantiate the item Chest Slot
ITEMS <char*, char*, int, int, int, int, int> EquipedPant; // instantiate the item Legging Slot
ITEMS <char*, char*, int, int, int, int, int> EquipedGlove; // instantiate the item Glove Slot
ITEMS <char*, char*, int, int, int, int, int> EquipedBoot; // instantiate the item Boot Slot
ITEMS <char*, char*, int, int, int, int, int>* TempItem; // instantiate the item Temp Item
ITEMS <char*, char*, int, int, int, int, int> returnItemToInventory; // instantiate the item Temp Item
void updateStats();
public:
Equipment();
//************************************************************************************************************************
// Public setter function for player object
//************************************************************************************************************************
void equipItem(const ITEMS<char*, char*, int, int, int, int, int>& item);
void clearReturnItem();
//************************************************************************************************************************
// Public getter function for player object
//************************************************************************************************************************
void stats();
ITEMS <char*, char*, int, int, int, int, int> returnEquipedItem();
inline int getMinWeaponDamage() { return this->minDamage; }
inline int getMaxWeaponDamage() { return this->maxDamage; }
inline int getArmorRating() { return this->armorRating; }
inline int getStrength() { return this->strength; }
inline int getVitality() { return this->vitality; }
~Equipment();
};