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.cpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
57 lines (43 sloc)
1.19 KB
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
#include "Merchant.h" | |
/* implementation of class Merchant constructor */ | |
Merchant::Merchant(int id) { | |
this->merchantID = id; | |
} | |
/* implementation of setter methods of Merchant class */ | |
void Merchant::setMerchantID(int id) { | |
this->merchantID = id; | |
} | |
void Merchant::setMerchantName(string name) { | |
this->merchantName = name; | |
} | |
void Merchant::setMerchantPlanet(string planet) { | |
this->merchantPlanet = planet; | |
} | |
void Merchant::setMerchantInventorySize(int inventorySize) { | |
this->merchantInventorySize = inventorySize; | |
} | |
void Merchant::setMerchantHealth(int health) { | |
this->merchantHealth = health; | |
} | |
/* implementation of getter methods of Merchant class */ | |
int Merchant::getMerchantID() { | |
return this->merchantID; | |
} | |
string Merchant::getMerchantName() { | |
return this->merchantName; | |
} | |
string Merchant::getMerchantPlanet() { | |
return this->merchantPlanet; | |
} | |
int Merchant::getMerchantInventorySize() { | |
return this->merchantInventorySize; | |
} | |
int Merchant::getMerchantHealth() { | |
return this->merchantHealth; | |
} | |
void Merchant::merchantInteract() { | |
} | |
void Merchant::merchantSell() { | |
} | |
void Merchant::merchantBuy() { | |
} |