EchoesOfFate
A game for our COMP315 Project
 
Loading...
Searching...
No Matches
Item.h
Go to the documentation of this file.
1#ifndef ITEM_H
2#define ITEM_H
3#include <string>
4using namespace std;
5class Item
6{
7public:
8 Item(string Name, string FilePath, int Buff, string Description, int MaxStack);
9 virtual ~Item();
10 void push();
11 void pop();
12 string getName();
13 string getDescription();
14 int getBuff();
15 int getAmtHolding();
16 int getMaxStack();
17 string getFilePath();
18 bool canStack();
19 void setMaxStack(int MaxStack);
20
21protected:
22
23private:
24 string name;
25 string filePath;
26 int buff;
27 string description;
28 int maxStack;
29 int amtHolding;
30
31};
32
33#endif
void pop()
Definition Item.cpp:22
virtual ~Item()
Definition Item.cpp:16
string getDescription()
Definition Item.cpp:25
void push()
Definition Item.cpp:21
Item(string Name, string FilePath, int Buff, string Description, int MaxStack)
removed weights and unnessacery stuff basically, its an item like a gold bar, the amount you have of ...
Definition Item.cpp:5
string getName()
Definition Item.cpp:24
void setMaxStack(int MaxStack)
int getAmtHolding()
Definition Item.cpp:27
string getFilePath()
Definition Item.cpp:34
int getBuff()
Definition Item.cpp:26
bool canStack()
max amount we can have
Definition Item.cpp:30
int getMaxStack()
current amount of items we have in this stack
Definition Item.cpp:28