public async Task Start() { WaterContainer water = coffeemachine.WaterInCointainer(); coffeemachine.InsertNewFilter(); Filter filter = coffeemachine.Filter(); while (true) { coffeemachine.InsertIngredient(); pickedingredient = filter.ingredient.ToString(); CheckPot(); InputWater(); PickIngredient(); InputFilter(); Console.Clear(); DefaultScreen(); Console.WriteLine("Waiting for Brew"); await coffeemachine.BrewDelay(); Console.Clear(); DefaultScreen(); Console.WriteLine("Brew is done!\nPress enter to brew more"); Console.ReadKey(); } }
public void ClearMachine()//Throws out { WaterContainer water = coffeemachine.WaterInCointainer(); Pot pot = coffeemachine.Pot(); water.UsedCapacity = 0; pot.Usedcapacity = 0; coffeemachine.InsertNewFilter(); }
public void MachineInfo()//Gives information about the machine to the user so we know whats happening :D { CoffeeFilter filter = coffeemachine.Filter(); WaterContainer water = coffeemachine.WaterInCointainer(); Pot pot = coffeemachine.Pot(); Console.WriteLine($"Filter used: {filter.Used}\nFilter capacity: {filter.Capacity - filter.UsedCapacity} spoons\nFilter capacity used: {filter.UsedCapacity}"); Console.WriteLine($"Water Container Capacity: {water.Capacity - water.UsedCapacity} cups\nWater Container Used Capacity: {water.UsedCapacity} cups"); Console.WriteLine($"Pot Capacity: {pot.Capacity - pot.Usedcapacity} cups"); if (filter.ingredient != null) { Console.WriteLine($"Pot Capacity used: {pot.Usedcapacity} cups of {filter.ingredient.ToString()}"); } }