コード例 #1
0
 public void MasterMeth()
 {
     Console.Clear();
     Console.WriteLine("Youre Total Money is " + day.player.wallet.totalMoney);
     Console.WriteLine("Would you like to see just 'One' days weather or the next 'Seven' days?");
     day.weather.OneDayOrSeven();
     Console.WriteLine("Press enter....");
     Console.ReadLine();
     Console.Clear();
     Console.WriteLine("The price of lemons are " + day.player.CostOfLemon + " Dollars");
     day.player.CheckLemonOrderingMoney();
     GameCheck();
     Console.WriteLine("You have " + day.player.wallet.totalMoney + " Dollars left.");
     Console.WriteLine("The price of Sugar cubes are " + day.player.CostOfSugar + " Dollars");
     day.player.CheckSugarOrderingMoney();
     GameCheck();
     Console.WriteLine("You have " + day.player.wallet.totalMoney + " Dollars left.");
     Console.WriteLine("The price of Ice are " + day.player.CostOfIce + " Dollars");
     day.player.CheckIceOrderingMoney();
     GameCheck();
     Console.WriteLine("You have " + day.player.wallet.totalMoney + " Dollars left.");
     Console.WriteLine("The price of Cups are " + day.player.CostOfCup + " Dollars");
     day.player.CheckCupOrderingMoney();
     GameCheck();
     WhoMakesRecipe();
     Console.WriteLine("What would you like to set the price of one cup of lemonade?");
     Console.WriteLine("You cannot set the price higher than 2 times the amount that the supplies cost individually.");
     Console.WriteLine("The max set price is " + day.player.maxPrice + " Dollars.");
     Console.WriteLine("*Tip* If you set the price too high, you will have a lower cance of lemonade being purchased! *Tip*");
     day.player.SetPurchasePrice();
     Console.Clear();
     Console.WriteLine("Time to sell some Lemonade!");
     day.AmountOfCustomersForDay();
     day.FlowOfCustomers();
     Console.WriteLine("No more customers for the day!");
     Console.ReadLine();
     day.ProfitFromLemonadeSold();
     day.player.lemonadeMachine.inventory.Perishable();
     Console.WriteLine("Youre profit for the day is " + day.player.wallet.profit);
     Console.WriteLine("Youre total money is " + day.player.wallet.totalMoney);
     Console.ReadLine();
     StatReset();
     GameCheck();
     MasterMeth();
 }
コード例 #2
0
 public void Run()
 {
     Console.Clear();
     UserInterface.WeatherText();
     day.weather.OneDayOrSeven();
     Console.ReadLine();
     Console.Clear();
     UserInterface.PriceText(day.player.store);
     UserInterface.MoneyText(day.player.wallet);
     day.player.CheckLemonOrderingMoney();
     GameCheck();
     UserInterface.MoneyText(day.player.wallet);
     day.player.CheckSugarOrderingMoney();
     GameCheck();
     UserInterface.MoneyText(day.player.wallet);
     day.player.CheckIceOrderingMoney();
     GameCheck();
     UserInterface.MoneyText(day.player.wallet);
     day.player.CheckCupOrderingMoney();
     GameCheck();
     WhoMakesRecipe(day.player.inventory);
     UserInterface.SetPriceText(day.player);
     day.player.SetPurchasePrice();
     Console.Clear();
     UserInterface.LemonadeTimeText();
     day.AmountOfCustomersForDay();
     day.FlowOfCustomers();
     UserInterface.NoMoreCustomersText();
     Console.ReadLine();
     day.ProfitFromLemonadeSold();
     day.player.inventory.Perishable();
     UserInterface.ProfitForTheDayText(day.player.wallet);
     UserInterface.MoneyText(day.player.wallet);
     Console.ReadLine();
     StatReset();
     GameCheck();
     Run();
 }