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