Item.h 731 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

#ifndef ITEM_H
#define ITEM_H

#include <string>
using namespace std;

class Item{
    private:
        string itemName;
        int itemFight;
        int itemTalk;
    public:
Kameron Kinsey's avatar
Kameron Kinsey committed
16
        Item(string lootName, int lootFight, int lootTalk) {
Milwaukee Davis's avatar
Milwaukee Davis committed
17 18 19 20 21
            itemName = lootName;
            itemFight = lootFight;
            itemTalk = lootTalk;
        }
    
Kameron Kinsey's avatar
Kameron Kinsey committed
22
        string getName() {
Milwaukee Davis's avatar
Milwaukee Davis committed
23 24
            return itemName;
        }
Kameron Kinsey's avatar
Kameron Kinsey committed
25
        int getFight() {
Milwaukee Davis's avatar
Milwaukee Davis committed
26 27
            return itemFight;
        }
Kameron Kinsey's avatar
Kameron Kinsey committed
28
        int getTalk() {
Milwaukee Davis's avatar
Milwaukee Davis committed
29 30 31 32
            return itemTalk;
        }
};
#endif // ITEM_H