예제 #1
0
 public void GetAccessibility(WeatherConditions weather)
 {
     if (temperaturePreference <= weather.temperature)
     {
         accessibility = true;
     }
     else
     {
         accessibility = false;
     }
 }
예제 #2
0
 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
 public Day()
 {
     weatherConditions = new WeatherConditions();
     GenerateCustomerAmount(weatherConditions);
     listOfCustomers = new List <Customer>();
 }