Item.h 727 Bytes
Newer Older
Milwaukee Davis's avatar
Milwaukee Davis committed
1
//filename: item.h
Milwaukee Davis's avatar
Milwaukee Davis committed
2
//Contains the item class, which represents the separate items the player will find and use throughout the dunGen. Accessed through Inventory.
Milwaukee Davis's avatar
Milwaukee Davis committed
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

#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