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>
4
using namespace
std;
5
class
Item
6
{
7
public
:
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
21
protected
:
22
23
private
:
24
string
name;
25
string
filePath;
26
int
buff;
27
string
description;
28
int
maxStack;
29
int
amtHolding;
30
31
};
32
33
#endif
Item::pop
void pop()
Definition
Item.cpp:22
Item::~Item
virtual ~Item()
Definition
Item.cpp:16
Item::getDescription
string getDescription()
Definition
Item.cpp:25
Item::push
void push()
Definition
Item.cpp:21
Item::Item
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
Item::getName
string getName()
Definition
Item.cpp:24
Item::setMaxStack
void setMaxStack(int MaxStack)
Item::getAmtHolding
int getAmtHolding()
Definition
Item.cpp:27
Item::getFilePath
string getFilePath()
Definition
Item.cpp:34
Item::getBuff
int getBuff()
Definition
Item.cpp:26
Item::canStack
bool canStack()
max amount we can have
Definition
Item.cpp:30
Item::getMaxStack
int getMaxStack()
current amount of items we have in this stack
Definition
Item.cpp:28
EchosOfTime
Item.h
Generated by
1.13.2