Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#pragma once
#include <string>
using namespace std;
class Item {
private:
/* attributes of Item class */
int itemID;
string itemName;
int itemValue;
int itemInventorySize;
bool isStackable;
string itemType;
public:
/* Item class constructor */
Item();
Item(int id);
/* setter functions of Item class */
void setItemID(int id);
void setItemName(string itemName);
void setItemValue(int itemValue);
void setItemInventorySize(int itemSize);
void setIsStackable(bool isStackable);
void setItemType(string itemType);
/* getter functions of Item class */
int getItemID();
string getItemName();
int getItemValue();
int getItemInventorySize();
bool getIsStackable();
string getItemType();
};