Ejemplo n.º 1
0
 public void MainMenu()
 {
     DisplayInstructions();
     player.GetPlayerFirstName();
     GameOutline();
     season.SeasonGenerator();
     season.SeasonTempDisplay();
     ChoiceOfStore();
     inventory.CurrentInventory();
     RoundCounter();
     TripToTheStore();
     store.ShoppingCalculator();
     BudgetCheck();
 }
Ejemplo n.º 2
0
        public void Purchases()
        {
            Console.WriteLine("Would you like to purchase anything? If so, please enter: 'cups', 'lemons', 'sugar', or 'ice'.  If not, please enter 'no'.");
            string itemToPurchase = Console.ReadLine().ToLower();

            switch (itemToPurchase)
            {
            case "cups":
                inventory.cup.DisplayPrice();
                budget.SubtractCostOfCupsFromBalance(inventory);
                Purchases();
                break;

            case "lemons":
                inventory.lemon.DisplayPrice();
                budget.SubtractCostOfLemonsFromBalance(inventory);
                Purchases();
                break;

            case "sugar":
                inventory.sugar.DisplayPrice();
                budget.SubtractCostOfSugarFromBalance(inventory);
                Purchases();
                break;

            case "ice":
                inventory.ice.DisplayPrice();
                budget.SubtractCostOfIceFromBalance(inventory);
                Purchases();
                break;

            case "no":
                inventory.CurrentInventory();
                recipe.QuantityOfLemonadePossible(inventory);
                break;

            default:
                Console.WriteLine("That was an invalid entry.  Please press enter to continue.");
                Purchases();
                break;
            }
        }