コード例 #1
0
 public void GetAccessibility(WeatherConditions weather)
 {
     if (temperaturePreference <= weather.temperature)
     {
         accessibility = true;
     }
     else
     {
         accessibility = false;
     }
 }
コード例 #2
0
ファイル: Day.cs プロジェクト: robevision/Lemonade_Stand
 public void GenerateCustomerAmount(WeatherConditions weather)
 {
     if (weather.greatWeather == true)
     {
         customerAmount = 25;
     }
     if (weather.goodWeather == true)
     {
         customerAmount = 15;
     }
     if (weather.badWeather == true)
     {
         customerAmount = 5;
     }
     if (weather.terribleWeather == true)
     {
         customerAmount = 2;
     }
     else
     {
         customerAmount = 15;
     }
 }
コード例 #3
0
ファイル: Day.cs プロジェクト: robevision/Lemonade_Stand
 public Day()
 {
     weatherConditions = new WeatherConditions();
     GenerateCustomerAmount(weatherConditions);
     listOfCustomers = new List <Customer>();
 }