Item.h 930 Bytes
Newer Older
Milwaukee Davis's avatar
Milwaukee Davis committed
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
//filename: item.h
//Contains the implementation of the more complicated functions from the item class, which represents the items the player is carrying in the form of several dynamic arrays.
//Item accepts new items from the Monster class upon the player 'beating' the room, and allows the player to change which item they have equipped through the Player class.

#ifndef ITEM_H
#define ITEM_H

#include <string>
using namespace std;

class Item{
    private:
        string itemName;
        int itemFight;
        int itemTalk;
    public:
        Item(string lootName, int lootFight, int lootTalk){
            itemName = lootName;
            itemFight = lootFight;
            itemTalk = lootTalk;
        }
    
        string getName(){
            return itemName;
        }
        int getFight(){
            return itemFight;
        }
        int getTalk(){
            return itemTalk;
        }
};
#endif // ITEM_H