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/Merchant.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)
874 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 Merchant { | |
private: | |
/* attributes of Merchant class */ | |
int merchantID; | |
string merchantName; | |
string merchantPlanet; | |
int merchantInventorySize; | |
int merchantHealth; | |
public: | |
/* Merchant class constructor */ | |
Merchant(int id); | |
/* setter functions of Merchant class */ | |
void setMerchantID(int id); | |
void setMerchantName(string name); | |
void setMerchantPlanet(string planet); | |
void setMerchantInventorySize(int inventorySize); | |
void setMerchantHealth(int health); | |
/* getter functions of Merchant class */ | |
int getMerchantID(); | |
string getMerchantName(); | |
string getMerchantPlanet(); | |
int getMerchantInventorySize(); | |
int getMerchantHealth(); | |
/* in-game functions involving the Merchant */ | |
void merchantInteract(); | |
void merchantSell(); | |
void merchantBuy(); | |
}; |