Exemplo n.º 1
0
 private static void printTemps(ClimateManager manager)
 {
     Console.WriteLine($"== Annual Average Temperature ({manager.Atmosphere.GetGasPercentage("Carbon Dioxide")*1_000_000} CO₂ ppm) ==");
     Console.WriteLine($"Equator:\t{manager.GetBaseTemperature(0):0.## °C}");
     Console.WriteLine($"Catania:\t{manager.GetBaseTemperature(37):0.## °C}");
     Console.WriteLine($"Temperate:\t{manager.GetBaseTemperature(45):0.## °C}");
     Console.WriteLine($"Stirling:\t{manager.GetBaseTemperature(56):0.## °C}");
     Console.WriteLine($"North Pole:\t{manager.GetBaseTemperature(90):0.## °C}");
 }
Exemplo n.º 2
0
        public void TestTemperatureDelta2()
        {
            ClimateManager manager = new ClimateManager();

            var c = 0.000507;

            manager.Atmosphere.SetCO2Concentration(c);

            printTemps(manager);
        }
Exemplo n.º 3
0
        public void TestTemperatureDelta()
        {
            ClimateManager manager = new ClimateManager();

            printTemps(manager);
        }