Skip to content

Commit

Permalink
Finished updating Item class
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavin Li committed Feb 12, 2015
1 parent a57f074 commit 3277225
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions MerchantRPGCSE2102/src/game/Item.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ public Item(String itemName, int basePrice, int maxPrice, int minPrice)
_minPrice = minPrice;
_adjustedPrice = _basePrice;
}

//second Item constructor
//if max and min prices are not specified, assigns highest possible price and lowest possible price
//to the two variables respectively
public Item(String itemName, int basePrice)
{
_name = itemName;
_basePrice = basePrice;
_maxPrice = 100000; //maximum price
_minPrice = 0;
}

//will set the adjusted price of the item based off of the daily percent of the merchant
//will need the daily percent as an input from merchant
Expand Down

0 comments on commit 3277225

Please sign in to comment.