minor changes. Still in progress.

This commit is contained in:
Vikram
2019-02-25 18:42:48 -07:00
parent b6b5c14c56
commit 6b379bae3a
2 changed files with 47 additions and 43 deletions

View File

@@ -48,16 +48,18 @@ public class TaipanShop {
}
/**
* getter for opiumPrice instance variable.
*
* @return
* @return opiumPrice -- the price of opium in the shop
*/
public int getOpiumPrice() {
return opiumPrice;
}
/**
* setter for the opiumPrice instance variable. Runs so long as the parameter is greater than 0.
*
* @param opiumPrice
* @param opiumPrice -- what the instance variable opiumPrice should be changed to.
*/
public void setOpiumPrice(int opiumPrice) {
if(opiumPrice > 0){
@@ -66,16 +68,18 @@ public class TaipanShop {
}
/**
* getter for silkPrice instance variable.
*
* @return
* @return silkPrice -- the price of silk in the shop.
*/
public int getSilkPrice() {
return silkPrice;
}
/**
* setter for the opiumPrice instance variable.
*
* @param silkPrice
* @param silkPrice -- what the instance variable silkPrice should be changed to.
*/
public void setSilkPrice(int silkPrice) {
if(silkPrice > 0){