Permalink
Cannot retrieve contributors at this time
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?
SpaceAdventureRPG/Item.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
37 lines (31 sloc)
822 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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(); | |
}; |