Ejemplo n.º 1
0
        private void LemonadeStandLogicSender(string subMenuChoice)
        {
            int indexofStand    = UserInterface.GetAndSendLemonadeStand(subMenuChoice, player);
            int actionRequested = UserInterface.DisplayStandSpecificMenu(player, indexofStand);


            if (actionRequested == 1)
            {
                chnageStandName(indexofStand);
            }                                                            // change stand name
            else if (actionRequested == 2)
            {
                buyStandInventory(indexofStand);
            }                                                                  //buy inventory for this stand
            else if (actionRequested == 3)
            {
            }                                 //transfer
            else if (actionRequested == 4)
            {
                UserInterface.DisplayStandInventoryLevels(player.myFranchiseofStands[indexofStand]); Console.ReadLine();
            }                                                                                                                                          //Check
            else if (actionRequested == 5)
            {
                UserInterface.DisplayListOfRecipes(player);
            }                                                                             //add pitcher
            else if (actionRequested == 6)
            {
            }
            else if (actionRequested == 7)
            {
                int choice = UserInterface.CloseStandPormpt(player, indexofStand);
                if (choice == 1)
                {
                    player.myFranchiseofStands.Remove(player.myFranchiseofStands[indexofStand]);
                }
            }//Remove A location
        }