EchoesOfFate
A game for our COMP315 Project
 
Loading...
Searching...
No Matches
Item Class Reference

#include <Item.h>

Public Member Functions

 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 them, the weight of 1 gold bar, the maximum gold bars you can have
 
virtual ~Item ()
 
void push ()
 
void pop ()
 
string getName ()
 
string getDescription ()
 
int getBuff ()
 
int getAmtHolding ()
 
int getMaxStack ()
 current amount of items we have in this stack
 
string getFilePath ()
 
bool canStack ()
 max amount we can have
 
void setMaxStack (int MaxStack)
 

Constructor & Destructor Documentation

◆ 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 them, the weight of 1 gold bar, the maximum gold bars you can have

this is a stackbale item, so instead of just 1 item, its like 20 gold bars, like minecraft

ctor

◆ ~Item()

Item::~Item ( )
virtual

dtor

Member Function Documentation

◆ canStack()

bool Item::canStack ( )

max amount we can have

check if we reached the max amount we can stack of this item

◆ getAmtHolding()

int Item::getAmtHolding ( )

◆ getBuff()

int Item::getBuff ( )

◆ getDescription()

string Item::getDescription ( )

◆ getFilePath()

string Item::getFilePath ( )

◆ getMaxStack()

int Item::getMaxStack ( )

current amount of items we have in this stack

◆ getName()

string Item::getName ( )

◆ pop()

void Item::pop ( )

◆ push()

void Item::push ( )

◆ setMaxStack()

void Item::setMaxStack ( int MaxStack)

The documentation for this class was generated from the following files: