public void VisitStore() { storeInfo(); Store store = new Store(); store.DisplayItemPrice(); store.BuyItems(); }
public void AddCup(Player player, Store store) { Console.WriteLine("How many cups do you want to buy?"); int input = Int32.Parse(Console.ReadLine()); if (player.wallet.money >= (input * store.PricePerIceCube)) { int numCups = (input + cups); cups = numCups; player.wallet.money = (player.wallet.money - (input * store.PricePerCup)); storeCupProfit = storeCupProfit + (input * store.PricePerCup); player.DisplayUserWallet(); DisplayInventory(); store.BuyItems(player, store); } else if (player.wallet.money < (input * store.PricePerCup)) { Console.WriteLine("You do not have enough money to purchase that amount."); store.BuyItems(player, store); } }